Question: Week 09 Python Baseball Team Manager MENU OPTIONS 1 Display lineup 2 Add player 3 Remove player 4 Move player 5 Edit player position 6

Week 09 Python

Baseball Team Manager

MENU OPTIONS

1 Display lineup

2 Add player

3 Remove player

4 Move player

5 Edit player position

6 Edit player stats

7 - Exit program

POSITIONS

C, 1B, 2B, 3B, SS, LF, CF, RF, P

Team data file could not be found.

You can create a new one if you want.

================================================================

Menu option: 2

Name: Mike

Position: SS

At bats: 0

Hits: 0

Mike was added.

Menu option: X

Not a valid option. Please try again.

MENU OPTIONS

1 Display lineup

2 Add player

3 Remove player

4 Move player

5 Edit player position

6 Edit player stats

7 - Exit program

Menu option: 7

Bye!

Specifications

Handle the exception that occurs if the program cant find the data file.

Handle the exceptions that occur if the user enters a string where an integer is expected.

Handle the exception that occurs if the user enters zero for the number of at bats.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!