Question: Java please, and here is the code please follow thank you Instructions You will be given the name of a city followed by a set

Java please, and here is the code please follow thank you InstructionsYou will be given the name of a city followed by aset of integers representing the monthly rainfall (in millimeters) that have happenedJava please, and here is the code please follow thank you

Instructions You will be given the name of a city followed by a set of integers representing the monthly rainfall (in millimeters) that have happened in a given area over the past year. You will then calculate the average (mean) rainfall for the year. The mean is calculated by dividing the sum of the values in the set by the number of elements in the set. mean of a set = sum of all elements / number of elements The mean of the series 1, 2, 3, 4, 5 is: 1+2+3+4+5 / 5 = 15/5 = 3 Output will be of the form "The average rainfall in city is mean mm" Write the body of the program. Function Details Input The program reads in the following: A string, the name of a city Twelve integers, representing the monthly rainfall (in millimeters) for the given city over the past year Processing You will calculate the mean rainfall. Output Output the following where city is replaced by the name of the city and mean is replaced by the calculated average (integer) rainfall: The average rainfall in city is mean mm The text must be terminated by a new-line character. Sample Input/output: Sample Input Sample Output Sample Input/output: Sample Input Sample Output Halifax 96 69 97 98 111 108 107 97 100 125 129 118 The average rainfall in Halifax is 105 mm Full Screen POD.Java** New 1- import java.util."; 3. public class POD { public static void main(String[] args) { manonoonga //PLEASE START YOUR WORK HERE //PLEASE END YOUR WORK HERE System.out.print("END OF OUTPUT")

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!