Question: Java Write a program that asks the user to enter total rainfall for 12 months into an array of doubles. The program should have the

Java

Write a program that asks the user to enter total rainfall for 12 months into an array of doubles. The program should have the following methods that performs the operations as described.

-main: it will execute the methods only.

-createArray: it will create an double array of size 12 and return the array

-getInput: give the array as the starting value, it will ask user to enter values into array

-getTotalRainFall: give the array as the starting value,it will return the total rainfall

-getAverageRainFall: give the array as the starting value, it will return the average rainfall

-getMonthMostRainFall: ,give the array as the starting value, it will return the name of the month with most rainfall

-getMonthLeastRainFall: ,give the array as the starting value, it will return the name of the month with Least rainfall.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!