Java program help.. Write a program using loop and file to collect the rainfall over a period of years?
-
Write a program using loop and file to collect the rainfall over a period of years and calculate the average rainfall: 1. ask the user for the number of years. Perform input validation on the number of years to make sure it is at least 2 years 2. using a nested loop to collect the inches of rainfall for each month over those years. Perform input validation for rainfall to make sure it is positive 3. calculate the total inches of rainfall, and the average rainfall per month for the entire period. 4. write each month's rainfall, total inches of rainfall, and the average rainfall into a file named rainfall.txt
-
Answer:
so what is your question?
pinder at Yahoo! Answers Visit the source
Other answers
Try a few things first. You'll have to make the start, we're here to help you if you're stuck, not to do your homework for you. If you extend the question with the code you already have I'll look into it, if not, good luck on finding someone who will do your entire homework assignments for you.
Ahmed
Related Q & A:
- How do you pause a program until a button is pressed in JAVA?Best solution by Stack Overflow
- How to write a program to monitor the temperature of CPU?Best solution by Stack Overflow
- Is there a program that allows me to make my mp3's files a ringtone?Best solution by play.google.com
- How do you program using Java?Best solution by wikihow.com
- How to write a TV program proposal?
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.