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

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 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!