Question: Hello, Can someone help me with this program. The program does not need to use an array for the check the data is given on
Hello, Can someone help me with this program. The program does not need to use an array for the check the data is given on the excersise (THE USER WILL ENTER THE TEMPERATURE AND THE PROGRAM WILL SCAN IT ), then use a while loop for a sentinel-controlled loop. Then if _else loop to dtermint the category temperature: hot, pleasant, or cold
ii. count and print the number of hot days, pleasant days, cold days
iii. compute and print the average temperature (a real number)
b. Your program must use a multi-way if-else-if statement to decide if a day is hot, pleasant, or cold. Do not use extra unnecessary conditions in each branch.


Programming Projects 309 Write a program to process a collection of daily high temperatures. Your program should count and print the number of hot days (high tempera ture 85 or higher), the number of pleasant days (high temperature 60-84), and the number of cold days (high temperatures less than 60). It should also display the category of each temperature. Test your program on the following data: 55 62 68 74 59 45 41 58 60 67 65 78 82 88 91 92 90 93 87 80 78 79 72 68 61 59 7. a. b. Modify your program to display the average temperature (a real number) at the end of the run
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
