Answered step by step
Verified Expert Solution
Question
1 Approved Answer
USING LINKED LISTS C++ Rainfall Statistics Scientists at ABC Meteorology, Inc. are doing some research on global warming and they need to keep track of
USING LINKED LISTS 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! 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. A screenshot of 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started