Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

I NEED THE FLOWCHART OF EACH OF THESE 4 SOLUTIONS, PROBLEM: From the following table, develop 4 solutions using nested loop to obtain the following.

I NEED THE FLOWCHART OF EACH OF THESE 4 SOLUTIONS,
image text in transcribed
image text in transcribed
PROBLEM: From the following table, develop 4 solutions using nested loop to obtain the following. the average by rows, the average by columns and the largest value of Power consume in the table. You must combine the loops in the following way: 1. External loop in while and internal loop in repetition and until. 2. External loop in automatic and internal in while. 3. Extend loop in repeat and Until and internal loop in automatic. 4. External loop in automatic and internal loop in automatic. You must present the pseudocode and the flowchart of each of these 4 solutions. TABLE Cosumers Power Consume by day KW Jose Trivas 45 67 89 73 Maria Fuentes 34 32 56 93 Alberto Gonzalez 82 64 90 58 Julio Marrero 41 95 56 25 1) int len= 0; largest= 0; while(lenlargest) largest= Table[len] []; sumRow+= Table[len][]); sumCol+= Table[i[len]; } int avgByRow= sumRow/4; int avgByCol= sumCol/4; Display avgByRow, avgByCol, largest; len++; } 2) int i=0; largest= 0; for(int i=0; ilargest) largest= Table[i][len); sumRow+= Table[i][len); sumCol+= Table[len)); len++; } int avgByRow= sumRow/4; int avgByCols sumCol/4; Display avgByRow, avgByCol, largest; }3) largest= 0; for(int len=0; lenlargest) largest= Table[len][]); sumRow+= Table[len] []); sumCol+= Table[[len]; } int avgByRow= sumRow/4; int avgByCol= sumCol/4; Display avgByRow, avgByCol, largest; len++; } 4) largest= 0; for(int len=0; lenlargest) largest= Table[len] D): sumRow+= Table[len][; sumCol+= Table[i[len]; } int avgByRow= sumRow/4; int avgByCol= sumCol/4; Display avgByRow, avgByCol, largest; len++;}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions