Write a JAVA program using loop that asks the user to input seven integer numbers representing-.. the humidity level in Bahrain for each of the day of the week (1 represents Sunday, 2 represents Monday, etc.). The program should find and display the following: 1- the maximum humidity level and the day on which it was recorded. 2- the number of days the humidity level was lower than 40. *Assume that there is only one maximum humidity level. Sample Input / Output Enter the humidity for 1 week: 57 61 37 49 50 62 38 The Maximum Humidity is 62 for the Week Day = 6 The no. of days the humidity level <40 is 2

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 12PE
icon
Related questions
Question
Test2_Q2
Test Content
Question 1
16 Points
Write a JAVA program using loop that asks the user to input seven integer numbers representing.
the humidity level in Bahrain for each of the day of the week (1 represents Sunday, 2 represents
Monday, etc.).
The program should find and display the following:
1- the maximum humidity level and the day on which it was recorded.
2- the number of days the humidity level was lower than 40.
*Assume that there is only one maximum humidity level.
Sample Input / Output
Enter the humidity for 1 week:
57 61 37 49 50 62 38
The Maximum Humidity is 62 for the Week Day = 6
The no. of days the humidity level < 40 is 2
Note: Your answer should follow the given sample input / output.
Transcribed Image Text:Test2_Q2 Test Content Question 1 16 Points Write a JAVA program using loop that asks the user to input seven integer numbers representing. the humidity level in Bahrain for each of the day of the week (1 represents Sunday, 2 represents Monday, etc.). The program should find and display the following: 1- the maximum humidity level and the day on which it was recorded. 2- the number of days the humidity level was lower than 40. *Assume that there is only one maximum humidity level. Sample Input / Output Enter the humidity for 1 week: 57 61 37 49 50 62 38 The Maximum Humidity is 62 for the Week Day = 6 The no. of days the humidity level < 40 is 2 Note: Your answer should follow the given sample input / output.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Random Class and its operations
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT