### Flowchart help

I need help creating a flowchart from this source code and I have no idea how to start. I already made the program and the flowchart/pseudocode is what I am stuck on.

 ``123456789101112131415161718192021222324252627282930313233343536373839404142`` ``````//This program is used to calculate the BMI of a person //and display whether the person is underweight, overweight, or healthy //BMI = weight*703/height^2 //weight is measured in pounds/lbs //height is measured in inches #include #include using namespace std; int main() { double weight, height; //define values float BMI; cout<<"Enter your weight in pounds: "<>weight; cout<<"Enter your height in inches: "<>height; BMI = (weight*703)/(height*height); cout<=18.5 && BMI<=25) { cout<<"You have optimal weight. You are healthy, well done!\n"<25) { cout<<"You are overweight. Stop eating so much junkfood and excercise, you fatty!\n"<
Last edited on
This is a little too trivial for a flowchart imo as flowcharts are best suited for OOB solutions or ones with several function calls. You could create a sequence diagram that shows the flow of command. That would be as simple as following you main from top to bottom.

As for pseudocode just write the program in structured English.

Output "enter weight" prompt
Input weight
Output "enter height" prompt
Input height
Calculate BMI
IF BMI > 18.5
Output "overweight message"
....
...
.

Pseudocode should come first by the way.
Thank you, I can do the rest now.
Topic archived. No new replies allowed.