Question: Please implement the program according in C to the requirements: (20 marks) Write a modular program that analyzes a year' s rainfall data. (1)In addition

 Please implement the program according in C to the requirements: (20
marks) Write a modular program that analyzes a year' s rainfall data.

Please implement the program according in C to the requirements: (20 marks) Write a modular program that analyzes a year' s rainfall data. (1)In addition to main, the program should have a getData(.....) function that accepts the total rainfall for each of 12 months from the user or data file, and stores it in a double array that is defined in main function. (2) It should also have other value returning functions that compute and return to main the averageRainfall......), driest Month(.....), and wettest Month(.....). (3) Test data and Running results are shown as following: Table 1 Rainfall in Hangzhou(mm) (Test data) 73.4 84.2 138.2 126.2 146.6 231.1 159.4 155.8 145.2 87.0 60.1 47.1 Running results on screen: 2010 Rain Report for Hanzhou: Average monthly rainfall: 121.191667 The least rain fell in 12th month is: 47.100000 The laggest rain fell in 6th month is: 231.100000 (20.05) Please implement the program according in C to the requirements: (20 marks) Write a modular program that analyzes a year' s rainfall data. (1)In addition to main, the program should have a getData(.....) function that accepts the total rainfall for each of 12 months from the user or data file, and stores it in a double array that is defined in main function. (2) It should also have other value returning functions that compute and return to main the averageRainfall......), driest Month(.....), and wettest Month(.....). (3) Test data and Running results are shown as following: Table 1 Rainfall in Hangzhou(mm) (Test data) 73.4 84.2 138.2 126.2 146.6 231.1 159.4 155.8 145.2 87.0 60.1 47.1 Running results on screen: 2010 Rain Report for Hanzhou: Average monthly rainfall: 121.191667 The least rain fell in 12th month is: 47.100000 The laggest rain fell in 6th month is: 231.100000 (20.05)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!