Write a function called bodyMass Index that expects no parameters, asks the user
ID: 3855660 • Letter: W
Question
Write a function called bodyMass Index that expects no parameters, asks the user for information needed to compute a subject's body mass index, then prints the body mass index along with the BMI category obtained from the table below: BMI bodyMassIndex() Please enter the subject's name: Albert Please enter the subject's height in inches: 68 Please enter the subject's weight in pounds: 150 Albert has a body mass index of: 22.80716931676078 Albert is normal weight When we call your bodyMassIndex function and give the same keyboard input as in the examples above, everything printed by your function should be identical to what you see in the examples above. This function should not explicitly return any value.Explanation / Answer
NOTE: You did not specify any language and your example shows the symbol '>>>'. So i am guessing it is python and wrote code in that. Please check and let me know if you are expecting the answer in different language. I promise. I will revert back within 24 hours
It is best practise to always mention the programming language to be used for the assignment.
Code:
http://pasted.co/15f42db0
Code screenshot:
https://pasteboard.co/GAnaoX1.png
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.