0% found this document useful (0 votes)
10 views1 page

Assignment1 1

This is assignment 1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

Assignment1 1

This is assignment 1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

ASSIGNMENT 1

We need to manage a football team, includes player and coach.


- Player: with the informations: code, name, address, shirt number , position, salary.
- Coach: with the informations: code, name, address, position,salary, years of
experience.
1. Build the classes as the above requirement (using the inheritance).
2. Build an interface, named IManger to design some methods:
- Input a list of players.
- Show list of players.
- Update the information of players  void changePlayer(int playercode, int
option, int shirtnumber, double salary);
+ If option = 0, change the shirt number of player
+ If option !=0, change the salary.
- Sum of the salary of the players that are the striker.
- Who are players have the max salary?  void showMaxLuong();
- Sort the list of players by ascending shirt number.
3. Implement the above interface.
4. Build the main class:
- Show the menu.
- Depending on the option, call the processing functions in section 3 to display the
results.
5. Build the class CheckData:
- Check null for String properties.
- Check number for number properties.

You might also like