Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 1: The system will ask the user to enter an integer for each of the twelve months in order with a message that lets

image text in transcribed
image text in transcribed
Task 1: The system will ask the user to enter an integer for each of the twelve months in order with a message that lets the user know the name of the month that the data is for. If the user wishes to cancel this input process, they can enter "x" instead of an integer. Complete the method public static hoolean add RainfallData to complete this task. See the method comments for more detail Task 2: The system will compute and return the average rainfall. Complete the method public static double averageRainfall to complete this task. See the method comments for more detail Tusk 3: The system will determine and return the numeric value of the lowest rainfall of the twelve collected. Complete the method public static in lowest RainfallAmount to complete this task. See the method comments for more detail . Tisk 4: The system will determine and return the name of the month with the lowest rainfall of the twelve collected. Complete the method public static String lowest Rainfall Month to complete this task. See the method comments for more detail Task 5: The system will determine and return the numeric value of the highest rainfall of the twelve collected Complete the method public static int highest Rainfall amount to complete this task. See the method comments for more detail Task 6. The system will determine and return the name of the month with the highest rainfall of the twelve collected Complete the method public static String highest RainfallMonth to complete this task. See the method comments for more detail. oms Trucking love module-info.jave 2 playing wie Strings.java module-indjeve Randalacar.java public static void main(String[] args) { // TODO Auto-generated method stub Iain is only for testing your code. I will test your assignment on a (set of different data, so it is NOT sufficient to simply return these results in all cases! / Data you can use to test your assignment datali 1. 2. 3. 4. 5. 6. 7. 8, 9, 10, 11, 12 data21 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 data3: 15, 20, 8, 6, 12, 30. 5. 22. 12, 7, 10, 2 adarainfaltoata(); System.out.println("The average rainfall for the year was "average anfall)." inches."); //answersi data116,5, data216.5, dat43:11 P4666.... System.out.println("The lowest rainfall recorded for any month was lowest RainfallAmount) Inche 21//answersi data:idata211, taste System.out.println("The name of the month with the lowest recorded rainfall was leves tratatal Munth)//answers! dataltuary, dato21 December, data): April 19 System.out.println("The highest rainfall recorded for any month was highest Rainfalhount(* Inches 11/answers! Gatal:12, data 112, data):30 System.out.println("The name of the month with the highest recorded rainfall was highest intel onth));//answersi datal. December, data: January, data:June 21 > 22 230 24 This method computes the average rainfall for the year. Use a for loop Recall that average is the sun of the arrey values divided by the Runber (count) of values. return a double for the computed average ./ public static double averageRainfall return -1.03 > This method finds the smallest value in the rainfall arra Breturn the integer of the lowest rainfall in the array NOTE: Assume that the values in the array are all unique * public static int lowest Rainfallndunt) { return -13 This method finds the name of the month that matches the smallest value in the rainfalt array return the name of the month with the lowest rainfall in the array. NOTEI Assume that the values in the array are all unique public static String lowest Rainfallonth) { return nulla > Raasiseseiseansi sisseeissciszkezels des . This method finds the largest value in the rainfall array Greturn the Integer of the largest rainfall in the array NOTEAssume that the values in the array are all unique ./ public static int highesthainfall mount() { return -13 > le This method finds the name of the month that matches the largest value in the rainfall array return the name of the month with the largest rainfall in the array. NOTEI Assume that the values in the arrey are all unique ./ public statie String highestRantallent){ return nullus > los This method adds rainfall values to the array. Using a white loop present the message, e... Please enter an integer for the rainfall data for January or enter to stop get the input from the console, if it is then the loop steps and fats is returned. Otherwise store the integer value in the array - end the loop when 12 integers have been added to the array, return true. return true if a value was given for all 12 months, return false se enter to stop public static boolean Rainfalldata() { return falses Iman 201803

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

More Books

Students also viewed these Databases questions

Question

3. Write a policy statement to address these issues.

Answered: 1 week ago

Question

2. Why has the conflict escalated?

Answered: 1 week ago