|
Second Summer 2002 |
I am going to post here types of problems. Solutions will be posted here.
Good evening, and welcome to Minneapolis!
would be
Gd vnng, nd wlcm t Mnnpls!
main method is receiving.
average method
defined on page 443 in the book can work on an array that has been generated by the method
randomData defined on the next page. Incorporate user-input in your program,
perhaps by asking (in a loop) the size of the array that has to be generated. Make sure
the program produces an output that is meaningful to the user.
characters then
printing the array out.
Player that will help you put forth your ideas about basketball.
Each Player has a position on the floor (expressed as a pair of x and y
coordinates) and may or may not be in possesion. (You could simulate that through an instance variable
of type boolean or by defining a class Ball and having an instance variable
of this type in each instance of type Player. If this variable is not null
then the player is in possession).
Then create five players, place them on the parquet, give one of them the ball and set up a play (of the kind you see on TV, for example, on SportVision, or on Yahoo! Sports).
Well, I think this should get us started.