Modify the attached code to generate the display. Your code must use the given variables and use
Fantastic news! We've Found the answer you've been seeking!
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 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:
Posted Date: