CSCI 1103 Columbus State Community College Python and Conditional Logic Lab Report In this assignment you will expand your working knowledge of the Python language to include more complex calculations, loops, and conditional logic. You will also begin to create your own functions, thereby removing some of the code from the main/entry-point of the application.
You will write an application that will allow the user to calculate their Body Mass Index (BMI) as well as calculate the user’s heart rate range for varying levels of exercise intensity–also known as the Karvonen formula.
Python Assignment
The objectives of this lab assignment are as follows:
Input data from user
Perform several different calculations
Process data within a loop
Make output choices based on conditional logic
Output information to user
Skills Required
To properly complete this assignment you will need to apply the following skills:
Read string input from the console and convert input to required numeric data-types
Convert math formulas to Python code
Research and apply correct conversion formulas
Understand the if / elif / else construct
Output numeric data to specific decimal places
Assignment User Story
As a user I want an application that will allow me to calculate a person’s Body Mass Index (BMI) as well as to apply the Karvonen formula in calculating the user’s heart rate at varying levels of exercise intensity.
Assignment Requirements
In this application we are calculating two different values: the first is the Body Mass Index (BMI) and the second is a series of maximum heart rate values at specific exercise intensity percentages calculated using the Karvonen formula.
Building on the work that you have already done or begun thinking about this application must be protected against invalid numeric data entry. Therefore, you must use while loops to prompt the user for each requested value until the value entered is valid—until the user enters acceptable numeric data.
Furthermore, as this assignment is coming after your reading about functions, it is expected that you will define at least two functions in your program. The first function will calculate and return the BMI value based on the height (inches) and weight (pounds) passed into the function. And the second function will calculate and return the Karvonen maximum heart rate given the intensity, resting heart rate, and age passed into the function.
When complete, your output should be as pictured below:
Note : The example output provided above is simply an example. You do not need to format your output to look exactly like mine. You simply need to ensure that you have met the technical requirements for this application and ensure your output is neat and professional looking.
BMI
BMI is a calculation of body fat based on an individual’s height and weight.
To calculate BMI you need two different values: height in inches and weight in pounds. Once you have obtained these values you will then need to convert the height from inches to height in meters squared, and the weight in pounds to the weight in kilograms. I am not going to provide these conversion formulas to you; you have to do a little online research to find them. In the case of converting inches to meters squared you need to convert inches to meters and then square that value.
The formula for calculating BMI is as follows:
where:
weight is value in kilograms
height is value in meters squared — note, one way to obtain the square of a number is to multiply that number by itself
The value for bmi will be a decimal from zero (dead) to a high number indicating high body fatness. Based on the BMI value a person is categorized according to their body fat as follows:
Underweight =
Economic Debate- Progressive Income Tax For this Economic Debate, we are going to discuss the…
TOPIC: Going Global Discussion Thread 1 (initial post due Wednesday for full credit) Please note:…
Assignment Topic This week will culminate in the creation of a narrated PowerPoint to create…
The Assignment must be submitted on Blackboard (WORD format only) via allocated folder. Assignments submitted…
you need to post your 2-page information flier to share with your Final Project Group.…
discussion: Discuss the methods used at your company to measure and ensure quality products and…