Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 objectoriented 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 matchupgame 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 eg 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 objectoriented 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 matchupgame 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 eg 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started