Question: Second picture you must follow Write a java program where a user enters and stores the average monthly rainfall figures (int) for three (3) towns
Write a java program where a user enters and stores the average monthly rainfall figures (int) for three (3) towns over a year. The rows represent the months, and the columns represent the towns. TOWN 1 TOWN 2 TOWN 3 Month1 Month2 Month3 Month4 Month5 Month6 Month7 Month8 Month9 Month10 Month11 Month12 month, Use a switch statement to print out the month name according to the column subscript value (E g. if col 0, then print January, col 1 then print February, etc.)with the corresponding total alongside it. Example of output: SUMMARY OF RAINFALL FOR 2016 Town 1 total rainfall Town 2 total rainfall Town 3 total rainfall 175 mm 2345 mm 689 mm January February March etc 409 mm 560 mm 157 mm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
