Question: Modify the attached code to generate the display. Your code must use the given variables and use the stream manipulators to format the data. Compute
Compute the average result of the 5 given days.
The result should look identical to the following. Note that the last digit aligns with the last character of the day.
// Student Name Here // Tarrant County College - COSC 1436 // Professor Keith Smelser // Week 6 - Average Temps
// Assignment: // Use the cout Stream Manipulators to produce the expect results for the numeric data
#include #include
using namespace std; int main() {
//Variables float mondayMaxTemp = 98.1; float tuesdayMaxTemp = 94.8; float wednesdayMaxTemp = 90.555; float thursdayMaxTemp = 86.88; float fridayMaxTemp = 87.9; //TODO Compute average temp float averageTemp; cout cout //TODO add code to create formatted output return 0; }
The code is
Q
17:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
