Youve been asked to write a program that lets the user


Problem

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!

You've 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.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Youve been asked to write a program that lets the user
Reference No:- TGS02779367

Expected delivery within 24 Hours