Practical Development Test
GSI 2
Written (20pts)
Analysis and design (10pts)
The Cameroonian Tennis Federation would like to create a tournament database.
to register participants in a tennis tournament and all matches played in three sets at the
maximum. The database must record the participants of a given match, as well as the winner and the score
from each set. Each player is characterized by their identifier, their name, their first name, and their club.
1. Provide the list of entities (2 pts)
2. Establish the data dictionary (2 points)
3. Produce the conceptual data model (CDM)(3 pts)
4. Deduce the verified and compliant logical data model (LDM). (3 pts)
Section 2: Algorithm (10pts)
1. Propose a data structure to store player information.
tennis
2. Write an algorithm to fill an array of 10 tennis players. (2 pts)
3. Write a procedure to sort the array of 10 tennis players in order.
croissant by name. (3 pts)
4. Write a function that takes as a parameter the identifier of a tennis player and returns their
position in the player table. (4 pts)
Part 2: Practice (30pts)
Section 1: Object-oriented programming (10pts)
In Java language and using the JAVA IDE (BlueJ, NETBEANS, ECLIPSE):
1. Create a project named Tournament_poo
2. Create the players class with all its attributes. (1 pt)
3. Proceed with the encapsulation of the attributes of the player class. (2 points)
4. Create a constructor for the player class that initializes all the attributes. (2 points)
5. Create a method (procedure) ShowPlayerInfo that allows displaying a player's information.
tennis player.
6. Create a method (function) FindPlayer that takes as a parameter the identifier of a player and
return true if this player is the current player. (3 pts)
Section 2: Event-driven programming (10pts)
In VB.NET language under Visual Studio:
1. Create a Windows Form project named Tournament_app
2. Add a form named players. (1 pt)
3. In the said form, insert 04 text box controls named respectively:
TxtIdJoeur
PlayerName
Player First Name
TxtPlayerClub
And add to the form a button named BtnEnregistrer with the text 'Save'.
(3 pts)
4. Create a procedure to retrieve the information entered in the textboxes and the
display in a dialog box. (2 pts)
5. Add a click event to the previously created button and link this event to the procedure.
above.
6. Write a function that takes a player's name as a parameter and returns true if this name is
the one entered in the control TxtNom.(3 pts)
Section 3: Databases and reverse engineering (10pts)
Using power AMC:
1. Create a new Tournament project
2. Reproduce the Logical Data Model (LDM) created in part 1. (3 pts)
3. Generate the tournament file.sql of the database with all the tables. (1 pt)
Using the MySQL DBMS:
1. Create the database tournament_db and import the file tournament.sql. (2 pts)
2. In SQL query (on your composition sheet):
Show all the players in the tournament. (1 pt)
Display all players whose name starts with the letter 'M'. (1 pt)
Display all the players who faced each other during the tournament and the final score of the match.
(1 pt)
Show all the matches that were played on '15-10-2022' (1 pt)
Note: List of items to be submitted in a zipped folder bearing your full student name
Project file Tournament_poo
- Project fileTournament_app
Power AMCTournoi project file
The tournament file.sql