From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a0c:9082:: with SMTP id p2mr16033880qvp.197.1568615994234; Sun, 15 Sep 2019 23:39:54 -0700 (PDT) X-Received: by 2002:a9d:4a96:: with SMTP id i22mr1422079otf.342.1568615993850; Sun, 15 Sep 2019 23:39:53 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!o24no228733qtl.0!news-out.google.com!x7ni554qtf.0!nntp.google.com!o24no228719qtl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 15 Sep 2019 23:39:53 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:2c2:c280:25:3cd2:e3ce:37d3:aec5; posting-account=7-OTGgoAAAA_MYkZz-wLbolrPs8_5Jcz NNTP-Posting-Host: 2601:2c2:c280:25:3cd2:e3ce:37d3:aec5 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8c293e09-fc74-45a4-b109-cd4041a4a311@googlegroups.com> Subject: Ada stacks and the time system From: sandeep parajuli Injection-Date: Mon, 16 Sep 2019 06:39:54 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:57153 Date: 2019-09-15T23:39:53-07:00 List-Id: Emperor Constantine has commanded Darth Vader to build and operate a warshi= p repair facility for Tie Fighters and Star Destroyers. When a damaged veh= icle arrives a service record must be placed in the appropriate service bay= including the vehicles name and time of arrival. For security reasons, Ti= e fighters are assigned names of TieA, TieB etcetera. Likewise, Star Destr= oyers are given names of StarA, StarB etcetera. After a vehicles name ends= in =E2=80=98Z=E2=80=99 the sequence is repeated from =E2=80=98A=E2=80=99. = Lord Vader directed us to write a program for the facility providing suppo= rt for two stacks or parish in the attempt. To minimize waste, the two sta= cks must occupy the same physical space, for example locations 1 through 20= for the =E2=80=9CC=E2=80=9D Option. The stack space must be allocated dyn= amically in the stack, not the heap (Box1.ada)! You must prompt the user a= t run time for the upper and lower array bounds. For the =E2=80=9CC=E2=80= =9D option use 1 and 20 as the lower and upper bounds for the actual space = used to track vehicles, i.e., the stack space will hold a maximum of 20 spa= ce vehicles. The following memory model was specified by Lord Vader using = 1 and 20 for the lower and upper bounds respectively. How can we do this is Ada