Write a program Temprature.java that reports the statics of average high temperature in Santa Clara. Ask user to enter t

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a program Temprature.java that reports the statics of average high temperature in Santa Clara. Ask user to enter t

Post by answerhappygod »

Write a program Temprature.java that reports the statics ofaverage high temperature in Santa Clara. Ask user to enter themonthly average high temperature for all the months (month 1 forJanuary, month 2 for February and so on) Save the temperatures inan array Calculate the average high temperature. Count the numberof months where temperature is higher than the average. Figure outthe highest temperature month. Print out average, total, number ofmonth higher than the average and the month name when highestaverage temperature occurs.
Output should look like:
Write A Program Temprature Java That Reports The Statics Of Average High Temperature In Santa Clara Ask User To Enter T 1
Write A Program Temprature Java That Reports The Statics Of Average High Temperature In Santa Clara Ask User To Enter T 1 (54.13 KiB) Viewed 27 times
Enter average high temperature for month 1 : 57 Enter average high temperature for month 2: 62 Enter average high temperature for month 3: 66 Enter average high temperature for month 4 : 69 Enter average high temperature for month 5 : 74 Enter average high temperature for month 6 : 79 Enter average high temperature for month 7:82 Enter average high temperature for month 8:83 Enter average high temperature for month 9 : 80 Enter average high temperature for month 10 : 74 Enter average high temperature for month 11: 64 Enter average high temperature for month 12:58 Average Higher Temperature: 71 Number of months where high temperature is above average : 6 Highest average high temperature month: August.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply