Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Find each product. 3 7 3 89 .

Answered: 1 week ago

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago