comp.lang.ada
 help / color / mirror / Atom feed
From: danifreecs@gmail.com
Subject: Help with tasks
Date: Sat, 7 May 2016 07:53:28 -0700 (PDT)
Date: 2016-05-07T07:53:28-07:00	[thread overview]
Message-ID: <410b222c-9443-46b7-8a18-2fc3d05772a9@googlegroups.com> (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!

             reply	other threads:[~2016-05-07 14:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-07 14:53 danifreecs [this message]
2016-05-07 17:43 ` Help with tasks 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
replies disabled

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