Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

In C language using Arrays, and printf scanf statements: Dwork-Study Requireme Tri-County Technical Cox , College Central Net Chapter 5-Arrays-702 e2D Rainfall ASSIGNMENx eWrite A

In C language using Arrays, and printf scanf statements:

image text in transcribed

Dwork-Study Requireme Tri-County Technical Cox , College Central Net Chapter 5-Arrays-702 e2D Rainfall ASSIGNMENx eWrite A Rai Fall Class ln X C Secure https://bb tctc.edu/webapps/blackboard/content/listContentsp?course id-481118-1&content_id:5580341 2D Rainfall ASSIGNMENT: 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 Example Run: an FMar Apr y Jun Jul AugSep Oct Nov Dec 2010 0.88 1.11 2.01 3.64 6.44 5.5 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.8 3.72 3.78 3.551.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.991.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: an Fe Mar Apr May Jul Aug Sep oct Nov Dec X. XX X.Xx X-xx X- xX X.XX X.XX X.XXX.xX X.XX X. XX X.XX X. XX The example run shoWS EXACTLY how your program output will look Ch. 5 H/W EPIC 12:07 PMM /9/2018

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions