Tuesday, 25 July 2017

ATLANTA FOOTBALL CLUB CORE JAVA SOLVED NIIT Assignment ~ GNIIT HELP

ATLANTA FOOTBALL CLUB ASSIGNMENT IN CORE JAVA SOLVED

Atlanta Club is a new football club in the United States based in Mesa, Arizona. The football team comprises young and upcoming players from various parts of the country and participates in professional league tournaments. Atlanta Club is professionally managed from its headquarter at Mesa. For every new season, the team is assigned a Team Manager backed by a support staff that travels with the team to the match venues. 
The management of Atlanta Club has set up a selection panel comprising former players and football experts. The selection panel is responsible for selecting players for a tournament. Currently, the selection panel selects players based on the feedbacks received from the Team Manager after each tournament. However, it is the Team Manager who selects the team for a particular match. 
The management of Atlanta Club has realized the importance of greater involvement of the selection panel to monitor player performances. The management also wants the selection panel to provide feedback to the Team Manager on the team selection for a match. Accordingly, the management decides to create a Player Management System (PMS). This system will automate the process of assigning players to a team for a match and recording player performances in a match. 
To create the PMS, the management has approached Park Soft, a software development organization. As a software developer of Park Soft, you have been assigned the task to lead the team creating the PMS. 
Based on your initial meeting with the management of Atlanta Club, you have analyzed that the players are selected to play for the following positions:  Goal keeper  Defender  Midfielder  Forward 
The Team Manager monitors the player’s performances in a game and grades them at a scale of 1 to 5. Based on the grading, the Team Manager decides on the playing team for the next match. The Team Manager refers to the average grading for a player to recommend the selection panel of the team to select players for a tournament. 
In subsequent meetings, you have collated the requirements of the PMS. The PMS will be a standalone application used by the Team Manager. The PMS should allow the Team Manager to add players to a position. For each match, the PMS should allow the Team Manager to assign the players to play the match. 
In addition, the PMS should allow the Team Manager to generate a Match Performance Report (MPR) for each match and store it in the file system as a text file. An MPR will contain the following pieces of information:  The Player ID, name, and position  The Match ID  The performance grade as a value between 1 and 5 
The Team Manager will share the MPR file with the selection panel on a match-to-match basis. 
The PMS should also allow the Project Manager to merge all the MPR files for a tournament to create a single Tournament Performance Report (TPR) file at the end of each tournament. 
You have been assigned the task of analyzing the scenario and lead the team in creating the PMS.


1.You need to analyze the object and information structure in the given scenario and perform the following tasks: Identify the primary classes and their relationships. The primary classes should model the positions, players, and matches. 
Create the primary classes with their required fields and methods.

2. Once the primary classes are created, you need to perform the following tasks: Create the database tables in Derby and populate the tables with the sample data. The following figure shows the structures of the tables that you need to create:   
                                     The Structure of the Tables 
Implement the following classes that use JDBC to interact with the database tables:  Implement a class that performs the following functions:  Insert the record of a new match into the MATCH table.  Insert the record of a team for a match into the TEAM table.  Implement a class that queries the database tables to retrieve information of a match and the team.

3. After creating the JDBC classes, you need to implement the player performance module of the application. To implement this module, you will need to perform the following tasks:  Create a class that generates a MPR file by implementing the following functions: 
The class should create the MPR file for a match in the following directory structure format:     
PMS/MPR/<DD-MM-YYYY>.txt 
In the preceding format:  <DD-MM-YYYY>: Is the date, month, and year on which the MPR report is created. Create a class that creates the CDR file by implementing the following functions.  The class should merge the contents of MPR files for each match to create a TPR file for the tournament in the following location and format: 
PMS/TPR/<DD-MM-YYYY>.txt 
Once a new TPR file is created, the class should move the existing MPR files to the following location: 
PMS/Archive/MPR   
The class should perform the operations to copy from each MPR file to the TPR file using separate threads.

4. You need to test and debug the application. You need to use the console to input test data and verify the outputs based on the requirement of the system. You also need to validate that the input data conforms to the data format used in the application.



CLICK HERE TO DOWNLOAD

No comments:

Post a Comment