Question: Section 3: Create an object-oriented program Convert the Baseball Team Manager prognam from procedural to object-oriented. This shouldn't change the functionality of the code much,

Section 3: Create an object-oriented program Convert the Baseball Team Manager prognam 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 Section 3: Create an object-oriented program (continued) Specifications - Use a Player class that provid 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. - Use a Lineup class to store the starting lineup for the team. This class should include methods that allow you to add, remove, move, retrieve, and edit a player. In addition, it should include a method or property that returns the number of players in the lineup, and an iterator so you can easily loop through each player in the lineup. - Use a file named ui to store the code for the user interface. - Use a file named objects to store the code for the Player and Lineup classes. - Use a file named db to store the functions that work with the file that stores the data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
