Question: I have code for this problem but it shows me errors please help me to solve it with output. Here is my code, //intermediate22.cpp #include
I have code for this problem but it shows me errors please help me to solve it with output.
Here is my code,
//intermediate22.cpp #include
using namespace std; int main() { //declaration of array int temperatures[7][2] = { 0 }; //declare the local variables double avgHigh = 0.0; double avgLow = 0.0; int total = 0; int high = 0; int low = 0; //receive input from user cout > temperatures[row][col]; } else { cout > temperatures[row][col]; }//end if }//end for cout high) high = temperatures[row][col]; } else { if (temperatures[row][col]
}// end if total = 0; }//end for system("pause"); return 0; } //end of main function
EDIATE 23. If necessary, create a new project named Intermediate23 Project and save the in Cpp8lChap12 folder. Also create a new source file named Intermediate23 Declare seven-row, two-column int array named temperatures. The program should the prompt the user to enter the highest and lowest temperatures for seven days. Store highest temperatures in the first column in the array. Store the lowest temperatures in the second The program should display the average high temperature and the column average low temperature. Display the average temperatures with one decimal place. Save and then run the program. Test the program using the data shown in Figure 1 Lowest Highest Day 67 95 54 98 70 86 56 99 34 75
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
