# Cs192 w3a * | Computer Science homework help

DUE IN 6 HRS!!!!!!!!

## 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…

#2

### 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.
• 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.

Example output:

C:>python week4.py

Welcome to the Team Manager

1. Display Team Roster.

3. Remove Member.

4. Edit Member.

9. Exit Program.

Selection> 2

Enter new member’s name: Nathan

1. Display Team Roster.

3. Remove Member.

4. Edit Member.

9. Exit Program.

Selection> 2

Enter new member’s name: Toby

1. Display Team Roster.

3. Remove Member.

4. Edit Member.

9. Exit Program.

Selection> 1

Nathan

Toby

1. Display Team Roster.

3. Remove Member.

4. Edit Member.

9. Exit Program.

Selection> 3

Enter member name to be removed: Toby

1. Display Team Roster.

3. Remove Member.

4. Edit Member.

9. Exit Program.

Selection> 1

Nathan

1. Display Team Roster.

3. Remove Member.

4. Edit Member.

9. Exit Program.

Selection> 4

Enter the name of the memeber you want to edit: Nathan

Enter the new name of the member: Nathan Braun

1. Display Team Roster.

3. Remove Member.

4. Edit Member.

9. Exit Program.

Selection> 1

Nathan Braun

1. Display Team Roster.

3. Remove Member.

4. Edit Member.

9. Exit Program.

Selection> 9

Exiting Program…

#3

## 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.

Sample output:

C:>python week6.py

Welcome to the Team Manager

1. Display Team Roster.

3. Remove Member.

4. Edit Member.

5. Save Data.

9. Exit Program.

Selection> 2

Enter new member’s name: Nathan

Contact phone number: 505-908-0670

Jersey number: 21

1. Display Team Roster.

3. Remove Member.

4. Edit Member.

5. Save Data.

9. Exit Program.

Selection> 2

Enter new member’s name: Bobby

Contact phone number: 541-241-0670

Jersey number: 44

1. Display Team Roster.

3. Remove Member.

4. Edit Member.

5. Save Data.

9. Exit Program.

Selection> 5

Filename to save: members.txt

Saving data…

Data saved.

1. Display Team Roster.

3. Remove Member.

4. Edit Member.

5. Save Data.

9. Exit Program.

Selection> 9

Exiting Program…

C:>python week6.py

Welcome to the Team Manager

1. Display Team Roster.

3. Remove Member.

4. Edit Member.

5. Save Data.

9. Exit Program.

Selection> 1

No current members in memory.

1. Display Team Roster.

3. Remove Member.

4. Edit Member.

5. Save Data.

9. Exit Program.

Selection> 6

1. Display Team Roster.

3. Remove Member.

4. Edit Member.

5. Save Data.

9. Exit Program.

Selection> 1

Name: Bobby

Phone: 541-241-0670

Jersey Number: 44

Name: Nathan

Phone: 505-908-0670

Jersey Number: 21

1. Display Team Roster.

3. Remove Member.

4. Edit Member.

5. Save Data.

9. Exit Program.

Selection>9

Exiting Program…

## Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
\$26
The price is based on these factors:
Number of pages
Urgency
Basic features
• Free title page and bibliography
• Unlimited revisions
• Plagiarism-free guarantee
• Money-back guarantee
On-demand options
• Writer’s samples
• Part-by-part delivery
• Overnight delivery
• Copies of used sources
Paper format
• 275 words per page
• 12 pt Arial/Times New Roman
• Double line spacing
• Any citation style (APA, MLA, Chicago/Turabian, Harvard)

# Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

### Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

### Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

### Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

### Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Order your essay today and save 10% with the coupon code: best10