Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Linked Lists in C++ Rainfall Statistics Scientists at ABC Meteorology, Inc. are doing some research on global warming and they need to keep track of

Linked Lists in C++

Rainfall Statistics

Scientists at ABC Meteorology, Inc. are doing some research on global warming and they need to keep track of rainfall. They have chosen to hire you to help them out!

Youve been asked to write a program that lets the user enter the total rainfall for an unknown (ahead of time) number of months into a linked list. The program should calculate and display the total rainfall for the year, the average monthly rainfall, and the months with the highest and lowest amounts.

Special considerations:

Your program must allow the user to decide how many months of data will be entered.

Your linked list should hold the monthly data.

The expected output is provided below:

How many months will you enter? 3 Enter the rainfall (in inches) for month #1: 4 Enter the rainfall (in inches) for month #2: 2 Enter the rainfall (in inches) for month #3: 5

The total rainfall for the period is 11.00 inches. The average rainfall for the period is 3.67 inches. The largest amount of rainfall was 5.00 inches in month 3. The smallest amount of rainfall was 2.00 inches in month 2.

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 Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

Students also viewed these Databases questions