Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Initialize the weekly temperatures array weeklytemps 100 200 300 400 500 600 700 600 700 800 900 100... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Computer Network questions

Question

Trace Greek medical thought from Aesculapius to Hippocrates.

Answered: 1 week ago