Link to home
Start Free TrialLog in
Avatar of tadgh
tadgh

asked on

write a small simple synamic program



Write a Java program that creates a number of Player objects (with ‘name’, ‘points’, and ‘rank’ properties) and assigns them random points.

Sort the players and populate the ‘rank’ property based on the player’s points.”


The sorting of the rankings should be dynamic.


Provide unit tests that exercise your solution.

Provide a short explanation of your code.


For extra credit:

Provide a timer that assigns further points to each player and as a consequence the player’s rankings change.

This timer should be off by default.

Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

What is your question?
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
> What is your question?

I guess "could you please do this assignment for me"?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>> The sorting of the rankings should be dynamic

What do you mean by static sorting anyway :) ? Since the sorting will happen on run-time, it will be dynamic.
Hi Tadhg

This is clearly a homework assignment or similar. We're all very happy for you that you've decided to learn how to program, but the general concensus is that you should make an attempt to solve this yourself, and then we'll all jump in a show you where there may be problems. However, to simply put the assignment as a question gives the impression that you're rather lazy.

So - jump in, make a start, and we'll be delighted to help.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of seet82
seet82

marchent : this is clearly a homework qns and by EE rules, homework qns are not allowed and of course, experts are not to spoonfed and do other ppl's homework
Oppps......................

thax seet82, i'm new to this arena, didn't know that. follow this for next time.

again thx to u
~marchent~
Avatar of tadgh

ASKER

thanks a lot,could you tell me more about the uniyt testing pleaase?
Use some testing tool like Junit as I suggested earlier.