Answered step by step
Verified Expert Solution
Question
1 Approved Answer
SORRY about that its Python thank you so much Task 3: Write a comment line that says: Task 3 Print: Task 3 Write a comment:
SORRY about that its Python thank you so much
Task 3: Write a comment line that says: Task 3 Print: Task 3 Write a comment: Getting user input and computing BMI Declare a string variable called userName with an initial value of "Null" Declare a float variable called userWeight with an initial value of 0.0 Declare a float variable called userHeight with an initial value of 0.0 Ask the user their name and assign that value to the variable userName as string Ask the user their weight in pounds and assign that value to the variable userWeight as float Ask the user their height in inches and assign that value to the variable userHeight as float Declare afloat variable called userBMI with an initial value of 0.0 Compute the userBMI using the formula BMI . (Weight in Pounds / Height in inches squared) x 703 Display the userBMI value as: Dear, followed by cusername>, your BMI is, followed by the calculated BMI value Task 4: Write a comment line that says: Task 4 Print: Task 4 Write a comment: Assessing the BMI value using if elif satements Write an if and elif statement structure that looks at the BMI value and if its value is greater than or equal to 30, display the message: Dear cusername>, your BMI suggests you are obese Else, if the value is greater than or equal to 25, display the message: DearStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started