Question: C++ Programming Exercises Power Plant Data. The data file powerl.dat contains a power plant output in mega- watts over a period of 10 weeks. Each
Programming Exercises Power Plant Data. The data file powerl.dat contains a power plant output in mega- watts over a period of 10 weeks. Each row of data contains 7 floating-point numbers that rep- resent I week's data. In developing the following programs, use symbolic constants NROwS and NCOLS to represent the number of rows and columns in the array used to store the data. 13. Write a function to compute the average of a specified column of a two-dimensional array that has NROWS rows and NCOLS columns. The parameters should be the floating-point array and the desired column. Assume that the corresponding function prototype is 34. Write a function to find the transpose of a two-dimensional vector. Assume that th corresponding function prototype is: void &b, vector &bT); transpose (const vectorvector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
