What comment should appear on line 29 in order to describe the function of the while loop
Question:
What comment should appear on line 29 in order to describe the function of the while loop that follows?
a) This loop calculates the separation vector and calculates for the electric field.
b) This loop defines objects involved with the entire code
c) This loop defines the rate at which time will develop throughout the calculation and how long the loop will run
d) This loop tells us that the code will run for 10 seconds only.
2. What comment should appear on line 33 in order to describe the function of the for loop that follows?
a) This loop creates the electric field arrows that we see printed visually from the code.
b) This loop defines the rate at which time will develop throughout the calculation and how long the loop will run.
c) This loop defines objects in the list ''clouds"
d) This loop calculates the separation vector and the electric field from each point charge in the list ``clouds". Then it adds the electric field from the point charge to the net electric field.
Governmental and Nonprofit Accounting
ISBN: 978-0132751261
10th edition
Authors: Robert Freeman, Craig Shoulders, Gregory Allison, Robert Smi