Question
Package Name: Michigan Program Name: Michigan.java - Console Application -- This program allows the user to input the high temperature in degrees for seven days
Package Name: Michigan Program Name: Michigan.java - Console Application -- This program allows the user to input the high temperature in degrees for seven days and analyzes this data in various ways.
a. Use an array in your solution; this array should contain the seven entries made by the user
i. Use a for loop to prompt the user for each response and store it in the array
b. Count the number of frigid days, cold days, warm days and hot days, using this criteria:
i. A frigid day is 30 or less degrees
ii. A cold day is 31-50 degrees
iii. A warm day is 51-70 degrees
iv. A hot day is 71 degrees or more
c. Display the number of frigid, cold, warm and hot days
d. Calculate the average temperature for the week
e. Display the average temperature
f. Display the highest temperature that occurred
g. Display the lowest temperature that occurred
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