Question: Design and implement a structure that stores the high and low temperature for a day. Your implementation should include a constructor function that sets the
Design and implement a structure that stores the high and low temperature for a day. Your implementation should include a constructor function that sets the day of the week string the high temperature int and the low temperature int Also write a display function inside the structure that displays the data as in this example:
Day: Monday
High temperature:
Low temperature:
Store one week's worth of objects in a vector and using the vector, compute and display the average high temperature and the average low temperature.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
