Write a program that lets a user enter the rainfall for each of the 12 months in
ID: 3527681 • Letter: W
Question
Write a program that lets a user enter the rainfall for each of the 12 months into an array of doubles, and then print some info about the rainfall over the year. The program should meet the following requirements A function that prompts the user for the rainfall for each month. Donot accept negative numbers for rainfall. A function that computes and returns the average rainfall for the year. The function should not print anything; it should return the result. A function that determines the month with the highest rainfall. The function should not print anything; it should simply return the result. A function that determines the month with the lowest rainfall. The function should not print anything; it should simply return the result. A function that displays the rainfall for each month, the average rainfall for the year, and the month's with the highest and lowest rainfall. Your main() should use these five functions. Create your array in main() and pass it to the functions. Donot create any array in the functions. Main() should not print anything.Explanation / Answer
//A program I wrote last year. Tell me if ther eis something you don't follow: https://www.dropbox.com/s/4nr1eabf6zocovb/RainStats.txt rate and comment and I'll unhost
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.