Question

In: Computer Science

Case Study Baseball Team Manager For this case study, you’ll use the programming skills that you...

Case Study Baseball Team Manager

For this case study, you’ll use the programming skills that you learn in Murach’s Python Programming to develop a program that helps a person manage a baseball team. This program stores the data for each player on the team, and it also lets the manager set a starting lineup for each game.

After you read chapter 2, you can develop a simple program that calculates the batting average for a player. Then, after you complete most of the other chapters, you can enhance and improve this program.   1

General guidelines

Naming

When creating the folder and file names for your programs, please use the conventions specified by your instructor. Otherwise, for a program that consists of a single file, use this naming convention: first_last_baseball_wkXX.py where first_last specifies your first and last name and wkXX specifies the chapter number, as in wk05. For programs that have multiple files, store the files in a folder named first_last_baseball_wkXX.

When creating names for variables and functions, please use the guidelines and recommendations specified by your instructor. Otherwise, use the guidelines and recommendations specified in Murach’s Python Programming.

User interfaces

You should think of the user interfaces that are shown for the case studies as starting points. If you can improve on them, especially to make them more user-friendly, by all means do so.

Specifications

You should think of the specifications that are given for the case studies as starting points. If you have the time to enhance the programs by improving on the starting specifications, by all means do so.

Top-down development

Always start by developing a working version of the program. That way, you’ll have something to show for your efforts if you run out of time. Then, you can build out that version of the program until it satisfies all of the specifications.

From chapter 5 on, you should use top-down coding and testing as you develop your programs. You might also want to sketch out a hierarchy chart for each program as a guide to your top-down coding.

Improve number and string formatting

Update the program to improve the formatting of the numbers and the strings.

Console

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

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

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

Menu option: 1

POS

AB

H

AVG

Player

----------------------------------------------------------------

1

Denard Span

CF

545

174

0.319

2

Brandon Belt

1B

533

127

0.238

3

Buster Posey

C

535

176

0.329

4

Hunter Pence

RF

485

174

0.359

5

Brandon Crawford

SS

532

125

0.235

6

Eduardo Nunez

3B

477

122

0.256

7

Joe Panik

2B

475

138

0.291

8

Jarrett Parker

LF

215

58

0.270

9

Madison Bumgarner

P

103

21

0.204

Menu option: 7

Bye!

!!Specifications !! (Question that needs to be answered

Use the multiplication operator to make sure that horizontal separator lines use 64 characters

Use spaces, not tabs, to align columns. This should give the program more control over how the columns are aligned.

Make sure the program always displays the batting average with 3 decimal places. Display the positions by processing the tuple of valid positions.

Solutions

Expert Solution


Related Solutions

Console ================================================================                        Baseball Team Manager MENU OPTIONS 1 – Display
Console ================================================================                        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 ================================================================ Menu option: 1 Player POS AB H AVG ---------------------------------------------------------------- 1 Denard OF 545 174 0.319 2 Joe 2B 475 138 0.291 3 Buster C 535 176 0.329 4 Hunter OF 485...
Case Study Team Discussion (Patient Case #5) - Case Study Team 8 From BIOL&242 DE 9772/9774...
Case Study Team Discussion (Patient Case #5) - Case Study Team 8 From BIOL&242 DE 9772/9774 No unread replies.No replies. Below are symptoms of a patient related to the Renal System. Each person needs to answer all of these and then reply substantially to their teammates. As a team you should come to a final conclusion on all 3 questions in regards to the Patient and the symptoms. *Only the people in your group/team can see your discussions. Based on...
CASE STUDY You are a part of the team responsible for planning the Land & Homes...
CASE STUDY You are a part of the team responsible for planning the Land & Homes Group (ASX code – LHM), a property development company, audit engagement for 2020. You are required to gather relevant background information and prepare a report for a meeting with your audit seniors. Assume that this is the first time that the audit will be conducted by your audit firm for this client. Your report must address the following issues: QUESTIONS 1) Based on your...
CASE STUDY You are a part of the team responsible for planning the Land & Homes...
CASE STUDY You are a part of the team responsible for planning the Land & Homes Group (ASX code – LHM), a property development company, audit engagement for 2020. You are required to gather relevant background information and prepare a report for a meeting with your audit seniors. Assume that this is the first time that the audit will be conducted by your audit firm for this client. Your report must address the following issues: QUESTIONS 1) What do you...
Learning Team: Goodwill Discuss with your team the following case study: Client X contacted you for...
Learning Team: Goodwill Discuss with your team the following case study: Client X contacted you for clarification and recommendations regarding the instances when goodwill should be adjusted for impairment. Write a team consensus response of 525 to 700 words to include the following: Provide detailed rational of why goodwill must be adjusted for impairment. List the tests for impairment. Explain the meaning of a non cash impairment charge.
A successful manager uses human skills, technical skills, and conceptual skills. Do you think these skills...
A successful manager uses human skills, technical skills, and conceptual skills. Do you think these skills can be learned? Explain. Are these skills all needed at the same time by the different levels of management?
Case Study: Assume that the company, where you are working as a team in Financial Department,...
Case Study: Assume that the company, where you are working as a team in Financial Department, is considering a potential project with a new product that is expected to sell for an average price of $22 per unit and the company expects it can sell 650 000 unit per year at this price for a period of 4 years. Launching this project will require purchase of a $3 500 000 equipment that has residual value in four years of $500...
Case Study: Assume that the company, where you are working as a team in Financial Department,...
Case Study: Assume that the company, where you are working as a team in Financial Department, is considering a potential project with a new product that is expected to sell for an average price of $22 per unit and the company expects it can sell 650 000 unit per year at this price for a period of 4 years. Launching this project will require purchase of a $3 500 000 equipment that has residual value in four years of $500...
CASE STUDY: BURGER KING OR US You and a team of enthusiastic and budding entrepreneurs have...
CASE STUDY: BURGER KING OR US You and a team of enthusiastic and budding entrepreneurs have decided to establish a fast food restaurant in the CBD. The city centre is hustling and bustling and you are confident that your restaurant will be successful. You have decided that your restaurant will cater for the healthy market and specifically offer a wide range of healthy take out options such as gluten free products, healthy bite size snacks, low calorie sandwiches, a large...
**Case Study question** Suppose you are on a process improvement team (PIT) to evaluate an HCO’s...
**Case Study question** Suppose you are on a process improvement team (PIT) to evaluate an HCO’s goal-setting processes. What kinds of measures could evaluate the goal-setting process itself? How hard would it be to benchmark them? Beyond the measures, what else would you do to identify opportunities for improvement in the process?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT