Question
For this problem, assume that you have a set of 7 values that represent the high temperatures in Celsius for the days of one week
For this problem, assume that you have a set of 7 values that represent the high temperatures in Celsius for the days of one week (Monday Sunday). Given these seven values, determine the following things:
The average high temperature for the week
The value of the highest of the temperatures and its day of the week
Whether the set of temperatures got higher throughout the week, i.e. was each day hotter than the previous day and if not, tell the first day that was cooler than the previous day
2.a) For the problem above, write a set of steps in words that will be an algorithm that can be coded. Designing an algorithm in words is called writing pseudocode. If your problem has assumptions, you generally do not need to write pseudocode for that part of the problem. The list below is the way we approached a problem in class so feel free to use this to guide you in designing your pseudocode.
// What data do we need?
// Where does the data come from?
// What formulas/steps/processes do we need?
// What does our formula/process look like in code?
// Need to make sure formula is syntactically valid and mathematically precise enough
// Determine what calculations/steps to do to implement the process
// Determine what values to save and where to save (store) these values if needed
// What needs to be produced?
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