Question: Provide Python Code for 2 Programs below 1. The body mass index (BMI) is calculated as a person's weight (in pounds) times 720, divided by

Provide Python Code for 2 Programs below 1. The body mass index (BMI) is calculated as a person's weight (in pounds) times 720, divided by the square of the person's height (in inches). A BMI in the range 19-25, inclusive, is considered healthy. Write a program that calculates a person's BMI and prints a message telling whether they are above, within, or below the healthy rang. 2. Write a while loop fragment that calculates the following values: a) Sum of the first n counting numbers: 1 + 2+ 3+ . . . +n b) Sum of the first n odd numbers: 1 + 3+ 5 + . . . + 2n - 1 c) Sum of a series of numbers entered by the user until the value 999 is entered. Note: 999 should not be part of the sum. d) The number of times a whole number n can be divided by 2 (using integer division) before reaching 1 (i.e., log2n)

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!