Question: using the data provided and write a program in C++ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 87 88 89
using the data provided and write a program in C++
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 87 88 89 89 89 85 86 89 90 97 78 77 year 1 56 66 77 87 78 89 98 68 90 70 90 97 year 2 67 66 87 89 98 78 90 98 97 96 96 96 year 3 88 88 87 57 99 90 76 66 68 67 62 87
in the program, show
1, the average for July over 4 years.
2, the average for the first 6 months in the first year
3, Find the average for the 12 months over the first and the last year. You sum the 12 months for the first year and the last year and divide the total by 24
4, Find the average for the 12 months over the first and the last year. You sum the 12 months for the first year and the last year and divide the total by 24
5, Write a void function to find and output in a parameter the best year in terms of sales of all the years. Output 1 for year 1 and 4 for year 4 in a parameter and not using an output statement.
6, Write another void function to find and output in a parameter the best month in terms of sales of all the months over 4 years. Output 1 for January and 2 for February etc. in a parameter and not using an output statement.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
