Question: Obiectives: The major advantage of using object - oriented programming is that it increases the reusability and readability of programs. After completing the assignment, students

Obiectives: The major advantage of using object-oriented programming is that it increases the reusability and readability of programs. After completing the assignment, students will be able to:
Use Classes to create custom objects.
Implement constructors in classes
Understand encapsulation
Combine objects and data structures
Task Description: A sports association has come to you to develop a program to run a soccer league. The program should be a menu operated program. It should be able to create a matchup/game schedule, game information, team information, and player information. Initially, this information is read from text files in which data is separated by commas (,"). The program should also allow users to create teams, players, coaches, and games from user input.
Team.txt
Name
City
Color
Player.txt
Name
Age
Position
Team
Coach.txt
Name
Age
Experience
Team
Game.txt
Home Team
Away Team
Home Score
Away Score
Create five classes: League, Team, Player, Coach, and Game. These will hold all the above information. League should hold the functionality of the program. The program should be able to display team information, players' information, coaches' information, and game information.
You should validate any input that you prompt from the user e.g., the user enters a negative age value or they enter the name for a team that does not exist. If the user enters an invalid input, the program should continue to prompt the user until it receives a valid input.
 Obiectives: The major advantage of using object-oriented programming is that it

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!