Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

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

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions

Question

5. Discuss the key components of behavior modeling training.

Answered: 1 week ago

Question

4. Develop a self-directed learning module.

Answered: 1 week ago

Question

2. Provide recommendations for effective on-the-job training.

Answered: 1 week ago