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.
What is your question?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
> What is your question?
I guess "could you please do this assignment for me"?
I guess "could you please do this assignment for me"?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>> 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.
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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~
thax seet82, i'm new to this arena, didn't know that. follow this for next time.
again thx to u
~marchent~
ASKER
thanks a lot,could you tell me more about the uniyt testing pleaase?
Use some testing tool like Junit as I suggested earlier.