CS192 Week 5 Team Management Part 2

Your 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:

  1. While dictionaries resemble lists, remember that they are not the same! It is better to use FOR loops, not WHILE loops with index values.
  2. 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.



This slideshow requires JavaScript.


This assignment includes Python programs (.py file) and Screenshots.

  • Attachments
    • CS192_Week_5.zip (94.68 KB)
      • Python programs
      • Screenshots
        • CS192-Week-5-Command-Line-Screenshot.png
        • CS192-Week-5-Pycharm-Screenshot.png
    Preview random excerpt
    # xxxxxxx xxxx xxxx
    xxx xxxxxxxxxxx():
    xxxxx("===========xxxx xxxx===========")
    xxxxx("1. xxxxxxx xxxx xxxxxx.")
    xxxxx
    ("2.
    xxx
    xxxxxx
    .")
    xxxxx
    (
    xx
    .
    xxxxxx
    Member.")
    xxxxx
    ("4. Edit Member.")
    xxxxx
    ("9. Exit
    xxxxxxx
    .")
    xxxxxx
    #
    xxxxxxx
    edit menu def
    xxxxxxxxxxxxxxx
    ():
    xxxxx
    ("===========
    xxxx
    xxxx
    ===========
    x
    )
    xxxxx
    ("1. Edit
    xxxx
    .
    x
    )
    xxxxx("2. xxxx xxxxx xxxxxx.")
    xxxxx("3. xxxx xxxxxx xxxxxx.")
    xxxxxx
    - - - more text follows - - -



Purchasing Instruction
List Price: $19
Buy Now

Buy More Save More
Buy at least TWO items & save up to 30% OFF your ENTIRE order!
Rack up instant rebates in your shopping cart. Simply add items to your cart, and see the savings add up.
Discounts will automatically be applied on eligible orders.

Add to Cart

FLASH SALE

$116

$136 Save $20
CS192 Entire Course