Problem regarding the bmi index

Assignment Help Business Management
Reference no: EM131441956

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: EM131441956

Questions Cloud

Compute the correlation coefficient for the data : The president of a company was interested in determining whether there is a correlation between sales made by different sales teams and hours spent on employee training. These figures are shown. Sales (in thousands) Training Hours 17 7 32 12 22 10 40..
Advertising and public relations : Advertising and Public Relations are both utilized in sending corporate and organizational messages to various publics. Which element (Advertising or PR) do you think could have the most effect on society and why?
Benefits like those offered by whole foods : How important would benefits like those offered by Whole Foods be to you if you were working there to put yourself through school or to collect a paycheck while look- ing for a position in your chosen field?
How can an organization safeguard its systems to protect : How can an organization safeguard its systems to protect its customers and employees in the ever-evolving use of data analytics?
Problem regarding the 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 Mas..
What is the internet of things : What is the "Internet of Things"? What is your opinion of it? Is it good or bad? Detail your reasons why you developed this opinion. There is no wrong answer when it is opinion based, however ensure your answers are well-founded, and written in a..
Illustrating the concept of groupthink : Write a short paper (1 - 2 pages) illustrating the concept of Groupthink, and include at least three (3) famous historical examples of Groupthink. 3 refrences rquired in compliance with APA format, please include a title page and a reference page.
Create an electronic spreadsheet using ms excel : Create an electronic spreadsheet using MS Excel. While you are encouraged to be creative, you will be graded on your ability to demonstrate an understanding of the module content and the ability to use the software application.
Find an article online about the internet and cyber security : Find an article online about the Internet, technology, cyber security, anything that you are interested in or want to know more about that involves the Internet or today's technologies. Write an overview of what the article was about, what did you..

Reviews

Write a Review

Business Management Questions & Answers

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

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