Question: Write a program that stores the weekly (Monday thru Sunday) daily temperatures for four weeks. Your program should allow the user to enter the temperatures

Write a program that stores the weekly (Monday thru Sunday) daily temperatures for four weeks. Your program should allow the user to enter the temperatures and print a  report with headings, the temperature for each day (your two-dimensional array), the calculated weekly average temperature for each of the four weeks (rows) and the calculated average temperature for each of the days of the week (cols). In addition, create a single-dimensional array of Strings representing the days of the week (Monday-Sunday) using an initializer list. Your program output should look like the following: Input Screen Enter Monday Temperature for Week 1: 10.00 Enter Tuesday Temperature for Week 1: 20.00 Enter Wednesday Temperature for Week 1: 30.00 (etc.) Enter Monday Temperature for Week 2: 60.00 (etc.) Output Screen Weekly Temperature Report MonTueWedThurs FriSatSunAverage 110.020.030.040.050.060.070.040.0 280.090.010.020.030.040.050.045.7 360.070.080.090.010.020.030.051.4 440.050.060.070.080.090.010.057.1 -------------------------------------------------------------------- 47.557.5     45.055.042.552.540.048.6

Step by Step Solution

3.44 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Initialize the weekly temperatures array weeklytemps 100 200 300 400 500 600 700 600 700 800 900 100... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!