This is a question about Java a.Scenario An organisation raises money for charity by running a high score competition pl

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

This is a question about Java a.Scenario An organisation raises money for charity by running a high score competition pl

Post by answerhappygod »

This is a question about Java
a.Scenario
An organisation raises money for charity by running a high score
competition playing the video game Space invaders. The participants
will be held in a CVS file
The Competitors attributes will be
These attributes are stored in a CVS file
The Competitors Class holds at least these variables:
Competition class must hold at least:
a hashSet of Competitors that holds all competitor’s
personal information
highScore tournament which allows the CVS file to be
update competitors’ information or remove them.
The code should also have methods for exception handling as well
as reader and writer classes
Don't forget that the Java language requires you to implement
the related
methods equals, hashCode and compareTo for
use of your member class in Java collections, and that these
methods should be consistent with each other.
(5 marks)
(5 marks)
(5 marks)
Your method should use appropriate exception handling.
Remember that in a CSV file comma-separated values
must not have added spaces between them.
Use your method to set up an initial test CSV file in your
project folder called members.csv. The file should contain
details of five members.
(5 marks)
The method should create a new member object for each line read
from the members CSV file, with each member object correctly
initialised according to the comma-separated values in the current
row of the members.csv file.
Starting with an empty collection,
the readCSVFile method should add each member object to
your organisation's member collection.
Your method should use appropriate exception handling and should
make use of at least one Scanner.
(10 marks)
(25 marks)
Open the Terminal window and in the Code Pad, create an instance
of your organisation class then write some code to:
Copy your test code and the Terminal output from your testing
into your Solution Document.
Finally, paste the contents of the members.csv file
into your Solution Document.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply