Write a program to process the temperature readings. The user should input the temperature readings. The daily temperature report will be displayed once the sentinel value is keyed in. The report contains the number of days based on temperature category.( using d

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section4.2: The If-else Statement
Problem 8E
icon
Related questions
Question

Write a program to process the temperature readings. The user should input the temperature readings. The daily temperature report will be displayed once the sentinel value is keyed in. The report contains the number of days based on temperature category.( using devc++)

Sample Output:
Please Enter temperature readings
Temperature Day[1] (-50 to exit):12
12 very cold
Temperature Day [2] (-50 to exit):85
85 very pleasant
Temperature Day [2] (-50 to exit):35
35 very cold
Temperature Day [2] (-50 to exit):21
21 very cold
Temperature Day [2] (-50 to exit):44
44 very cold
Temperature Day [2] (-50 to exit): -50
Daily Temperature Report
Number of hot days
Number of pleasant days
Number of cold days
Reference:
Temperature Range
Greater than 85 degrees
60 to 85 degrees
Less than 60 degrees
Øday/s
1day/s
4day/s
Temperature Category
very hot
pleasant day
very cold
Transcribed Image Text:Sample Output: Please Enter temperature readings Temperature Day[1] (-50 to exit):12 12 very cold Temperature Day [2] (-50 to exit):85 85 very pleasant Temperature Day [2] (-50 to exit):35 35 very cold Temperature Day [2] (-50 to exit):21 21 very cold Temperature Day [2] (-50 to exit):44 44 very cold Temperature Day [2] (-50 to exit): -50 Daily Temperature Report Number of hot days Number of pleasant days Number of cold days Reference: Temperature Range Greater than 85 degrees 60 to 85 degrees Less than 60 degrees Øday/s 1day/s 4day/s Temperature Category very hot pleasant day very cold
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage