1. Extend the BMI program from the previous lesson. Rather than terminating the program on invalid...
Fantastic news! We've Found the answer you've been seeking!
Question:
![](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/64f581bed3850_1693811133491.jpg)
![](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/64f581ce4dca2_1693811149312.jpg)
Transcribed Image Text:
1. Extend the BMI program from the previous lesson. Rather than terminating the program on invalid input, display an error message and ask the user to enter valid input. Provide a way for the user to terminate the program instead if they choose. 2. Extend the BMI program above. Add a loop to the main program that continues asking for input after displaying each BMI result. Provide a way for the user to terminate the program instead if they choose. 3. Update program and function documentation, consistent with the documentation standards for your selected programming language. 4. Extend the BMI program to displays a BMI table, with columns for height from 58 inches to 76 inches in 2-inch increments and rows for weight from 100 pounds to 250 pounds in 10-pound increments. Reuse the conversion/calculation functions from the BMI program above. Include appropriate program and function documentation, consistent with the documentation standards for your selected programming language. this is what i did # This program calculates a person's Body Mass Index (BMI) based on their weight in pounds and height in feet and inches. # The program then classifies the person's BMI as underweight, normal, or overweight based on the recommendations from the National Institutes of Health (NIH). # Constants for the BMI classification ranges UNDERWEIGHT_BMI = 18.5 NORMAL BMI = 24.9 OVERWEIGHT_BMI = 29.9 print("Please Enter your name") name = input() #Ask the user for their weight in pounds weight_pounds = float(input ("Enter your weight in pounds: ")) 1. Extend the BMI program from the previous lesson. Rather than terminating the program on invalid input, display an error message and ask the user to enter valid input. Provide a way for the user to terminate the program instead if they choose. 2. Extend the BMI program above. Add a loop to the main program that continues asking for input after displaying each BMI result. Provide a way for the user to terminate the program instead if they choose. 3. Update program and function documentation, consistent with the documentation standards for your selected programming language. 4. Extend the BMI program to displays a BMI table, with columns for height from 58 inches to 76 inches in 2-inch increments and rows for weight from 100 pounds to 250 pounds in 10-pound increments. Reuse the conversion/calculation functions from the BMI program above. Include appropriate program and function documentation, consistent with the documentation standards for your selected programming language. this is what i did # This program calculates a person's Body Mass Index (BMI) based on their weight in pounds and height in feet and inches. # The program then classifies the person's BMI as underweight, normal, or overweight based on the recommendations from the National Institutes of Health (NIH). # Constants for the BMI classification ranges UNDERWEIGHT_BMI = 18.5 NORMAL BMI = 24.9 OVERWEIGHT_BMI = 29.9 print("Please Enter your name") name = input() #Ask the user for their weight in pounds weight_pounds = float(input ("Enter your weight in pounds: "))
Expert Answer:
Related Book For
Systems analysis and design
ISBN: 978-0136089162
8th Edition
Authors: kenneth e. kendall, julie e. kendall
Posted Date:
Students also viewed these programming questions
-
Whirly Corporation's contribution format income statement for the most recent month is shown below: Total Sales (7,600 units) Variable expenses $ 235,600 144,400 Contribution margin 91,200 Per Unit $...
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
In this project, we will write a program that controls a quiz show, much like the many popular TV shows. The program will read in a group of questions and their multiple choice answers, storing them...
-
Which statement is correct? A) Tax credits reduce tax liability on a dollar-for-dollarbasis. B) Tax deductions reduce tax liability on a dollar-for-dollarbasis. C) The benefit of a tax credit depends...
-
Explain the difference between a training data set and a validation data set. Why are these data sets used routinely with data mining techniques in the XLMiner* program and not used in the ForecastX...
-
Snackums, Inc., purchases wheat for use in its food manufacturing process. Snackums operates in a highly competitive industry and is rarely able to increase its sales price. On January 1, 2024,...
-
Winston has the following account balances as of February 1. Inventory. $ 600,000 Land.500,000 Buildings (net) (valued at $1,000,000). 900,000 Common stock ($ 10 par value). (800,000) Retained...
-
M. Gonzales has the following transactions during August. Indicate (a) the effect on the accounting equation and (b) the debit-credit analysis as shown in the chapter. Aug. 1 Opens an office as a...
-
QUESTION 1 A certificate of deposit purchased on April 2 , 2 0 2 4 , with a maturity date of November 3 0 , 2 0 2 4 , would be classified as a non - cash equivalent. True False
-
The Trading and Profit and Loss Account of Hindustan Electronics for the year ending March 31, 2018 is as under: (all figures in ). Prepare Deparqtmental Accounts for each of the three Departments X,...
-
How do some of the Human Rights Act 1998 provisions threaten parliamentary sovereignty? Could you please help me with this question and include reference, please Thank you for your time.
-
Is there a difference between a Leader and a Manager; if yes, what and what are the differences? What is the message of the video ? https://youtu.be/TQhns5AwAkA
-
Thomas Inc. purchased 90% of Tracy Co. for $990,000 when the book value of Tracy was $1,000,000. There was no premium paid by Thomas. Tracy currently has 100,000 shares outstanding and a book value...
-
Troy Engines, Ltd., manufactures a variety of engines for use in heavy equipment. The company has always produced all of the necessary parts for its engines, including all of the carburetors. An...
-
A Community Hospital has two (2) service departments: Maintenance and Food Services. The hospital has three (3) patient care units, namely: General Medicine, OB, and Surgery. Additional information...
-
The following link is for the United States International Trade Commission database on current tariffs that the United States has in place: https://dataweb.usitc.gov/tariff/database This link is for...
-
in order to decide whether you should buy sell or hold stocks with Fortescue Metals Group Limited (FMG.AX) an investment recommendation report is needed. The report provides an assessment of the...
-
Revol Industries manufactures plastic bottles for the food industry. On average, Revol pays $76 per ton for its plastics. Revol's waste-disposal company has increased its waste-disposal charge to $57...
-
As a fourth team member listening to the foregoing exchange, formulate three suggestions that would help Hy, improve his approach to goal formation and presentation. How well motivated do you think...
-
Brainstorm with your team members about what types of output are most appropriate for a variety of executives and high-level managers of Dizzyland, a large theme park in Florida. Include a list of...
-
The following ports of call are available for the Pacific Holiday Company: Create the PORT OF CALL element. Examine the data to determine the length and format of theelement. Apia Pago Pago Bora Bora...
-
33. On January 1,2008, a rich citizen of the Town of Ristoni donates a painting valued at $300,000 to be displayed to the public in a government building. Although this painting meets the three...
-
31. The City of Lawrence opens a solid waste landfill in 2008 that is at 54 percent of capacity on December 31, 2008. The city had initially anticipated closure costs of $2 million but later that...
-
29. On January 1, 2008, the City ofVerga leased a large truck for five years and made the initial annual payment of $22,000 immediately. The present value of these payments based on an 8 percent...
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App