From: "John B. Matthews" <nospam@nospam.invalid>
Subject: Re: Marble Clock
Date: Wed, 03 Apr 2013 07:52:52 -0400
Date: 2013-04-03T07:52:52-04:00 [thread overview]
Message-ID: <nospam-1ABBCE.07525203042013@news.aioe.org> (raw)
In-Reply-To: e20eda83-2320-48ca-83da-b13d7df3dc1c@googlegroups.com
In article <e20eda83-2320-48ca-83da-b13d7df3dc1c@googlegroups.com>,
gattamaneni abhiram <abhiram.gattamaneni@gmail.com> wrote:
> Do I need to use timer functions in the program to depict the changes
> in the places of the marbles in different trays?
You're modeling a clock that works by stacking balls on a level
representing one time unit until that unit overflows, incrementing the
next higher time unit. A series of LIFO stacks might be a good choice.
The delay timer suggested by Eryndlia would drive your model at whatever
rate you choose: shorter delay -> faster simulation.
Initially, your choice "to depict the changes" should be simple, perhaps
using Ada.Text_IO.
See also:
<http://www.patriciashanahan.com/beginner.html>
<http://rosettacode.org/wiki/Stack#Ada>
--
[Please do not quote signatures.]
next prev parent reply other threads:[~2013-04-03 11:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-02 0:09 Marble Clock gattamaneni abhiram
2013-04-02 12:02 ` John B. Matthews
2013-04-02 19:46 ` gattamaneni abhiram
2013-04-02 19:54 ` Eryndlia Mavourneen
2013-04-03 9:14 ` Simon Wright
2013-04-03 12:45 ` Eryndlia Mavourneen
2013-04-03 16:53 ` Simon Wright
2013-04-12 22:28 ` gattamaneni abhiram
2013-04-13 5:51 ` Simon Wright
2013-04-13 19:04 ` Dennis Lee Bieber
2013-04-03 11:52 ` John B. Matthews [this message]
2013-04-03 7:44 ` Mike H
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox