How to implement a body mass index program

Assignment Help Computer Engineering
Reference no: EM132249711

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.

Team Management

You are in charge of managing a local softball team, one in which there is a lot of turnover. While you have a couple of regulars, much of the team members come and go frequently. When it comes to organizing games, it is becoming more and more difficult to keep track of the current members, so you decide to write a small program to help you track the current players.

Write a modularized program that will utilize a main menu to control the program's functions and a list to store the members of your team.

The following functions that your program needs to include:

• Print the current member list.

• Add a new member.

• Remove a member.

• Modify an existing member.

• Exit the program

Remeber that you can create a function using 'def.' In other words, for adding a new member, you will need a function similar to: def aaddmember.

Note: Since we have not covered File Access, do not worry about long term storage for your list. Each time you run the program, you will have to create a new list. You are welcome to skip ahead to the File I/O if you would like to tackle this additional functionality, but file access is NOT required for this assignment.

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: The menu logic will use the same structure as your previous programs. A single variables will be used as the control value, and based on what the user entered as the control value, will determine the course of action taken inside of the loop.

Team Management Part Three

Until now, you have had to leave your team management program running on your computer indefinitely since you did not want to lose the list of players. Finally, you are ready to add the components to your team management program that will allow you to store the player's information on your computer's hard drive, thus, allow you to shut down your program without losing your data.

You will need to modify your program to:

1. include a Save option in the main menu which will prompt the program to write the player's data to a text file.

2. modify the startup code so that the program calls a function that reads the player's data from the text file into the list of member objects.

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: Think about how you are going to write the data to the text file when you create the load function. Your write function needs to read in the data in the same pattern as the load function, otherwise the data will get jumbled.

Reference no: EM132249711

Questions Cloud

Identify different project resources in the project file : Assign human resources to the tasks in your chosen project. Use job titles and roles for the resources rather than names.
Perfect information regarding matthew potential for success : What is the most Western should spend on getting perfect information regarding Matthew’s potential for success?
Critical thinking to an ethical dilemma : Image Products Inc. and Lovan Corporation are major producers of shampoos, conditioners, and other bath products for women.
What are some reasons project scheduling is not done well : Were you on the critical path? Did it have a good project manager? What are some reasons project scheduling is not done well?
How to implement a body mass index program : 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.
Estimate of the difference between the population means : What is the 95% confidence interval estimate of the difference between the population means (to the nearest whole number)? ( , )
How to develop an operations consulting proposal : Determine the resources and data you will need to deploy an operations consulting engagement with this business.
Should telemore develop and market the new product : Should Telemore develop and market the new product? What is the EMV of the preferred decision?
Determine the type of response strategy : Discuss the response strategies for each of the identified risks. Describe the specific method of handling each risk.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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