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

 . 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

. 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 *** instead of an integer, Complete the method public static boolean addRainfall Data 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 . Task 3: The system will determine and return the numerie value of the lowest rainfall of the twelve collected. Complete the method public static int lowest Rainfall mount to complete this task. See the method comments for more detail . Task 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 lowestRainfall Month to complete this task. See the method comments for more detail .Tasks: The system will determine and return the numeric value of the highest rainfall of the twelve collected Complete the method public static int highestRainfallAmount 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 Rainfall Month to complete this task. See the method comments for more detail. package assignment; Sor! BALSAREI suble LOS RITA Tara public static void main() args) { W/ TODO Auto-generated method to Win istinty for testing your code Nel test your assigned to set af efferent dat, a 11 WOT sufficient to simply return these results in all curen! Ota you can use to test your assignment .al2. 3. 4. 5. 6. 10, 11, 12 - data 12, 11, 10, 9, 10, 5, 4, 3, 2, 1 das 15.20., 23, 30, 3, 12, 13, 1, 10, 2 addrainfatt(): Systro.out.printin The average rafall for the year was "averageRainfall).Inches);//answers16. tate, 51.91666.. St.out.println("The lowest rainfall recorded for any sonth was loves RainfallAndunt() inches://stati, 21:0 System.out.println"The nane of the month with the lowest recorded rainfall slots Rainfall Month(1)://atry data 21 December System.out.printini The highest rainfall recorded for any month was highestainfallAount()" Inches"://amat data1:32 date:12, data: 10 System.out.println The rate of the month with the highest recorded rainfall was highestraintal Montrer detalleer datazanary data une 3 230 24 . This the computes the average rainfall for the year use for loop call that were the sum of the array values divided by the number count) or values .areturn adottor the computed average public static double strage info reture -1.0: 200 This method finds the smallest value in the rainfall array - return the later of the lowest rainfall in the array - NOTER ASS That the values in the array ace alt unique public static int to 30 70 40 41 43 44 45 460 42 411 09 sa This method finds the name of the month that matches the sellest value in the rainfall array return the of the th with the lowest rantall in the array *NOTE: Assume that the values to the array are all unique public stati pringstanfallet en la > - Timthed tans the largest value in the raintatt array - return the integer of the largest rainfall is the array - NOTER Ass that the values in the array are all unique public static int Highest stallet() { return -11 ) se se 61 2 1 540 65 66 67 610 This the finds the one of the the largest value the rainfall arcay Greturn the name of the auth the largest rattati is the array - NOTE AS that the values in the array are all unique Dublic static string highestraintal Mant) { return valt: > . This bod adds rainfalt water to the array. Using white toon present the message, et an integer for the rainfall data for Jossary or enters to stop on the fron the left then the top stop and false is Otherese store the inte value in the ray end the loop when 12. Integers have been added to the cray, return true - return trum av iven for 11 minth return fat seems to stop Witable Smartert 22 201103 Bata you can use to test your assigned dotalt 1. 2. 3. 4. 5. 6. 7. 8.30, 11, 12 1. i. 10. 2014, do 15, 20, N., 12. 38.5.22. 12. 7. 10.3 addas fallasta(); System.out.println("The average rainfall for the year was average anfall)"teches."li.rs.data.5. dota2:6-5data: 11.92666.. System.out.printlal The lowest rainfall recorded for any month was lowestraintal Amount()" Inches)://ansverst stali. data2!, dat 3:8 System.out.println("The name of the month with the lowest recorded rainfall "lowesteintal Monte)://es: data: January 2: December, datorit System.out.print"The highest rainfall recorded for any month wegnestanfallmunt(inches) Gata 120182:12 13 system.out.println("The name of the conth with the highest recorded rainfall was highest Rainfall Month();//an data 11 December, datanaty, date This method compute the overage rainfall for the year. Use for lo all that were the sun of the Presided by the count) of values Dreturn double for the computed overage public static double averageRainfall return=1.0: 34 . This is the sellest value in the maintait array return the integer of the trainfall in the arrhy - HOTEL AS that the values in the array area enque public straintalunt() { retum -1: 370 410 62 44 This the finds the name of the month that matches the smallest value in the rainfall array return theme of the sun with the lowest rate in the spray NOTED Aue at the value the array are 11 out . Lietti String Cowes Rainfall Monte 460 510 This the finds the target varitatt array return the integer of the largest rainfall in the army NOTE ASS That the values in the array are all pusti sttie intestinalent) return -11 61 07 This sed finds then the titrat to the largest in the rainfallar return the one the month with the largest rintot in array NOTEI A that the water in the array are all public static String highest station return! 610 45 GY thus the wide raufall values to the array. Using while lor present the message... leone enter an inter for the intell data for January or stop of the hero the conte. Esther the top and secured. Otherwise the integer value in the the town 12 integers have been added to the array, return the erstur trial ver 12 return falser to public static bilan dan return false

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!