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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started