Question: Write a Python program to implement the simple flow chart that prompts the user for positive integers Or a negative integer to calculate the average

Write a Python program to implement the simple flow chart that prompts the user for positive integers Or a negative integer to calculate the average and terminate. Upon entering a negative number, the program should output the average of the numbers entered and terminate. Note: Consider the condition where the first entered number is negative and there are no positive integers entered prior to calculating the average. In such a scenario, instead of calculating the average, output a sentence "No positive integers entered to calculate the average".

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!