Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions