SlideShare a Scribd company logo
The task is to design and develop a prototype for one of the
features of an application which tracks the performance of the
players.
The Application features a game with a number of levels; on
successful completion of a level, a player moves to the next
level. 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 as delimited text
format or object file. Player details are Id, Player Name,
Image Filename, Current Level, Number of Attempts at Current
Level, and, Total Points earned. For social media players the
social media app name and identifier are stored.
Requirements
Develop a project with console menu-driven application. The
project should contain a controller class with stubs for methods
implementing the requirements 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 and remove a player from the list.
3. List all players in ascending 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:
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
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
.
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.
Remove a player from the list
This fulfils Requirement 2. To complete this increment you
should:
Enter the player id and remove player details from the list based
on the entered id.
List players in ascending 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
.
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
.
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
10
SocialMediaPlayer class
10
Repository class
5
DAOImpl class
5
Increment1 GameController class
10
Increment2 GameController class
10
Increment3 GameController class
5
Increment4 GameController class
5
Increment5 GameController class
5
Use of nested classes (inner/local/anonymous)
10
Use of abstract & generic classes
5
UML Class diagram
10
Use of lambda expressions
10
Total
100
Starter Project Test Run
run:
Game App
========
Players
=======
A. Add Player B. Remove Player C. List Players D. Update
Player Q. Quit
Enter choice:
A
Add Player
==========
Players
=======
A. Add Player B. Remove Player C. List Players D. Update
Player Q. Quit
Enter choice:
B
Remove Player
==========
Players
=======
A. Add Player B. Remove Player C. List Players D. Update
Player Q. Quit
Enter choice:
C
Players
=======
A. Add Player B. Remove Player C. List Players D. Update
Player Q. Quit
Enter choice:
D
Update Player
=============
Players
=======
A. Add Player B. Remove Player C. List Players D. Update
Player Q. Quit
Enter choice:
Q
Thank you for using Game App. Good bye.
Sample Delimited Text File
1,"Saleh","salehpic.jpg",20,2,1500
2,"Salim","salpic.jpg",1,0,0,"MyBook","
[email protected]
"
3,"Ibrahim”,"ibr.jpg",15,1,100

More Related Content

Similar to The task is to design and develop a prototype for one of the fea.docx

Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab.docx
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab.docxStudent Lab Activity A. Lab # CIS CIS170A-A1B. Lab.docx
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab.docx
emelyvalg9
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and strings
ash52393
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and strings
shyaminfo04
 
POS 408 Education Specialist / snaptutorial.com
POS 408 Education Specialist / snaptutorial.comPOS 408 Education Specialist / snaptutorial.com
POS 408 Education Specialist / snaptutorial.com
McdonaldRyan107
 
POS 408 Effective Communication - tutorialrank.com
POS 408  Effective Communication - tutorialrank.comPOS 408  Effective Communication - tutorialrank.com
POS 408 Effective Communication - tutorialrank.com
Bartholomew58
 
Volley lab btc_bbit
Volley lab btc_bbitVolley lab btc_bbit
Volley lab btc_bbit
CarWash1
 
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-stringsDevry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
noahjamessss
 
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-stringsDevry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
cskvsmi44
 
Uop pos 433 week 5 linux script worksheet new
Uop pos 433 week 5 linux script worksheet newUop pos 433 week 5 linux script worksheet new
Uop pos 433 week 5 linux script worksheet new
shyaminfopvtltd
 
Prg 211 prg211
Prg 211 prg211Prg 211 prg211
Prg 211 prg211
GOODCourseHelp
 
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.com
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.comPos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.com
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.com
ULLPTT
 
Security lab
Security labSecurity lab
Security lab
Joanne Scouler
 
Keynote + Next Gen UIs.pptx
Keynote + Next Gen UIs.pptxKeynote + Next Gen UIs.pptx
Keynote + Next Gen UIs.pptx
EqraKhattak
 
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docxCASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
keturahhazelhurst
 
FileWrite.javaFileWrite.java  To change this license header.docx
FileWrite.javaFileWrite.java  To change this license header.docxFileWrite.javaFileWrite.java  To change this license header.docx
FileWrite.javaFileWrite.java  To change this license header.docx
ssuser454af01
 
70-744.pdf
70-744.pdf70-744.pdf
70-744.pdf
Lisa Cain
 
Components lab
Components labComponents lab
Components lab
IBM Rational software
 
Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6comp274
 
Certification exams 70 410 braindumps
Certification exams 70 410 braindumpsCertification exams 70 410 braindumps
Certification exams 70 410 braindumps
adam_jhon
 

Similar to The task is to design and develop a prototype for one of the fea.docx (20)

Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab.docx
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab.docxStudent Lab Activity A. Lab # CIS CIS170A-A1B. Lab.docx
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab.docx
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and strings
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and strings
 
POS 408 Education Specialist / snaptutorial.com
POS 408 Education Specialist / snaptutorial.comPOS 408 Education Specialist / snaptutorial.com
POS 408 Education Specialist / snaptutorial.com
 
a3.pdf
a3.pdfa3.pdf
a3.pdf
 
POS 408 Effective Communication - tutorialrank.com
POS 408  Effective Communication - tutorialrank.comPOS 408  Effective Communication - tutorialrank.com
POS 408 Effective Communication - tutorialrank.com
 
Volley lab btc_bbit
Volley lab btc_bbitVolley lab btc_bbit
Volley lab btc_bbit
 
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-stringsDevry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
 
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-stringsDevry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
 
Uop pos 433 week 5 linux script worksheet new
Uop pos 433 week 5 linux script worksheet newUop pos 433 week 5 linux script worksheet new
Uop pos 433 week 5 linux script worksheet new
 
Prg 211 prg211
Prg 211 prg211Prg 211 prg211
Prg 211 prg211
 
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.com
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.comPos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.com
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.com
 
Security lab
Security labSecurity lab
Security lab
 
Keynote + Next Gen UIs.pptx
Keynote + Next Gen UIs.pptxKeynote + Next Gen UIs.pptx
Keynote + Next Gen UIs.pptx
 
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docxCASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
 
FileWrite.javaFileWrite.java  To change this license header.docx
FileWrite.javaFileWrite.java  To change this license header.docxFileWrite.javaFileWrite.java  To change this license header.docx
FileWrite.javaFileWrite.java  To change this license header.docx
 
70-744.pdf
70-744.pdf70-744.pdf
70-744.pdf
 
Components lab
Components labComponents lab
Components lab
 
Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6
 
Certification exams 70 410 braindumps
Certification exams 70 410 braindumpsCertification exams 70 410 braindumps
Certification exams 70 410 braindumps
 

More from sarah98765

The subject of technology, particularly social media, is controversi.docx
The subject of technology, particularly social media, is controversi.docxThe subject of technology, particularly social media, is controversi.docx
The subject of technology, particularly social media, is controversi.docx
sarah98765
 
The subject Cloud Security and ComplianceEach student needs.docx
The subject Cloud Security and ComplianceEach student needs.docxThe subject Cloud Security and ComplianceEach student needs.docx
The subject Cloud Security and ComplianceEach student needs.docx
sarah98765
 
The subject of divorce has been the topic of multiple research s.docx
The subject of divorce has been the topic of multiple research s.docxThe subject of divorce has been the topic of multiple research s.docx
The subject of divorce has been the topic of multiple research s.docx
sarah98765
 
The subject is companies lawEssay 800-1000 wordsDue da.docx
The subject is companies lawEssay 800-1000 wordsDue da.docxThe subject is companies lawEssay 800-1000 wordsDue da.docx
The subject is companies lawEssay 800-1000 wordsDue da.docx
sarah98765
 
The subject is Legalization of Marijuana in AmericaWhen you .docx
The subject is Legalization of Marijuana in AmericaWhen you .docxThe subject is Legalization of Marijuana in AmericaWhen you .docx
The subject is Legalization of Marijuana in AmericaWhen you .docx
sarah98765
 
the subject is a kitchen remodel1.4 Work Breakdown S.docx
the subject is a kitchen remodel1.4 Work Breakdown S.docxthe subject is a kitchen remodel1.4 Work Breakdown S.docx
the subject is a kitchen remodel1.4 Work Breakdown S.docx
sarah98765
 
THe subject is children living in norfolk va with cancer.Research .docx
THe subject is children living in norfolk va with cancer.Research .docxTHe subject is children living in norfolk va with cancer.Research .docx
THe subject is children living in norfolk va with cancer.Research .docx
sarah98765
 
The subdivision that I chose is Florida Re-Entry Subdivision (aka Re.docx
The subdivision that I chose is Florida Re-Entry Subdivision (aka Re.docxThe subdivision that I chose is Florida Re-Entry Subdivision (aka Re.docx
The subdivision that I chose is Florida Re-Entry Subdivision (aka Re.docx
sarah98765
 
The study of the philosophy of friendship provides us with an  o.docx
The study of the philosophy of friendship provides us with an  o.docxThe study of the philosophy of friendship provides us with an  o.docx
The study of the philosophy of friendship provides us with an  o.docx
sarah98765
 
The Tea Party movement that started in 2010 is considered by some po.docx
The Tea Party movement that started in 2010 is considered by some po.docxThe Tea Party movement that started in 2010 is considered by some po.docx
The Tea Party movement that started in 2010 is considered by some po.docx
sarah98765
 
The TCP, UDP, and IP were designed to provide best-effort service wi.docx
The TCP, UDP, and IP were designed to provide best-effort service wi.docxThe TCP, UDP, and IP were designed to provide best-effort service wi.docx
The TCP, UDP, and IP were designed to provide best-effort service wi.docx
sarah98765
 
The student will•Apply critical thinking through participat.docx
The student will•Apply critical thinking through participat.docxThe student will•Apply critical thinking through participat.docx
The student will•Apply critical thinking through participat.docx
sarah98765
 
The tasks You are assumed to be one of the software consultants .docx
The tasks You are assumed to be one of the software consultants .docxThe tasks You are assumed to be one of the software consultants .docx
The tasks You are assumed to be one of the software consultants .docx
sarah98765
 
The Task Your assignment is to create a seven page multiple so.docx
The Task Your assignment is to create a seven page multiple so.docxThe Task Your assignment is to create a seven page multiple so.docx
The Task Your assignment is to create a seven page multiple so.docx
sarah98765
 
The tasks related to securing the homeland and its critical infr.docx
The tasks related to securing the homeland and its critical infr.docxThe tasks related to securing the homeland and its critical infr.docx
The tasks related to securing the homeland and its critical infr.docx
sarah98765
 
The task is to write up about the Impact of Technology on proj.docx
The task is to write up about the Impact of Technology on proj.docxThe task is to write up about the Impact of Technology on proj.docx
The task is to write up about the Impact of Technology on proj.docx
sarah98765
 
The task is individualThe deliverable has to be a report 2,500-.docx
The task is individualThe deliverable has to be a report 2,500-.docxThe task is individualThe deliverable has to be a report 2,500-.docx
The task is individualThe deliverable has to be a report 2,500-.docx
sarah98765
 
The task is attached here. Thanks a lotRubricsHighly develo.docx
The task is attached here. Thanks a lotRubricsHighly develo.docxThe task is attached here. Thanks a lotRubricsHighly develo.docx
The task is attached here. Thanks a lotRubricsHighly develo.docx
sarah98765
 
The task for this paper is toYou are to select a technology w.docx
The task for this paper is toYou are to select a technology w.docxThe task for this paper is toYou are to select a technology w.docx
The task for this paper is toYou are to select a technology w.docx
sarah98765
 
The target market and the list are often considered the most importa.docx
The target market and the list are often considered the most importa.docxThe target market and the list are often considered the most importa.docx
The target market and the list are often considered the most importa.docx
sarah98765
 

More from sarah98765 (20)

The subject of technology, particularly social media, is controversi.docx
The subject of technology, particularly social media, is controversi.docxThe subject of technology, particularly social media, is controversi.docx
The subject of technology, particularly social media, is controversi.docx
 
The subject Cloud Security and ComplianceEach student needs.docx
The subject Cloud Security and ComplianceEach student needs.docxThe subject Cloud Security and ComplianceEach student needs.docx
The subject Cloud Security and ComplianceEach student needs.docx
 
The subject of divorce has been the topic of multiple research s.docx
The subject of divorce has been the topic of multiple research s.docxThe subject of divorce has been the topic of multiple research s.docx
The subject of divorce has been the topic of multiple research s.docx
 
The subject is companies lawEssay 800-1000 wordsDue da.docx
The subject is companies lawEssay 800-1000 wordsDue da.docxThe subject is companies lawEssay 800-1000 wordsDue da.docx
The subject is companies lawEssay 800-1000 wordsDue da.docx
 
The subject is Legalization of Marijuana in AmericaWhen you .docx
The subject is Legalization of Marijuana in AmericaWhen you .docxThe subject is Legalization of Marijuana in AmericaWhen you .docx
The subject is Legalization of Marijuana in AmericaWhen you .docx
 
the subject is a kitchen remodel1.4 Work Breakdown S.docx
the subject is a kitchen remodel1.4 Work Breakdown S.docxthe subject is a kitchen remodel1.4 Work Breakdown S.docx
the subject is a kitchen remodel1.4 Work Breakdown S.docx
 
THe subject is children living in norfolk va with cancer.Research .docx
THe subject is children living in norfolk va with cancer.Research .docxTHe subject is children living in norfolk va with cancer.Research .docx
THe subject is children living in norfolk va with cancer.Research .docx
 
The subdivision that I chose is Florida Re-Entry Subdivision (aka Re.docx
The subdivision that I chose is Florida Re-Entry Subdivision (aka Re.docxThe subdivision that I chose is Florida Re-Entry Subdivision (aka Re.docx
The subdivision that I chose is Florida Re-Entry Subdivision (aka Re.docx
 
The study of the philosophy of friendship provides us with an  o.docx
The study of the philosophy of friendship provides us with an  o.docxThe study of the philosophy of friendship provides us with an  o.docx
The study of the philosophy of friendship provides us with an  o.docx
 
The Tea Party movement that started in 2010 is considered by some po.docx
The Tea Party movement that started in 2010 is considered by some po.docxThe Tea Party movement that started in 2010 is considered by some po.docx
The Tea Party movement that started in 2010 is considered by some po.docx
 
The TCP, UDP, and IP were designed to provide best-effort service wi.docx
The TCP, UDP, and IP were designed to provide best-effort service wi.docxThe TCP, UDP, and IP were designed to provide best-effort service wi.docx
The TCP, UDP, and IP were designed to provide best-effort service wi.docx
 
The student will•Apply critical thinking through participat.docx
The student will•Apply critical thinking through participat.docxThe student will•Apply critical thinking through participat.docx
The student will•Apply critical thinking through participat.docx
 
The tasks You are assumed to be one of the software consultants .docx
The tasks You are assumed to be one of the software consultants .docxThe tasks You are assumed to be one of the software consultants .docx
The tasks You are assumed to be one of the software consultants .docx
 
The Task Your assignment is to create a seven page multiple so.docx
The Task Your assignment is to create a seven page multiple so.docxThe Task Your assignment is to create a seven page multiple so.docx
The Task Your assignment is to create a seven page multiple so.docx
 
The tasks related to securing the homeland and its critical infr.docx
The tasks related to securing the homeland and its critical infr.docxThe tasks related to securing the homeland and its critical infr.docx
The tasks related to securing the homeland and its critical infr.docx
 
The task is to write up about the Impact of Technology on proj.docx
The task is to write up about the Impact of Technology on proj.docxThe task is to write up about the Impact of Technology on proj.docx
The task is to write up about the Impact of Technology on proj.docx
 
The task is individualThe deliverable has to be a report 2,500-.docx
The task is individualThe deliverable has to be a report 2,500-.docxThe task is individualThe deliverable has to be a report 2,500-.docx
The task is individualThe deliverable has to be a report 2,500-.docx
 
The task is attached here. Thanks a lotRubricsHighly develo.docx
The task is attached here. Thanks a lotRubricsHighly develo.docxThe task is attached here. Thanks a lotRubricsHighly develo.docx
The task is attached here. Thanks a lotRubricsHighly develo.docx
 
The task for this paper is toYou are to select a technology w.docx
The task for this paper is toYou are to select a technology w.docxThe task for this paper is toYou are to select a technology w.docx
The task for this paper is toYou are to select a technology w.docx
 
The target market and the list are often considered the most importa.docx
The target market and the list are often considered the most importa.docxThe target market and the list are often considered the most importa.docx
The target market and the list are often considered the most importa.docx
 

Recently uploaded

Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 

Recently uploaded (20)

Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 

The task is to design and develop a prototype for one of the fea.docx

  • 1. The task is to design and develop a prototype for one of the features of an application which tracks the performance of the players. The Application features a game with a number of levels; on successful completion of a level, a player moves to the next level. 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 as delimited text format or object file. Player details are Id, Player Name, Image Filename, Current Level, Number of Attempts at Current Level, and, Total Points earned. For social media players the social media app name and identifier are stored. Requirements Develop a project with console menu-driven application. The project should contain a controller class with stubs for methods implementing the requirements 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 and remove a player from the list. 3. List all players in ascending 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
  • 2. 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: 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 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
  • 3. 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 . Add new Player This fulfils Requirement 2. To complete this increment you should:
  • 4. 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. Remove a player from the list This fulfils Requirement 2. To complete this increment you should: Enter the player id and remove player details from the list based on the entered id. List players in ascending order of points earned This fulfils Requirement 3. To complete this increment you should:
  • 5. 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 . 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
  • 6. class and name it as GameController_Increment4.java . 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. 10 SocialMediaPlayer class 10 Repository class 5 DAOImpl class 5 Increment1 GameController class 10 Increment2 GameController class
  • 8. 10 Increment3 GameController class 5 Increment4 GameController class 5 Increment5 GameController class 5 Use of nested classes (inner/local/anonymous) 10 Use of abstract & generic classes
  • 9. 5 UML Class diagram 10 Use of lambda expressions 10 Total 100 Starter Project Test Run run: Game App ======== Players ======= A. Add Player B. Remove Player C. List Players D. Update
  • 10. Player Q. Quit Enter choice: A Add Player ========== Players ======= A. Add Player B. Remove Player C. List Players D. Update Player Q. Quit Enter choice: B Remove Player ========== Players ======= A. Add Player B. Remove Player C. List Players D. Update Player Q. Quit Enter choice: C
  • 11. Players ======= A. Add Player B. Remove Player C. List Players D. Update Player Q. Quit Enter choice: D Update Player ============= Players ======= A. Add Player B. Remove Player C. List Players D. Update Player Q. Quit Enter choice: Q Thank you for using Game App. Good bye. Sample Delimited Text File 1,"Saleh","salehpic.jpg",20,2,1500 2,"Salim","salpic.jpg",1,0,0,"MyBook"," [email protected] "