Weather station | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Weather station

A program is supposed to process rainfall amount for a weather station. This program has some functionalities; 1. The user is able to enter the rainfall amount from the keyboard 2. The program is able to calculate the total amount of rainfall in the year 3. The program is able to calculate the average amount of rainfall in the year. This program should be in Java😁 🙏🏽

14th Nov 2018, 12:06 PM
Romo
Romo - avatar
13 Answers
+ 6
Is this a homework assignment ? Please, if you want us to help you, then show us your attempt, what you don't understand exactly, where you are struggling, it will be much easier!👍😉 Do not ask someone else to do it for you!!!?
14th Nov 2018, 2:59 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 6
Romo 👍You are welcome! 😊
15th Nov 2018, 5:53 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 6
Check out this example, and repeat how to use getters and setters in Java, this should help you! 👍 https://www.sololearn.com/learn/Java/2154/ https://code.sololearn.com/c1o7n3XaFXI6/?ref=app
15th Nov 2018, 7:53 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 6
Romo Okay, 👍 I made one solution for your question! I hope it will help you to do your code. 😉 https://code.sololearn.com/cW1QomBXx73q/?ref=app
16th Nov 2018, 10:21 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 5
Hello, Welcome to SoloLearn! 😊 Where is your attempt...!? Posts in Q/A section should be programming-related and aimed at helping individual learners and community members improve their programming skills! Please, read our guidelines: https://www.sololearn.com/discuss/1316935/?ref=app An useful code for any new user here!;) https://code.sololearn.com/WvG0MJq2dQ6y/
14th Nov 2018, 12:33 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 5
Romo Check out line 25: You need to correct --> (System.In); Scanner scan = new Scanner(System.in);
14th Nov 2018, 8:38 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 1
Danijel Ivanović thanks man!!
15th Nov 2018, 5:50 PM
Romo
Romo - avatar
+ 1
how do i print the months and its respective rainfall 12times?Danijel Ivanović oh yeah this question also goes to anyone who wants to help😁🙏🏽 and also i’d encourage you guys to challenge your skills
15th Nov 2018, 6:20 PM
Romo
Romo - avatar
+ 1
Danijel Ivanović thanks for the guideline🙏🏽 let me work on it and try it out
17th Nov 2018, 5:15 AM
Romo
Romo - avatar
0
someone help please i am stuff
14th Nov 2018, 6:19 PM
Romo
Romo - avatar
0
stuck*😁🙏🏽
14th Nov 2018, 6:19 PM
Romo
Romo - avatar
0
i am not able to get input from the keyboard using Scanner
14th Nov 2018, 6:22 PM
Romo
Romo - avatar