Answer:
total = 0
for i in range(5):
score = int(input("Enter a score: "))
total += score
average = total / 5
print("The average is " + str(average))
Explanation:
*The code is in Python.
Initialize the total as 0
Create a for loop that iterates five times. Inside the loop, ask the user to enter a score. Add the score to the total (cumulative sum)
After the loop, calculate the average, divide the total by 5
Print the average
Answer: Open Reliability Monitor.
Explanation:
The simplest way to view this information is to open the reliability monitor.
The Reliability Monitor shows you the stability history of a system at a glance and also allows one to see the details of the events that has an effect on reliability on a daily basis.
The reliability and problem history chart which can be seen in the Reliability Monitor helps in keeping track of the overall health of the server on a daily basis.
Answer:
sendObject(John_Doe)
Explanation:
To invoke a method, simply call the name of the method, followed by it's arguments in parenthesis. i.e methodname(argument).
In this case, the name of the method is sendObject and it's argument is a Customer object stored in or referenced by a variable John_Doe.
The above is true since the method is defined in the same class that calls it. Otherwise, it is not valid.
One approach to solving this is to first calculate the current the will flow through all three resistors:
The total resistance is R1+R2+R3 = 5280
I = V/R = 30/5280 ≈ 5,682 mA
Then the drop across R2 = I*R2 = 5,7mA * 1000 ≈ 5.682 V.
So this is based on the fact that V=I*R and there is one current running in the entire chain, ie., it is the same through each resistor.