This site requires JavaScript, please enable it in your browser!
Greenfoot back
iUmarPie
iUmarPie wrote ...

2016/12/18

Having problem with Java design?

iUmarPie iUmarPie

2016/12/18

#
Guys I am having problem to design a simple software, don't know, how it can be done. Can anyone help me with it? A computer system is needed to track horses in a race. The system must be able to register a horse (name and number), record race data (horse number and finish time), calculate race winner (fastest) and display list of times. Find the horse name by entering the number!
danpost danpost

2016/12/18

#
iUmarPie wrote...
I am having problem to design a simple software, don't know, how it can be done. ... A computer system is needed to track horses in a race. The system must be able to register a horse (name and number), record race data (horse number and finish time), calculate race winner (fastest) and display list of times. Find the horse name by entering the number!
Which part of this are you having problems with? what have you tried? (do not expect others to do all the work and just give it to you)
iUmarPie iUmarPie

2016/12/19

#
Calculate race party and display horse name by entering its number.
danpost danpost

2016/12/19

#
iUmarPie wrote...
Calculate race party and display horse name by entering its number.
I think they just want you to create a method do accomplish each one of the tasks. So, for example, a method to calculate the race winner would check the times of all the horses that ran and find the shortest one, then return that horse. Questions you might want to ask then are -- What arrangement of data would make it easiest to accomplish this? Would that arrangement be suitable for collecting the data? Then, test out your idea and to make it work. If you end up stuck, then post what code you tried and explain what you were trying to do with it. Then, we can help with specific issues in getting the code to work.
You need to login to post a reply.