Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

C++ PROGRAMMING

The "TRC Institute" records and monitors performance of three (3) machines over a period of four (4) days (l to 4) as shown in the Table 1, 2 and 3 respectively. The production ranges between 15.5 and 75.5 

Table 1- Machine "A" Production

Day 1 2 3 4

Array index 0 1 2 3

Production 15.5 25.5 27.5 60.5

Table 2- Machine "B" Production

Day 1 2 3 4

Array index 0 1 2 3

Production 50 45.5 25.5 18

Table 3- Machine "C" Production

Day 1 2 3 4

Array index 1 2 3 4

Production 35.5 65 71 74.5

Write a function using C++ statements called PrintChart() which takes three float arrays (valuel, value2, value3) and an integer (as day) as parameters. The function calls GetProduction and PrintBar functions to print the output as given below.

Sample Output.

Day 1

Machine A **

Machine B   ***** 

Machine C    ****


C++ PROGRAMMING

The "TRC Institute" records and monitors performance of three (3) machines over a period of four (4) days (l to 4) as shown in the Table 1, 2 and 3 respectively. The production ranges between 15.5 and 75.5 

Table 1- Machine "A" Production

Day 1 2 3 4

Array index 0 1 2 3

Production 15.5 25.5 27.5 60.5

Table 2- Machine "B" Production

Day 1 2 3 4

Array index 0 1 2 3

Production 50 45.5 25.5 18

Table 3- Machine "C" Production

Day 1 2 3 4

Array index 1 2 3 4

Production 35.5 65 71 74.5

Implement the main method of a C++ program to do the followings.

1 . Create 3 float arrays with the names machine A, machine B and machine C. The arrays are of size 4.

2.Insert machine A, B and C production to the respective array using the function InputProduction()

3. Print chart of all four (4) days by using the function PrintChart().

4. Print the report using the function PrintReport()


C++ PROGRAMMING

The "TRC Institute" records and monitors performance of three (3) machines over a period of four (4) days (l to 4) as shown in the Table 1, 2 and 3 respectively. The production ranges between 15.5 and 75.5 

Table 1- Machine "A" Production

Day 1 2 3 4

Array index 0 1 2 3

Production 15.5 25.5 27.5 60.5

Table 2- Machine "B" Production

Day 1 2 3 4

Array index 0 1 2 3

Production 50 45.5 25.5 18

Table 3- Machine "C" Production

Day 1 2 3 4

Array index 1 2 3 4

Production 35.5 65 71 74.5

1) Write a function using C++ statements called GetProduction() which takes a float array and an integer (as the day) as parameters. The function returns the production of that day.


C++ PROGRAMMING

The "TRC Institute" records and monitors performance of three (3) machines over a period of four (4) days (l to 4) as shown in the Table 1, 2 and 3 respectively. The production ranges between 15.5 and 75.5 

Table 1- Machine "A" Production

Day 1 2 3 4

Array index 0 1 2 3

Production 15.5 25.5 27.5 60.5

Table 2- Machine "B" Production

Day 1 2 3 4

Array index 0 1 2 3

Production 50 45.5 25.5 18

Table 3- Machine "C" Production

Day 1 2 3 4

Array index 1 2 3 4

Production 35.5 65 71 74.5

1) Write a function using C++ statements called AverageProduction() which takes three float values (valuel , value2, value3 ) as parameters and returns the average production. 2)Write a function using C++ statements called TotalProduction() which takes three float values (valuel , value2, value3) as parameters and returns the total production.


C++ PROGRAMMING

The "TRC Institute" records and monitors performance of three (3) machines over a period of four (4) days (l to 4) as shown in the Table 1, 2 and 3 respectively. The production ranges between 15.5 and 75.5 

Table 1- Machine "A" Production

1 2 3 4

Array index 0 1 2 3

Production 15.5 25.5 27.5 60.5

Table 2- Machine "B" Production

1 2 3 4

Array index 0 1 2 3

Production 50 45.5 25.5 18

Table 3- Machine "C" Production

1 2 3 4

Array index 1 2 3

Production 35.5 65 71 74.5


Write a function using C++ statements called PrintBar() which takes a float (as production) as a parameter. The function prints asterisks on the screen based on the production.

Note: I asterisk = 10 production units (round up the production units)

Example.

Sample Input

Machine A Day I Production 15.5

Sample Output

**


Write a function:

class Solution { public int solution (int[] A); }

that, given an array A consisting of N integers, returns the sum of all integers which are multiples of 4.


C++ PROGRAMMING

The "TRC Institute" records and monitors performance of three (3) machines over a period of four (4) days (l to 4) as shown in the Table 1, 2 and 3 respectively. The production ranges between 15.5 and 75.5 

Table 1- Machine "A" Production

1 2 3 4

Array index 0 1 2 3

Production 15.5 25.5 27.5 60.5

Table 2- Machine "B" Production

1 2 3 4

Array index 0 1 2 3

Production 50 45.5 25.5 18

Table 3- Machine "C" Production

1 2 3 4

Array index 1 2 3

Production 35.5 65 71 74.5

(b) Write a function using C++ statements called MinimumMachine() which takes three float values (valuel, value2, vlaue3) as parameters and returns the machine that has the lowest production.

MinimumMachine  returns A (represents machine A)

(c) Write a function using C++ statements called MaximumMachine() which takes three float values (valuel, value2, value3) as parameters and returns the machine that has the highest production.

Ex:

MaximumMachine (15.5,50,35.5) returns B (represents machine B)


C++ PROGRAMMING

The "TRC Institute" records and monitors performance of three (3) machines over a period of four (4) days (l to 4) as shown in the Table 1, 2 and 3 respectively. The production ranges between 15.5 and 75.5 

Table 1- Machine "A" Production

1 2 3 4

Array index 0 1 2 3

Production 15.5 25.5 27.5 60.5

Table 2- Machine "B" Production

1 2 3 4

Array index 0 1 2 3

Production 50 45.5 25.5 18

Table 3- Machine "C" Production

1 2 3 4

Array index 1 2 3

Production 35.5 65 71 74.5

(a) Write a function using C++ statements called InputProduction() which takes a float array and an integer (as the size of the array) as parameters. The method should ask the user to insert production of each machine and fill the array. The values are entered through the keyboard and range between 15.5 and 75.5.


Write a function using C++ statements called PrintReport() which takes three float arrays (valuel, value2, value3) and an integer (as the size of the array) as parameters. The method prints the report as given below.

Sample Output:

Day Machine A Machine B Machine C Minimum Maximum Total Average

1 15.5        50       35.5    A B  101 33.66

2 25.5        45.5  65 A C  136 45.33

3 27.5        25.5  71   B C 124 41.33

4 60.5         18       74.5   B C 153 51

Note: Should use functions already defined to find minimum, maximum, total and average.


b) You have sub-netted your class C network 200.138.1.0/?? with a subnet mask of 255.255.255.224. Please list the following: number of networks, number of hosts per network, the full range of the first three networks, and the usable address range from those first three networks. Additionally, identify the broadcast addresses for each network.


LATEST TUTORIALS
APPROVED BY CLIENTS