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

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter3: Coding With Variables, Named Constants, And Calculations
Section: Chapter Questions
Problem 3MQ4
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
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning