Write a program that computes the average temperature of Jeddah over one week. The user must be prompted to enter the temperature of seven days, one at time. If an entered temperature value is less than -10oC or greater than 70oC, the user must be shown the following message and prompted to enter that value again. “Temperature of Jeddah cannot be less than -5oC or greater than 70oC. Please enter again: ” Finally, print out the average temperature up to decimal places. Note: The average value of N temperature readings can be computed by adding those N readings and then dividing the sum by N. Remember to use appropriate datatypes.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter4: Making Decisions
Section: Chapter Questions
Problem 5E: a. Write a program named CheckMonth that prompts a user to enter a birth month. If the value entered...
icon
Related questions
Question
100%

Write a program that computes the average temperature of Jeddah over one week. The user must be prompted to enter the temperature of seven days, one at time.

If an entered temperature value is less than -10oC or greater than 70oC, the user must be shown the following message and prompted to enter that value again.

“Temperature of Jeddah cannot be less than -5oC or greater than 70oC. Please enter again: ”

Finally, print out the average temperature up to decimal places.

Note: The average value of N temperature readings can be computed by adding those N readings and then dividing the sum by N. Remember to use appropriate datatypes.

 

in c language

Expert Solution
steps

Step by step

Solved in 3 steps with 2 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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,