Question
Please (re-do) original did not work Team Management Part Three Until now, you have had to leave your team management program running on your computer
Please (re-do) original did not work
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 players information on your computers hard drive, thus, allow you to shut down your program without losing your data.
You will need to modify your program to:
include a Save option in the main menu which will prompt the program to write the players data to a text file.
modify the startup code so that the program calls a function that reads the players 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)
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...
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started