(Solved) : Update Program Improve Formatting Numbers Strings Console Baseball Team Manager Menu Optio Q42714753 . . .

Update the program to improve the formatting of the numbers andthe 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

  Player                               POS    AB    H     AVG

—————————————————————-

1 DenardSpan                           CF   545   174   0.319

2 BrandonBelt                          1B   533   127   0.238

3 BusterPosey                           C   535   176   0.329

4 HunterPence                          RF   485   174   0.359

5 BrandonCrawford                      SS   532   125   0.235

6 EduardoNunez                         3B   477   122   0.256

7 JoePanik                             2B   475   138   0.291

8 JarrettParker                        LF   215    58  0.270

9 MadisonBumgarner                      P   103    21  0.204

Menu option: 7

Bye!

Specifications

 Use the multiplication operator to make sure that horizontalseparator lines use 64

characters.

 Use spaces, not tabs, to align columns. This should give theprogram more control

over how the columns are aligned.

 Make sure the program always displays the batting average with3 decimal places.

 Display the positions by processing the tuple of validpositions.

 don’t forget that you used the attached text file, FILENAME =”players.txt” to read or write players data.

Expert Answer


Answer to Update the program to improve the formatting of the numbers and the strings. Console ===================================…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?