Calculate the bmi of a team player

Assignment Help Other Subject
Reference no: EM132233379

Question: 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.

Reference no: EM132233379

Questions Cloud

What factors will influence the decision : Search "scholar.google" or your textbook. Discuss the technical skills required to have a CSIRT response team consisting of employees with other job duties.
Assumption that most negotiations are distributive : It is a common (yet false) assumption that most negotiations are distributive (i.e., competitive; involving compromising).
First post in the first week of this module : For your first post in the first week of this module, try to find a good example of a recent TV series or movie that you watched that
Blanchard situational leadership model : Paul Hersey and Ken Blanchard's Situational Leadership model has been a big hit in the business world, and these two academics have a huge business
Calculate the bmi of a team player : 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.
Example of distributed intelligence in an organization : An example of distributed intelligence in an organization. explain how it might contribute to improving one's organization or to an organization
Relevant positions in the organisation : Collect evidence of consultation including meeting agendas and emails.
Benefits or risks associated with businesses : So my question is what are the benefits or risks associated with businesses adopting new Internet-enabled devices.
Discuss the pros and cons of one method of transmission : What concerns should be understood about data communications being sent over wireless networks? Discuss the pros and cons of one method of transmission.

Reviews

Write a Review

Other Subject Questions & Answers

  Develop an annotated bibliography to indicate the quality

Write an introductory paragraph with at least 150 words that clearly explains the topic, the importance of further research, and ethical implications.

  How regional metamorphism is related to plate boundaries

Briefly outline how regional metamorphism is related to plate boundaries? Are certain types of metamorphic rocks indicative of particular plate boundaries or tectonic settings?

  Define incomplete contract

Define "incomplete contract" and given an original example of an incomplete contract. Discuss the solutions to the incompleteness of contracting in the example.

  Discuss proper role during an organizing campaign

Why would an organization care whether its supervisors speak in favor of or against union representation

  The art of the renaissance

The art of the Renaissance

  Appointing a new pr agency for your company

You are part of the selection committee appointing a new PR agency for your company. What would your agenda be for the interviews?

  Write an essay for topic-use of force

Write an Essay for topic: "Use of Force" by making an argument explaining when is U.S. military intervention in other countries is appropriate.

  Discuss any article relating to health information

Discuss any article relating to health information in a current or recent issue (not older than January 2011) of a recognized and reputable journal/magazine.

  What mandatory authorities does the court cite

In your own words, what happened in the district court? Pretend you are explaining the case to a reasonably intelligent personwith no legal background.

  What ways do augustine and aquinas differ and why

Discuss the ways in which Augustine and Aquinas would have solved the problem based on lecture and course reading material. In what ways do Augustine

  How has the development of the internet affected the field

Answer the Initial discussion questions in a minimum of a 100-word response and at least one reference with in-text citations. How has the development of the internet affected the field of strategic management?

  Why does teen sexually transmitted diseases remain high

Teen pregnancy and sexually transmitted diseases continue to be an important healthcare issue in the 20th century.  Why does teen pregnancy and sexually transmitted diseases remain high in the U.S.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd