Console CURRENT DATE: GAME DATE: DAYS UNTIL GAME: 2 MENU OPTIONS 1 Display lineup 2- Add player 3 Remove player 4- Move player 5 6 7 Edit player position Edit player stats Exit program Baseball Team Manager 2021-03-19 2021-3-21 POSITIONS C, 1B, 2B, 3B, SS, LF, CF, RF, P Menu option: 1 Player 1 Tommy La Stella 2 Mike Yastrzemski 3 Donovan Solano 4 Buster Posey 5 Brandon Belt 6 Brandon Crawford 7 Alex Dickerson 8 Austin Slater 9 Kevin Gausman Menu option: 2 First name: Mike Last name: Murach Position: c At bats: 0 Hits: 0 Mike Murach was added. Menu option: 7 Bye! POS 3B RF 2B с 1B ss LF CF AB H 1316 360 563 168 1473 407 4575 1380 3811 1003 4402 1099 586 160 569 147 56 2 AVG 0.274 0.281 0.276 0.302 0.263 0.250 0.273 0.274 0.036 Specifications • Use a Player class that provides attributes that store the first name, last name, position, at bats, and hits for a player. This class should also provide methods or properties that return the player's full name and batting average.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter11: Introduction To Classes
Section11.2: Basic Class Functions
Problem 12E
icon
Related questions
Question
5:25
13 of 14
Chapter 14: Use an object-oriented approach
Convert the program from procedural to object-oriented. This shouldn't change the
functionality of the code much, but it should make the code more modular and reusable
and easier to maintain.
Console
.
CURRENT DATE:
GAME DATE:
DAYS UNTIL GAME: 2
MENU OPTIONS
1 Display lineup
2
Add player
3 Remove player
4
5
6
7
Move player
Edit player position
Menu option: 1
Player
Edit player stats
Exit program
POSITIONS
C, 1B, 2B, 3B, SS, LF, CF, RF, P
1 Tommy La Stella
2 Mike Yastrzemski
Donovan Solano
2021-03-19
2021-3-21
4 Buster Posey
5 Brandon Belt
6 Brandon Crawford
7
Alex Dickerson
8 Austin Slater
9 Kevin Gausman
Menu option: 2
First name: Mike
Last name: Murach
Position: c
At bats: 0
Menu option: 7
Bye!
Hits: 0
Mike Murach was added.
Baseball Team Manager
CURRENT DATE:
GAME DATE:
1
2
MENU OPTIONS
Display lineup
2021-03-19
Menu option: 1
Player
Add player
- Remove player
4
Move player
5 Edit player position
6 Edit player stats
7 Exit program
POS
Specifications
Use a Player class that provides attributes that store the first name, last name,
position, at bats, and hits for a player. This class should also provide methods or
properties that return the player's full name and batting average.
POSITIONS
C, 1B, 2B, 3B, SS, LF, CF, RF, P
1 Tommy La Stella
2 Mike Yastrzemski
3 Donovan Solano
3B
RF
Baseball Team Manager
2B
с
1B
SS
Update your program by adding a Lineup class that includes an iterator. This shouldn't
change the functionality of the code, but it should make the code more modular and
reusable and easier to maintain.
Console
1316 360
563 168
POS
H
1473 407
4575 1380
3811 1003
4402
1099
586 160
569 147
56
2
AB
AVG
0.274
0.281
3B
RF
2B
bridges.rwu.edu
0.276
0.302
0.263
0.250
H
0.273
0.274
0.036
===================
AVG
1316 360 0.274
563 168 0.281
1473 407 0.276
:
13
Transcribed Image Text:5:25 13 of 14 Chapter 14: Use an object-oriented approach Convert the program from procedural to object-oriented. This shouldn't change the functionality of the code much, but it should make the code more modular and reusable and easier to maintain. Console . CURRENT DATE: GAME DATE: DAYS UNTIL GAME: 2 MENU OPTIONS 1 Display lineup 2 Add player 3 Remove player 4 5 6 7 Move player Edit player position Menu option: 1 Player Edit player stats Exit program POSITIONS C, 1B, 2B, 3B, SS, LF, CF, RF, P 1 Tommy La Stella 2 Mike Yastrzemski Donovan Solano 2021-03-19 2021-3-21 4 Buster Posey 5 Brandon Belt 6 Brandon Crawford 7 Alex Dickerson 8 Austin Slater 9 Kevin Gausman Menu option: 2 First name: Mike Last name: Murach Position: c At bats: 0 Menu option: 7 Bye! Hits: 0 Mike Murach was added. Baseball Team Manager CURRENT DATE: GAME DATE: 1 2 MENU OPTIONS Display lineup 2021-03-19 Menu option: 1 Player Add player - Remove player 4 Move player 5 Edit player position 6 Edit player stats 7 Exit program POS Specifications Use a Player class that provides attributes that store the first name, last name, position, at bats, and hits for a player. This class should also provide methods or properties that return the player's full name and batting average. POSITIONS C, 1B, 2B, 3B, SS, LF, CF, RF, P 1 Tommy La Stella 2 Mike Yastrzemski 3 Donovan Solano 3B RF Baseball Team Manager 2B с 1B SS Update your program by adding a Lineup class that includes an iterator. This shouldn't change the functionality of the code, but it should make the code more modular and reusable and easier to maintain. Console 1316 360 563 168 POS H 1473 407 4575 1380 3811 1003 4402 1099 586 160 569 147 56 2 AB AVG 0.274 0.281 3B RF 2B bridges.rwu.edu 0.276 0.302 0.263 0.250 H 0.273 0.274 0.036 =================== AVG 1316 360 0.274 563 168 0.281 1473 407 0.276 : 13
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 9 images

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr