Compute and print the average power output over this


(1) Generate a power plant output (random numbers between 500 and 1000 ) in megawatts over a period of 10 weeks. Each row of data contains 7 floating-point numbers that represent 1 week's data. Use symbolic constants NROWS and NCOLS to represent the number of rows and columns in the 2-D array. Apply srand() in the program.

(2) Print the power plant output in a 2-D format with headers (number of week and number of day).

(3) Compute and print the average power output over this 10-week period. Print the number of days with greater-than-average power output.Also print the day of the week and the number of the week on which the output is greater-than-average.

(4) Print the day of the week and the number of the week on which the minimum and maximum power output occurred.If there are several days with the minimum and maximum power output, print the information for each of these days.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Compute and print the average power output over this
Reference No:- TGS0661599

Expected delivery within 24 Hours