object oriented development - Java assignment

Question 1

(This is worth 30% of the total marks available for the present exercise.)

Download the files [url removed, login to view], [url removed, login to view],

[url removed, login to view] and [url removed, login to view] from Blackboard. A

listing of these files is included in the present coursework specification for your convenience.

The purpose of the program is to play either a card game or a die-rolling game. In the card

game, two cards are selected and the player wins if at least one of them is an Ace. In the dierolling

game, the die is rolled twice and the player wins if at least one of the die roll numbers

is a one.

This program will not work because [url removed, login to view] is expecting a

LinearCongruentialGenerator defined differently from the way it is defined in the

download files.

i) “Fix” this problem by renaming methods as necessary.

ii) “Fix” this problem in a different way, by applying the Adapter design pattern (leaving

[url removed, login to view] completely unchanged).

iii) Briefly discuss the pros and cons of the two above approaches to solving this

particular problem.

Question 2

(This is worth 70% of the total marks available for the present exercise.)

i) This program is deliberately inelegant. Write a critique of the program.

ii) Modify the program resulting from Question 1(ii) above in order to improve its

elegance. In particular, your modified program should:

● Handle error conditions more appropriately

● Show evidence of your having applied principles relating to concepts such as

coupling and cohesion

● Implement suitable die-rolling and card-selecting classes

● Separate out the two game implementations. (You may wish to find and apply the

Factory pattern, or a related pattern, in order to achieve this.1)

● Include brief comments explaining the code

iii) Briefly summarise each of the changes which you have made in answering this

question and the reasons you made them.

Compétences : Java

en voir plus : object oriented development java assignment, incompatiblerandominterface, the assignment problem, solving assignment problem, problem solving and program design in c, problem assignment, java development work, java design pattern, game design concepts, find factory, find development, factory work, factory design pattern java, factory design pattern, c code for assignment problem, assignment problem in or, adapter java, adapter design pattern, achieve card, 7 principles of design, renaming, renaming i, problem in java, object oriented, object oriented program

Concernant l'employeur :
( 0 commentaires ) cardiff, United Kingdom

Nº du projet : #1036071

12 freelance font une offre moyenne de £108 pour ce travail


I have 10+ years of JAVA experience. Also completed 300+ projects. I can do this assignment.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 10 jours
(270 Commentaires)

I am interested!

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 3 jours
(21 Commentaires)

Hi Please check PM

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 3 jours
(14 Commentaires)

Hi, I'm able to help.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 5 jours
(19 Commentaires)

Hi, I'm a Sun Certified Java Programmer (SCJP6), and I can do this for you quickly and professionally. Contact me personally to discuss it further.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 3 jours
(1 Évaluation)

Let's start

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 2 jours
(2 Commentaires)

I can do this for you

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 3 jours
(2 Commentaires)

Dear client, i can help [url removed, login to view] me . Regards

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 7 jours
(0 Commentaires)

Hello. I have over 8 years of experiences of OOP Programming in Java/C++. I should be grateful if i could have a chance to work with you. Best regards

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% GBP en 1 jour
(0 Commentaires)

I am confident of doing it.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 10 jours
(0 Commentaires)

plz chek pmb

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 7 jours
(0 Commentaires)

Hi, I have 5+ years of Java/J2EE development in Govt. Also I have teaching experience of over a year.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% GBP en 1 jour
(0 Commentaires)