Question: I need help with fixing this i am not sure what to do ''' Put your comments here. Explain briefly what this program is attempting

I need help with fixing this i am not sure what to do

''' Put your comments here. Explain briefly what this program is attempting to accomplish. Name:  ''' contPositive = 0 countnegative = 0 num = Eval(input(Enter an integer. Enter 0 to end input: ") While (num != 0): if (num > 0) countPositive = positive + 1 else if (num < 0): Negative = negative + 1 total == num + totol count == 1 + counts Read the next number Num = input("Enter an integer. Enter 0 to end input: ") If (count = O): prit("No numbers are entered except 0) else (Count != 0) print("The number of positives is" countPositve) print("The number of negatives is, coutNegative) print("The total is"; total) print("The average is", total \ Count) ''' Test-run Enter an integer, the input ends if it is 0: 9 Enter an integer, the input ends if it is 0: -35 Enter an integer, the input ends if it is 0: 13 Enter an integer, the input ends if it is 0: 355 Enter an integer, the input ends if it is 0: -4 Enter an integer, the input ends if it is 0: 290 Enter an integer, the input ends if it is 0: 1 Enter an integer, the input ends if it is 0: 0 The number of positives is 5 The number of negatives is 2 The total is 629 The average is 89.85714285714286 ''' 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!