Computers and Technology

A) 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:
58 65 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.

*notes:
your program should prompt the user the following:

1. enter 28 radings for temperature
2. display the hottest days(high temperature 85 or higher).
3. display pleasant days(temperatue between 60-84).
4. display number of cold days(high temperatue less than 60).
5. finally display the average temperature.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:30, Thisisdifinite
Which of the following would you find on a network
Answers: 3
image
Computers and Technology, 24.06.2019 11:30, nate1808
What does the https: // mean when you type in a website
Answers: 1
image
Computers and Technology, 24.06.2019 13:00, naomirice24
In a heat transfer course, we can derive the equation for the temperature distribution in a flat rectangular plate. in this example, we will look at a plate at steadystate with three sides being held at t1, and one side held at t2. the temperature for any location on the plate, t(x, y), can be calculated by where create a function (prob3_5) that will take inputs of vectors x and y in feet, scalar n, scalars l and w in feet and scalars t1 and t2 in degrees fahrenheit. it will output a matrix t which is the temperature of each x and y locations. t will have the number of columns equal to the number of elements in x and rows equal to the number of elements in y. though this can be done without loops (perhaps more efficiently), your program must use a nested loop.
Answers: 2
image
Computers and Technology, 24.06.2019 20:50, cookie1701
Which key function of a business involves finding, targeting, attracting, and connecting with the right customers?
Answers: 3
Do you know the correct answer?
A) write a program to process a collection of daily high temperatures. your program should count and...

Questions in other subjects:

Konu
Social Studies, 03.03.2021 01:00
Konu
Mathematics, 03.03.2021 01:00