Question: Hi there, need help writing a program. Task 2: Write your own source code for the following question requirement, then compile, debug and execute it:

Hi there, need help writing a program.

Task 2: Write your own source code for the following question requirement, then compile, debug and execute it:

Write a program to process a collection of daily high temperatures. Your program should count and print the number of hot days (high temperature 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 6874 59 45 41 5860 67 65 78 8288 91 9290 93 8780 78 7972 68 61 59

If you have difficulty designing the program, draw a flowchart of the program before writing it in the C language, or write an algorithm in pseudo-code.

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 Programming Questions!