CS192 Grantham WeeK5 Coding: Team Management OOP Style Assignment

I coded a program for a team management roster last week. This week I need to convert my list to dictionary and while loop to for loop.Team Management OOP StyleYour program for keeping track of team members is coming along, but now you want to be able to include phone numbers and jersey numbers along with your team member’s name. Modify your program from week 4 so that the program utilizes object-oriented programming to create a member object which can accept the player’s name, phone number, and jersey number. You will need to replace the list with a dictionary to help in locating objects for removal and editing. Again, File Access for long-term storage 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: While dictionaries resemble lists, remember that they are not the same! It is better to use FOR loops, not WHILE loops with index values.Your class structure does not need a full set of accessor and mutator methods getName(), setName(newName), however it they will be helpful in the next week.
week5.txt

Unformatted Attachment Preview

Don't use plagiarized sources. Get Your Custom Essay on
CS192 Grantham WeeK5 Coding: Team Management OOP Style Assignment
Just from $13/Page
Order Essay

print(‘Welcome to the Team Manager’)
memberList = []
while True:
print(‘===========Main Menu===========’)
print(‘1. Display Team Roster.’)
print(‘2. Add Member.’)
print(‘3. Remove Member.’)
print(‘4. Edit Member.’)
print(‘9. Exit Program.’)
choice = input(‘Selection > ‘)
i = 0
if choice == ‘1’:
for i in range(len(memberList)):
print(memberList[i], ” “)
elif choice == ‘2’:
name = input(“Enter new member name: “)
memberList.append(name)
phone = input(“Enter new member’s phone number: “)
memberList.append(phone)
jersey = input(“Enter new member’s jersey number:
“)
memberList.append(jersey)
elif choice == ‘3’:
name = input(‘Enter member name to be removed: ‘)
memberList.remove(name)
memberList.remove(phone)
memberList.remove(jersey)
elif choice == ‘4’:
name = input(‘Enter the name of the member you want to edit: ‘)
while True:
print(“===========Edit Member Menu===========”)
print(“4.1 Change Name of Member”)
print(“4.2 Change Member’s Phone Number.”)
print(“4.3 Change Member’s Jersey Number.”)
print(“4.4 Return to Main Menu”)
choice = input(‘Selection > ‘)
if choice == ‘4.1’:
newName = input(“Enter the new name of the member: “)
if choice == ‘4.2’:
newPhone = input(“Enter player’s new phone number:
if choice == ‘4.3’:
newJersey = input(“Enter player’s new jersey number:
“)
if choice == ‘4.4’:
break
for i in range(len(memberList)):
if memberList[i] == name:
memberList[i] = newName
if memberList[i] == phone:
memberList[i] = newPhone
if memberList[i] == jersey:
memberList[i] = newJersey
elif choice == ‘9’:
print(“Exiting program….”)
exit()
“)

Purchase answer to see full
attachment

GradeAcers
Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.

Order your essay today and save 15% with the discount code DISCOUNT15