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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,98e6b29260f70dc7 X-Google-Attributes: gid103376,public From: randhol+abuse@pvv.org (Preben Randhol) Subject: Re: mmmmmmmmmmmm Date: 2000/08/16 Message-ID: #1/1 X-Deja-AN: 658842187 References: <39991c02$0$17111@echo-01.iinet.net.au> <399920FE.556AD44F@Physik.Uni-Magdeburg.de> <39998CC2.A07B01F1@NULL.lmco.com> <399a1b30$0$1055@echo-01.iinet.net.au> X-Complaints-To: usenet@itea.ntnu.no X-Trace: kopp.stud.ntnu.no 966413304 3953 129.241.83.82 (16 Aug 2000 08:08:24 GMT) Organization: Norwegian university of science and technology User-Agent: slrn/0.9.6.2 (Linux) NNTP-Posting-Date: 16 Aug 2000 08:08:24 GMT Newsgroups: comp.lang.ada Date: 2000-08-16T08:08:24+00:00 List-Id: On Wed, 16 Aug 2000 12:19:10 -0700, Damon Carter wrote: [..] >They have told me that i have to use this specification- > > procedure Get_Valid_Integer (The_Integer : out Integer; > Prompt_Text : String := "any integer The_Integer"; > Lower : Integer := Integer'First; > Upper : Integer := Integer'Last); [..] >write a program that meets all the requirements. But im meant to use formal >parameters and the Get_Valid_Integer procedure above. I dont know how to >define Lower and Upper to make the range between 1 and 40. Maybe I'm holding the wrong end of the stick here, but as I see it what they mean is that one should be able to do a call like this: Get_Valid_Integer (The_Integer => Result, Promt_Text => String_from_User, Lower => 1, Upper => 40); -- [1] Then you can if one wants to check for a number in a different range, one can do it by simply changing the call to the function. If your not sure what to do try looking at: http://goanna.cs.rmit.edu.au/~dale/ada/aln/4_basic_types.html [1] You should of course use some variable (or constants) in this call for the upper and lower bounds, I just typed the values for clarity. -- Preben Randhol - Ph. D student - http://www.pvv.org/~randhol/ "Violence is the last refuge of the incompetent", Isaac Asimov