Question: please put code in java thanks Week 9: Programming Assignment #4 This assignment will be completed in Eclipse on your machine. Write a program that

please put code in java thanks Week 9: Programming Assignment #4 Thisplease put code in java thanks

Week 9: Programming Assignment #4 This assignment will be completed in Eclipse on your machine. Write a program that uses nested loops to collect data and calculate the average rainfall over a period of years. The program should prompt the user for the number of years. Be sure to ask for each months average rainfall for each year. The outer loop will iterate once for each year while the inner loop will iterate 12 times (one time per month) prompting for the months average rainfall on each iteration. Display the number of months, the total inches of rainfall and the average rainfall per month for the entire period of years. This means you will not display back each individual reading but a grand total and average. Do not accept a number less than 1 for the number of years and do not accept negative numbers for the monthly rainfall. Be sure to test your program with various input values. Make sure your program is properly documented using comments where needed. Note that this project must be done individually. The program will be checked using a code plagiarism tool against other solutions, so please ensure that all work submitted is your own. You may read and write from the console window. Make sure your input and output are formatted nicely and easy to read. You are to submit your source file, called Rainfall.java in Moodle by the due date

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!