subject

Write a program to track and display rainfall for each month for 5 years (2010 - 2014).
Use a 2 dimensional array to store the rainfall for each month (5 rows (for the years) and 12 columns (for the months)).

Using an initializer list, populate the array with the below data.
Display the table of the rainfall values for the 5 years and 12 months (as shown below). Then, total and display the rainfall for each year, and calculate and display the average rainfall for each month.
Hint: When totaling the rainfall for each month (to calculate the average), use an outer loop to loop through the months first, and an inner loop to loop through the years.

There is nothing entered by the user.

Exactly how output should look:

Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2010 0.88 1.11 2.01 3.64 6.44 5.58 4.23 4.34 4.00 2.05 1.48 0.77
2011 0.76 0.94 2.09 3.29 4.68 3.52 3.52 4.82 3.72 2.21 1.24 0.80
2012 0.67 0.80 1.75 2.70 4.01 3.88 3.72 3.78 3.55 1.88 1.21 0.61
2013 0.82 0.80 1.99 3.05 4.19 4.44 3.98 4.57 3.43 2.32 1.61 0.75
2014 0.72 0.90 1.71 2.02 2.33 2.98 2.65 2.99 2.55 1.99 1.05 0.92

Total rainfall for each year:
2010 xx. xx
2011 xx. xx
2012 xx. xx
2013 xx. xx
2014 xx. xx

Average rainfall for each month:
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
x. xx x. xx x. xx x. xx x. xx x. xx x. xx x. xx x. xx x. xx x. xx x. xx

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:50, edenlbarfield
Which are steps taken to diagnose a computer problem? a) reproducing the problem and using error codes b) reproducing the problem and troubleshooting c) using error codes and troubleshooting d) using error codes and stepping functions
Answers: 1
image
Computers and Technology, 22.06.2019 05:00, mathman783
Which two editions of windows 7 support 64 bit cpus? choose two out of professional, business, starter, or home premium.
Answers: 1
image
Computers and Technology, 22.06.2019 18:30, emojigirl2824
Word vocabulary words: print, proofread, status line, graphics, font effects, left margin, justification, line spacing, copy/paste, data. review words: font point, bold, save, center, error. fill in the correct word for the definition and then transfer the letters to the appropriate spot by number. some numbers will be found multiple times. you will end up with a quotation about…… what else? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 k 16 17 18 19 20 21 22 23 24 25 8 27 28 29 w 31 32 k 34 35 36 w h 39 40 41 42 8 44 45 46 47 48 49 50 51 52 53 54 55 .1. a software function that records keystrokes on a disk or drive so information can be 5 4 52 9 later retrieved. p n 2. to produce a paper copy of information. 10 7 12u n 3. a display that shows the location of the cursor, pages, etc. 45 46 18 27 36 20 42p4. pictures or images, located in clip art or other files. 6 24 44 28 34 49 555. any mis-stroke of a key. 47 41 48 2 10 n6. allows major changes to the font such as shadow, emboss, etc. 21 25 46 35 23 21 29 14 22 17 n7. a feature that centers lines of text horizontally. 49 53 46 9 51 p8. size of the font 31 16 22 b l 9. a feature that prints designated text darker than the rest to add emphasis. 32 3 . p10. to compare copy on a display screen or printout to the original 24 39 25 23 54 9 50 3 and correct errors. j un 11. a feature that allows text to be aligned at the left 11 12 7 21 16 49 40 46 34 2 and right margins. leftn 12. amount of blank space on the left side of the paper. 8 18 41 6 34 linen 13. number of blank lines between lines of text. 17 4 49 13 1914. any information inputted into the computer. 3 4 46 44 p /p15. feature that duplicates text from one location and places it in another.
Answers: 2
image
Computers and Technology, 23.06.2019 08:00, seaotter7140
Michael has written an e-mail to his employees that describes a new product special that will be introduced to the customers next week. by taking time to make sure the e-mail is well written, logical, and organized, michael has made sure his message has the characteristics of a) effective communicationb) ineffective communicationc) barriers to communicationd) workplace communication
Answers: 2
You know the right answer?
Write a program to track and display rainfall for each month for 5 years (2010 - 2014).
Use a...

Questions in other subjects:

Konu
Mathematics, 04.07.2019 16:00
Konu
Biology, 04.07.2019 16:00
Konu
Mathematics, 04.07.2019 16:00