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.
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.
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...
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
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 2 images
Knowledge Booster
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.Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,