Question: write code in python The statements inside your computer programs are generally executed from top to bottom, in the order that they appear. Control flow
write code in python
The statements inside your computer programs are generally executed from top to bottom, in the order that they appear. Control flow statements, however, break up the flow of execution by employing decision-making, looping, and branching, enabling your program to conditionally execute particular blocks of code. The assignments given below will take advantage of the concepts of control flow in programming.
An electrical manufacturer provides generator tests by measuring their output voltages at three different times. Write a program that uses the concepts of looping to enter each generator's test results, and then computes and displays the average voltage for each generator. The program will ask the user to enter how many generators to test. For example, if the user enters 3 (it could be 2, 4, or 5), it means that there are three generators needed to be tested. On each generator test, the user must provide three test values.
The program should also calculate and display the average voltage for all generators. Display all results in a readable format using 2 decimal places. Below is a sample of a running program:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
