Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Business Management Expert

BMI Index

You are the nutritional coach for a local high school football team. You realize that some of the players are not up to par having returned from summer break. Realizing nutrition plays a key in a productive team, you decide to implement a Body Mass Index Program.

Write a modularized Body Mass Index (BMI) Program which will calculate the BMI of a team player. The formula to calculate the BMI is as follows:

BMI = Weight *703 / Height^2

Note: Height^2 means, the value of Height raised to the power of 2.

Your program should utilize the following functions:

  • A method to obtain the weight of a player
  • A method to obtain the height of a player
  • A method to calculate the BMI of a player
  • A method to display the height, weight, and calculated BMI

For this project:

  • You will submit your python code in either the original .py file, or copied into a .txt file.
  • A screenshot of your code having been executed (run). How to Take a Screenshot

Tips: Remember, changing a value that has been passed into a function does not change the original value. Data passed into functions are only copies of the original value.

Remember to follow the guidelines of good program design. Make sure to use meaningful variable names, include comments as needed, and provide thoughtful output.

Remember, while you can pass as many arguments into a function as you want, but a function can only return one thing at a time. Ideally, to use a function to modify a variable or object, you will pass that object into the function, along with any other needed information to make the modifications, make the modifications to the new local copy of the object inside of the function, and then return the modified object. Thus, you will overwrite the original object with the returned modified object.

  • example 1: object1 = modifyFunction( object1 ) #returns modified object1
  • example 2: object1 = modifyFunction( object1, newData ) #returns modified object1

Example output:

C:>python week3.py

Welcome to the BMI Index Calculator.

Please begin by entering the student's name, or 0 to quit: Nathan

Please enter student's height in inches: 70

Please enter student's weight in pounds: 135

Nathan 's BMI profile:

-----------------------

Height: 70"

Weight: 135 lbs.

BMI Index: 19.4

Enter next student's name or 0 to quit: Toby

Please enter student's height in inches: 73

Please enter student's weight in pounds: 310

Toby 's BMI profile:

-----------------------

Height: 73"

Weight: 310 lbs.

BMI Index: 40.9

Enter next student's name or 0 to quit: 0

Exiting program...

Business Management, Management Studies

  • Category:- Business Management
  • Reference No.:- M92250703
  • Price:- $30

Priced at Now at $30, Verified Solution

Have any Question?


Related Questions in Business Management

A contractors records during the least five weeks indicate

A contractor's records during the least five weeks indicate the number of job requests: Week 1 2 3 4 5 Request 22 26 15 23 21 Predict the number of requests for week 4, week 5, week 6 using each of the following method: ...

Differentiate between a price taker and a price setterif

Differentiate between a price taker and a price setter. If you were the manager of a primary care clinic, which strategy would you choose and why.

Nonzero-sum games explainedmost of the games businesses

Nonzero-sum Games Explained Most of the games businesses play are nonzero-sum games where the total gains vary depending on the players' actions. In most business games the size of the pie is determined by the players' a ...

When it is appropriate to use the trade-off process what

When it is appropriate to use the trade-off process. What conditions apply, and the technical evaluation criteria that might be used?

1 examine the executive summary please re-write the

1. Examine the executive summary. Please re-write the executive summary using the example from the Victoria Business School from week 3. In other words, read over the executive summary from the report in the document fro ...

What is the difference between a heroic leader and a

What is the difference between a heroic leader and a transformational leader and which of the two is best suited to work in today's business world?

Assume you have been selected to build a system for

Assume you have been selected to build a system for Oil&Gas company. Do you prefer to build a win-based system or a web-based system? Why?

1 define organizational communication2 what interesting

1. Define organizational communication 2. What interesting about the subject of organizational communication

Outline how the culture of a country might influence the

Outline how the culture of a country might influence the risks of doing business in that country. illustrate the answer with examples.

Phase 1 discover and assessstep 1 identify discomforts in

"Phase 1: Discover and Assess Step 1: Identify discomforts in the community (or organization). Step 2: Find out what has been done. Step 3: Invite others into the assessment process. Phase 2: Focus and Commit Step 4: Ana ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As