Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 dateStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started