Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have coded this problem but it still shows me errors. I have attached my errors please help me to solve it please. Here is

I have coded this problem but it still shows me errors. I have attached my errors please help me to solve it please.

image text in transcribed

Here is my code and errors:

#include #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] 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 19th International Conference Dexa 2008 Turin Italy September 2008 Proceedings Lncs 5181

Authors: Sourav S. Bhowmick ,Josef Kung ,Roland Wagner

2008th Edition

3540856536, 978-3540856535

More Books

Students also viewed these Databases questions

Question

Evaluate three pros and three cons of e-prescribing

Answered: 1 week ago

Question

3. What might you have done differently

Answered: 1 week ago

Question

4. Did you rethink your decision?

Answered: 1 week ago

Question

3. Did you seek anyones advice?

Answered: 1 week ago