Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me out this problem. I really want to finish it as soon as possible. C++ problem. The goal is to write a complete

Please help me out this problem. I really want to finish it as soon as possible. C++ problem.

image text in transcribed

image text in transcribed

image text in transcribed

The goal is to write a complete C++ program to analyze monthly rainfall data. The data we'll use is from Chicago's Midway airport, but the data could be from any location. The file format consists of an information row, followed by N> 0 rows of data. For example, here's the contents of the input file midway-1.txt Chicago_Midway_Airport_2015_2017 2015 2016 2017 1.23 0.24 0.48 2.94 4.13 4.37 2.25 3.46 4.97 1.59 4.14 5.40 0.65 0.21 3.05 2.50 5.56 1.56 4.95 6.42 1.19 4.22 1.66 1.25 2.65 2.40 4.18 6.27 3.77 2.60 4.23 1.90 0.56 5.98 2.33 0.17 ubuntu/workspace/projecte8/main.cpp Each data row starts with an integer year, followed by 12 real numbers denoting the inches of rainfall for each month (Jan, Feb, .., Dec). The program analyzes this data and outputs the following: Chcgoidway Airport-2815 2017 midway-1.txt Rainfail Analysis Program Average by year (inches): 2815: 2.93333 2816: 2.76833 () 1. The average rainfall for each year 2. The trend (-, -, --, +, ++) as compared to the previous year 3. The average rainfall for each month (across all years) 4. The maximum rainfall amount and date 5. The minimum rainfall amount and date 2017: 3.88667() Trends: = e, + 1, -1 Average by month (inches): Jan: 1.51 Feb: e.95 Mar: 2.57 Apr: 3.98333 May: 4.48667 An example program execution is shown to the right, analyzing the un: 2.84333 file midway-1.txt. Notice that the filename is provided by the user at the keyboard Jul: 3.81 Aug: 3.92667 Sep: 2.24 Oct: 3.93 Nov: 2.71 Dec: 2.27333 Maximum rainfall: 6.42 inches on Aug 2016 Minimum rainfall: 8.17 inches on Dec 2017 * Done* Page 1 of 4 The goal is to write a complete C++ program to analyze monthly rainfall data. The data we'll use is from Chicago's Midway airport, but the data could be from any location. The file format consists of an information row, followed by N> 0 rows of data. For example, here's the contents of the input file midway-1.txt Chicago_Midway_Airport_2015_2017 2015 2016 2017 1.23 0.24 0.48 2.94 4.13 4.37 2.25 3.46 4.97 1.59 4.14 5.40 0.65 0.21 3.05 2.50 5.56 1.56 4.95 6.42 1.19 4.22 1.66 1.25 2.65 2.40 4.18 6.27 3.77 2.60 4.23 1.90 0.56 5.98 2.33 0.17 ubuntu/workspace/projecte8/main.cpp Each data row starts with an integer year, followed by 12 real numbers denoting the inches of rainfall for each month (Jan, Feb, .., Dec). The program analyzes this data and outputs the following: Chcgoidway Airport-2815 2017 midway-1.txt Rainfail Analysis Program Average by year (inches): 2815: 2.93333 2816: 2.76833 () 1. The average rainfall for each year 2. The trend (-, -, --, +, ++) as compared to the previous year 3. The average rainfall for each month (across all years) 4. The maximum rainfall amount and date 5. The minimum rainfall amount and date 2017: 3.88667() Trends: = e, + 1, -1 Average by month (inches): Jan: 1.51 Feb: e.95 Mar: 2.57 Apr: 3.98333 May: 4.48667 An example program execution is shown to the right, analyzing the un: 2.84333 file midway-1.txt. Notice that the filename is provided by the user at the keyboard Jul: 3.81 Aug: 3.92667 Sep: 2.24 Oct: 3.93 Nov: 2.71 Dec: 2.27333 Maximum rainfall: 6.42 inches on Aug 2016 Minimum rainfall: 8.17 inches on Dec 2017 * Done* Page 1 of 4

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

More Books

Students also viewed these Databases questions

Question

1. How do most insects respire ?

Answered: 1 week ago

Question

Who is known as the father of the indian constitution?

Answered: 1 week ago

Question

1.explain evaporation ?

Answered: 1 week ago

Question

Who was the first woman prime minister of india?

Answered: 1 week ago

Question

Explain the concept of going concern value in detail.

Answered: 1 week ago

Question

1-4 How will MIS help my career?

Answered: 1 week ago