Observe the following statements, which represents the tasks performed by a function called main:
• Declare a floating-point array, called Covid19, of a size of 10.
• Perform a call to a function named getTemp, as described in part A
• Output the result from the call to a function named calcAvgTemp, as described in part B You are required to implement the C++ instructions for main. (Note: This function will have no return value).
Write a function, called calcAvgTemp, that accepts TWO (2) arguments in its parameter: a floating-point array, and a value representing the size for the floating-point array. Your solution must calculate the average of the values found in the array, and then return the result as a floating-point value.
Write a function, called getTemp, that accepts a one-dimensional floating-point array and an integer value representing the size of the array, within the function’s parameter; the function does not return a value. The function must demonstrate the use of required C++ programming instructions to store TEN (10) values in the function’s array. Your solution is also required use the for-loop to solve the given problem.
A teacher has stored the percentage scores for eighty-six (86) students; she has the following tasks to complete: • compute and print the average score. • add an additional fourteen percent to each student’s score
Write a function, called calcAvgTemp, that accepts TWO (2) arguments in its parameter: a floating-point array, and a value representing the size for the floating-point array. Your solution must calculate the average of the values found in the array, and then return the result as a floating-point value.
Write a function, called getTemp, that accepts a one-dimensional floating-point array and an integer value representing the size of the array, within the function’s parameter; the function does not return a value. The function must demonstrate the use of required C++ programming instructions to store TEN (10) values in the function’s array. Your solution is also required use the for-loop to solve the given problem.
Write a pseudocode that will allow a retail store to process the monthly commission that will be paid to their employees. Your solution will accept the total employees to be processed, and then produce an output showing the commission to be given for each employee, after accepting their name, Taxpayer Registration Number (TRN) and total sales for the month. A 10% commission is given if the total monthly sales is 100,000 or less; however, if the total monthly sales amount exceeds 100,000, the employee gets a commission of 8% of the amount up to and including 100,000 as well as 20% of the amount exceeding 100,000
Write a C++ program that accepts a base value, x, and a power value, k. The program must use an appropriate in-built function (from the CMATH library) to obtain the result of x k . The solution must repeat the instructions, for obtaining x and k to compute and output x k , for TEN (10) times.
A machine’s engine coil rotates in a 360o motion ten times every second once the machine is in operation. Nebisko Biscuits starts its production at 10:00 am and ends at 4:00 pm (6 hours) each day. The company packages one biscuit every 5 seconds. A report of the total biscuits packaged per day is given to the production manager for their weekly report. The machine encountered a fault yesterday and had stopped working for 35 minutes. Implement a C++ program to compute and output the total of times the coil is expected to rotate during normal period of production; as well as compute and output with the total amount of biscuits that is expected to be packaged daily. Your solution must also compute and output the total amount of biscuits that would have been packaged based on the duration for which the machine encountered a fault yesterday.
A teacher has stored the percentage scores for eighty-six (86) students; she has the following tasks to complete: • compute and print the average score. • add an additional fourteen percent to each student’s score Write a pseudo-code that will first allow the teacher to enter the initial percentage score for each student, as well as add the 14% to each student’s score. Your solution must then compute and display the average score. Your solution must implement and use an array to store and process the percentage scores