Chat with us, powered by LiveChat F/QAP/021/001 Course Work Aim To develop skills on solving engineering problems using Object Oriented programming concepts. - Writeedu

F/QAP/021/001 Course Work Aim To develop skills on solving engineering problems using Object Oriented programming concepts.

F/QAP/021/001

 

Course Work

 

Aim

To develop skills on solving engineering problems using Object Oriented programming concepts.

Learning Outcomes

After completing this module the students will be able to develop and test complete object oriented applications and to refactor existing applications.

 

 

 

Task(s)

A Games App is required which features a game with a number of levels; on successful completion of a level, a player moves to the next level. You are being asked to develop a prototype of the part of the app which tracks player performance. Players can register directly with the app itself or by supplying identification information from one of a number of linked social media apps.

Player data is stored in a single file; either delimited text format or object file. Player data is Id, Player Name, Image Filename, Current Level, Number of Attempts at Current Level, and, Overall Total Points Earned. Social media players will also store the social media app name and identifier.

Requirements

Develop a project with console menu-driven application. The project contains a controller class with stubs for methods implementing the required functionality listed below:

1. Load player performance information from a specified file into a players collection implemented using a repository

2. Add a new player with default values for current level, attempts and points.

3. List all players in descending order of overall points earned

4. Update a player’s performance data after an attempt at a level – overall points earned should be updated. On successful completion of a level the player should move to the next level and attempts returned to 0; otherwise, number of attempts should be incremented

5. Persist the collection to a specified file

The project should contain a model, repository and controller classes. A sample delimited text file is additionally supplied.

Development Approach

An incremental development approach should be used with the following increments:

1. Load players from a file and list in name order

This fulfils Requirement 1. To complete this increment you should:

a. Complete the Player, and SocialMediaPlayer classes with required fields and methods as depicted in the class diagram in Appendix 1.

b. Decide on which type of collection you want the repository to define and make the necessary adjustments to the Repository class and RepositoryInterface.

c. Partially complete the GameController class by completing the constructor method which creates a new Repository object from a file if specified by the user

d. Partially complete the GameController class to implement the listPlayers() method

e. Create a DAOImpl class to realize the DAOInterface using either text file or object file format

f. Modify the Repository class to use the DAOImpl class to load players from a specified file

Document the results of your testing using screen snippets copied into a Word document. Take a copy of the GameController class and name it as GameController_Increment1.java.

2. Add new Player

This fulfils Requirement 2. To complete this increment you should:

a. Fully implement the addPlayer() method in the GameController class; this should ask the user for required details, create a new Player or SocialMediaPlayer object and add it to the Repository object.

Document the results of your testing using screen snippets copied into a Word document. Take a copy of the GameController class and name it as GameController_Increment2.java.

3. List players in descending order of points earned

This fulfils Requirement 3. To complete this increment you should:

a. Complete the listPlayersInPointsOrder() method in the GameController class.

b. Ensure the Player class defines a method to compare players on the totalPointsEarned attribute.

Document the results of your testing using screen snippets copied into a Word document. Take a copy of the GameController class and name it as GameController_Increment3.java.

4. Update Player Performance Data

This fulfils Requirement 4. To complete this increment you should:

a. Complete the updatePlayer() method in the GameController class. The number of points earned in this attempt should be entered and whether or not the level has been completed.

Document the results of your testing using screen snippets copied into a Word document. Take a copy of the GameController class and name it as GameController_Increment4.java.

5. Persist player collection to a file

This fulfils Requirement 5. To complete this increment you should:

a. Implement the store() method of the DAOImpl class if you have not already done so.

b. Implement any necessary toString(DELIMITER) methods.

Document the results of your testing using screen snippets copied into a Word document.

Marking Scheme

 

Marks

Player class

7

SocialMediaPlayer class

3

Repository class

4

DAOImpl class

5

Increment1 GameController class

7

Increment2 GameController class

5

Increment3 GameController class

5

Increment4 GameController class

5

Increment5 GameController class

4

Use of nested classes (inner/local/anonymous)

5

Use of abstract & generic classes

 

 

 

Use of lambda expressions

 

Total

50

 

Starter Project Test Run

run:

Game App

========

 

 

Players

=======

 

A. Add Player B. List Players C. Update Player Q. Quit

Enter choice:

A

Add Player

==========

Players

=======

 

A. Add Player B. List Players C. Update Player Q. Quit

Enter choice:

B

Players

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteEdu. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

Do you need help with this question?

Get assignment help from WriteEdu.com Paper Writing Website and forget about your problems.

WriteEdu provides custom & cheap essay writing 100% original, plagiarism free essays, assignments & dissertations.

With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.

Chat with us today! We are always waiting to answer all your questions.

Click here to Place your Order Now