Question: please show that code works in command prompt 7. a. write a program to process a collection of daily high temperatures. Your program should count

 please show that code works in command prompt 7. a. write

please show that code works in command prompt

7. a. 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 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!