Question: Designing the logic for a program that calculates a person's BMI. We are using Flowgorithm for this project. It is supposed to loop continuously until

Designing the logic for a program that calculates a person's BMI. We are using Flowgorithm for this project. It is supposed to loop continuously until the user enters 0 for the height in inches. The program works, but it doesn't loop back to the beginning, only to the detailLoop stage. How do I get it to loop to the beginning of the program?

Main Integer QUIT Real userHeightInches, userWeightPounds, userHeightMeters, userWeightKilograms, userBMI QUIT= =0 userHeightInches

Main Integer QUIT Real userHeightInches, userWeightPounds, userHeightMeters, userWeightKilograms, userBMI QUIT= =0 userHeightInches = housekeeping() True userHeightInches != QUIT False userHeightInches = detailLoop (userHeightInches) endOfJob End

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