Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use JAVA Language. please complete all the parts. Part 1: Design a RainFall class that uses loop and array or ArrayList to compute each month's
Use JAVA Language.
please complete all the parts.
Part 1: Design a RainFall class that uses loop and array or ArrayList to compute each month's rainfall as integers entered by user for a year. . Code methods to compute the sum, average, the greatest and least rainfall, respectively. Display the result of these calculations in another method as output. Code a test program RainFallApp to create object of RainFall and call its methods to perform the tasks described above.' Your program should continue to run until user enters -99 to stop. > Must code an operation class called Rainfall and code a driver class called RainFallApp to test the RainFall class, separately. Must use required/meaningful names for fields, variables, methods and classes. Must document each of your source code (see example in the slide below) Part II: Design a Area Class that has three overloaded static methods Computing to calculate the areas of circles, rectangles, and cylinders. Assume that data for circles and cylinders are all doubles and data for rectangles are integers. Code a test program Area App by calling at least two times with different hard-coded data at your choice for each overloaded methods for testing. Must understand what method overloading is and why use static methods before you start to work on this part. Must use required/meaningful names for fields, variables, methods and classes. Must document each of your source code (see example in the next slide) Part III (Optional for extra-credit): The exercises you have completed including all even- numbered M/C and TIF questions, all even-numbered Predict Output, and ll even- numbered Algorithm Workbench in chapter 5 and 6 using any text editor. Create a folder called answers and copy, and paste all of your exercises from Chapter 5 to 6 to this folder, then copy this folder into Eclipse project folder Lab2 (see Steps... below)Step 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