comp.lang.ada
 help / color / mirror / Atom feed
* Help with tasks
@ 2016-05-07 14:53 danifreecs
  2016-05-07 17:43 ` Dennis Lee Bieber
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: danifreecs @ 2016-05-07 14:53 UTC (permalink / raw)


Hi! i'm a student, and got stucked with an ada home project, and i need a lot of help sadly, i can't even ask a specific question, because i have a lot, but it's about tasks and protected objects.

The project: There's a garden with 10 plots, and a locust gets in 1 of the plots, so the gardener wants to kill it with poison. The locust randomly changes plots in a time, and the gardener can spray 1 plot/day (either randomly), which gets clean from poison after that day has passed. The locust dies if it jumps into the sprayed plot, or is in it already. The simulation goes until the locust dies. For the random number generation and the console output use a common protected object. (Monitor)

I've tried all day to implement it with no luck, and feel that i need a complete solution to analyze and learn from its code lines, but any help is appreciated.
Thanks!

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-05-09  2:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-07 14:53 Help with tasks danifreecs
2016-05-07 17:43 ` Dennis Lee Bieber
2016-05-07 18:50 ` Anh Vo
2016-05-07 20:44 ` Jeffrey R. Carter
2016-05-08 12:23 ` danifreecs
2016-05-08 18:28   ` Anh Vo
2016-05-09  2:24 ` rieachus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox