Question
Before your boss allows adjustable thermostats in the office suite, he must be convinced that major temperature variations occur in different offices and within each
Before your boss allows adjustable thermostats in the office suite, he must be convinced that major temperature variations occur in different offices and within each office on different days. Youre to write a program that allows each employee to enter the temperature at noon on each of five days and displays the highest, lowest, and average (mean) temperatures.
Using pseudocode, design a complete algorithm that accepts five daily temperature readings and displays the highest, lowest, and average (mean) temperatures. Use a loop to take the five readings. (Hint: Initialize the highest and lowest temperature variable to the first temperature thats read, and then compare other temperatures to see whether theyre lower or higher.)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started