Lab #1 Enhancements:1. For the maximum and minimum rainfall amount, also display the month where that happened. For example:a. Maximum rainfall: January, 88.2 inchesb. Minimum rainfall: July, 12.3 inches2. Format all numbers with 1 decimal pointsMain class name: RainFall2 (no package name) WHEN I UPLOAD THE CODE TO HYPERGRADE IT MUST PASS ALL THE TEST CASSES. IT HAS TO PASS ALL THE TEST CASSES. THANK YOU.
Lab #1 Enhancements:1. For the maximum and minimum rainfall amount, also display the month where that happened. For example:a. Maximum rainfall: January, 88.2 inchesb. Minimum rainfall: July, 12.3 inches2. Format all numbers with 1 decimal pointsMain class name: RainFall2 (no package name) WHEN I UPLOAD THE CODE TO HYPERGRADE IT MUST PASS ALL THE TEST CASSES. IT HAS TO PASS ALL THE TEST CASSES. THANK YOU.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
JAVA PROGRAM
Lab #1 Enhancements:1. For the maximum and minimum rainfall amount, also display the month where that happened. For example:a. Maximum rainfall: January, 88.2 inchesb. Minimum rainfall: July, 12.3 inches2. Format all numbers with 1 decimal pointsMain class name: RainFall2 (no package name)
WHEN I UPLOAD THE CODE TO HYPERGRADE IT MUST PASS ALL THE TEST CASSES. IT HAS TO PASS ALL THE TEST CASSES. THANK YOU.
Test Case 1
Enter the rainfall amount for month 1:\n
1.2ENTER
Enter the rainfall amount for month 2:\n
2.3ENTER
Enter the rainfall amount for month 3:\n
3.4ENTER
Enter the rainfall amount for month 4:\n
5.1ENTER
Enter the rainfall amount for month 5:\n
1.7ENTER
Enter the rainfall amount for month 6:\n
6.5ENTER
Enter the rainfall amount for month 7:\n
2.5ENTER
Enter the rainfall amount for month 8:\n
3.3ENTER
Enter the rainfall amount for month 9:\n
1.1ENTER
Enter the rainfall amount for month 10:\n
5.5ENTER
Enter the rainfall amount for month 11:\n
6.6ENTER
Enter the rainfall amount for month 12:\n
6.0ENTER
Maximum rainfall: November, 6.6 inches\n
Minimum rainfall: September, 1.1 inches\n
Total rainfall: 45.2 inches\n
Average rainfall: 3.8 inches\n
1.2ENTER
Enter the rainfall amount for month 2:\n
2.3ENTER
Enter the rainfall amount for month 3:\n
3.4ENTER
Enter the rainfall amount for month 4:\n
5.1ENTER
Enter the rainfall amount for month 5:\n
1.7ENTER
Enter the rainfall amount for month 6:\n
6.5ENTER
Enter the rainfall amount for month 7:\n
2.5ENTER
Enter the rainfall amount for month 8:\n
3.3ENTER
Enter the rainfall amount for month 9:\n
1.1ENTER
Enter the rainfall amount for month 10:\n
5.5ENTER
Enter the rainfall amount for month 11:\n
6.6ENTER
Enter the rainfall amount for month 12:\n
6.0ENTER
Maximum rainfall: November, 6.6 inches\n
Minimum rainfall: September, 1.1 inches\n
Total rainfall: 45.2 inches\n
Average rainfall: 3.8 inches\n
Test Case 2
Enter the rainfall amount for month 1:\n
1.29ENTER
Enter the rainfall amount for month 2:\n
6.68ENTER
Enter the rainfall amount for month 3:\n
2.37ENTER
Enter the rainfall amount for month 4:\n
3.46ENTER
Enter the rainfall amount for month 5:\n
5.15ENTER
Enter the rainfall amount for month 6:\n
1.74ENTER
Enter the rainfall amount for month 7:\n
6.53ENTER
Enter the rainfall amount for month 8:\n
2.52ENTER
Enter the rainfall amount for month 9:\n
3.31ENTER
Enter the rainfall amount for month 10:\n
1.17ENTER
Enter the rainfall amount for month 11:\n
5.53ENTER
Enter the rainfall amount for month 12:\n
6.01ENTER
Maximum rainfall: February, 6.7 inches\n
Minimum rainfall: October, 1.2 inches\n
Total rainfall: 45.8 inches\n
Average rainfall: 3.8 inches\n
1.29ENTER
Enter the rainfall amount for month 2:\n
6.68ENTER
Enter the rainfall amount for month 3:\n
2.37ENTER
Enter the rainfall amount for month 4:\n
3.46ENTER
Enter the rainfall amount for month 5:\n
5.15ENTER
Enter the rainfall amount for month 6:\n
1.74ENTER
Enter the rainfall amount for month 7:\n
6.53ENTER
Enter the rainfall amount for month 8:\n
2.52ENTER
Enter the rainfall amount for month 9:\n
3.31ENTER
Enter the rainfall amount for month 10:\n
1.17ENTER
Enter the rainfall amount for month 11:\n
5.53ENTER
Enter the rainfall amount for month 12:\n
6.01ENTER
Maximum rainfall: February, 6.7 inches\n
Minimum rainfall: October, 1.2 inches\n
Total rainfall: 45.8 inches\n
Average rainfall: 3.8 inches\n
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education