Question: Draw flow chart for the following program total = 0 pos = 0 neg = 0 count = 0 while True: num = int(input('Enter an

Draw flow chart for the following program

total = 0 pos = 0 neg = 0 count = 0 while True: num = int(input('Enter an integer, the input ends if it is 0: ')) if num == 0: break if num > 0: pos += 1 else: neg += 1 count += 1 total += num if count > 0: print('The number of positives is ' + str(pos)) print('The number of negatives is ' + str(neg)) print('The total is ' + str(total)) print('The average is ' + str(total / count)) else: print('You didn\'t enter any number')

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 Databases Questions!