They have a magnificent team. These people are always kind and willing to listen to your concerns or issues. Better yet, your assignment is always ready before the time, they usually send you a draft to double-check before they finalize your paper.
DUE IN 6 HRS!!!!!!!!
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:
For this project:
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 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
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:
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:
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
===========Main Menu===========
1. Display Team Roster.
2. Add Member.
3. Remove Member.
4. Edit Member.
9. Exit Program.
Selection> 2
Enter new member’s name: Nathan
===========Main Menu===========
1. Display Team Roster.
2. Add Member.
3. Remove Member.
4. Edit Member.
9. Exit Program.
Selection> 2
Enter new member’s name: Toby
===========Main Menu===========
1. Display Team Roster.
2. Add Member.
3. Remove Member.
4. Edit Member.
9. Exit Program.
Selection> 1
Nathan
Toby
===========Main Menu===========
1. Display Team Roster.
2. Add Member.
3. Remove Member.
4. Edit Member.
9. Exit Program.
Selection> 3
Enter member name to be removed: Toby
===========Main Menu===========
1. Display Team Roster.
2. Add Member.
3. Remove Member.
4. Edit Member.
9. Exit Program.
Selection> 1
Nathan
===========Main Menu===========
1. Display Team Roster.
2. Add Member.
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
===========Main Menu===========
1. Display Team Roster.
2. Add Member.
3. Remove Member.
4. Edit Member.
9. Exit Program.
Selection> 1
Nathan Braun
===========Main Menu===========
1. Display Team Roster.
2. Add Member.
3. Remove Member.
4. Edit Member.
9. Exit Program.
Selection> 9
Exiting Program…
#3
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:
For this project:
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
===========Main Menu===========
1. Display Team Roster.
2. Add Member.
3. Remove Member.
4. Edit Member.
5. Save Data.
6. Load Data.
9. Exit Program.
Selection> 2
Enter new member’s name: Nathan
Contact phone number: 505-908-0670
Jersey number: 21
===========Main Menu===========
1. Display Team Roster.
2. Add Member.
3. Remove Member.
4. Edit Member.
5. Save Data.
6. Load Data.
9. Exit Program.
Selection> 2
Enter new member’s name: Bobby
Contact phone number: 541-241-0670
Jersey number: 44
===========Main Menu===========
1. Display Team Roster.
2. Add Member.
3. Remove Member.
4. Edit Member.
5. Save Data.
6. Load Data.
9. Exit Program.
Selection> 5
Filename to save: members.txt
Saving data…
Data saved.
===========Main Menu===========
1. Display Team Roster.
2. Add Member.
3. Remove Member.
4. Edit Member.
5. Save Data.
6. Load Data.
9. Exit Program.
Selection> 9
Exiting Program…
C:>python week6.py
Welcome to the Team Manager
===========Main Menu===========
1. Display Team Roster.
2. Add Member.
3. Remove Member.
4. Edit Member.
5. Save Data.
6. Load Data.
9. Exit Program.
Selection> 1
No current members in memory.
===========Main Menu===========
1. Display Team Roster.
2. Add Member.
3. Remove Member.
4. Edit Member.
5. Save Data.
6. Load Data.
9. Exit Program.
Selection> 6
Filename to load: members.txt
Loading data…
Data Loaded Successfully.
===========Main Menu===========
1. Display Team Roster.
2. Add Member.
3. Remove Member.
4. Edit Member.
5. Save Data.
6. Load Data.
9. Exit Program.
Selection> 1
Name: Bobby
Phone: 541-241-0670
Jersey Number: 44
Name: Nathan
Phone: 505-908-0670
Jersey Number: 21
===========Main Menu===========
1. Display Team Roster.
2. Add Member.
3. Remove Member.
4. Edit Member.
5. Save Data.
6. Load Data.
9. Exit Program.
Selection>9
Exiting Program…
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.
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.
Read moreEach 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.
Read moreThanks 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.
Read moreYour 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.
Read moreBy 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.
Read more