2.An electrical manufacturer tests 4 generators by measuring their output voltages at 3 different times. Write a C++ program that uses a nested loop to enter each generator's test results(be sure to store the results in a 2D array). The program then computes and displays the average voltage for each generator. Display also the test results for each generator in table form. Analysis: Test results Output 1 Output 2 Output 3 Average Generator 1 2 2 Generator 2 3 3 3 3 Generator 3 4 4 4 Generator 4 3 3 1.Modify the generator program such that it will also calculate and display the average voltage of all generators.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter8: Advanced Data Handling Concepts
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question
2.An electrical manufacturer tests 4 generators by measuring their output voltages at 3
different times. Write a C++ program that uses a nested loop to enter each generator's
test results(be sure to store the results in a 2D array). The program then computes and
displays the average voltage for each generator. Display also the test results for each
generator in table form.
Analysis:
Test results
Output 1
Output 2
Output 3
Average
Generator 1
2
2
Generator 2
3
3
3
3
Generator 3
4
4
4
Generator 4
3
3
1.Modify the generator program such that it will also calculate and display the average
voltage of all generators.
Transcribed Image Text:2.An electrical manufacturer tests 4 generators by measuring their output voltages at 3 different times. Write a C++ program that uses a nested loop to enter each generator's test results(be sure to store the results in a 2D array). The program then computes and displays the average voltage for each generator. Display also the test results for each generator in table form. Analysis: Test results Output 1 Output 2 Output 3 Average Generator 1 2 2 Generator 2 3 3 3 3 Generator 3 4 4 4 Generator 4 3 3 1.Modify the generator program such that it will also calculate and display the average voltage of all generators.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr