What does the following code compute? sum = 0 count = 0 value = input ("enter an integer") while value > 0 : sum = sum + value count = count + 1 value input ("enter next integer") %3D result = sum *...


What does the following code compute?<br>sum = 0<br>count = 0<br>value =<br>input (
0 : sum = sum + value count = count + 1 value input ("enter next integer") %3D result = sum * 1.0 / count print (result) O a. The sum of all the positive integers in the input divided by the number of integers in the input O b. The average of all the positive integers in the input Oc. The average of all the integers in the input O d. The second smallest value in the input "/>
Extracted text: What does the following code compute? sum = 0 count = 0 value = input ("enter an integer") while value > 0 : sum = sum + value count = count + 1 value input ("enter next integer") %3D result = sum * 1.0 / count print (result) O a. The sum of all the positive integers in the input divided by the number of integers in the input O b. The average of all the positive integers in the input Oc. The average of all the integers in the input O d. The second smallest value in the input

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here