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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,975b46ec27c036e5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-02 08:28:42 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!btnet-peer1!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Jim" Newsgroups: comp.lang.ada Subject: Re: Need help for a Calculator program Date: Sat, 2 Feb 2002 16:22:15 +0000 (UTC) Organization: BT Openworld Message-ID: References: NNTP-Posting-Host: 62.7.80.238 X-Trace: knossos.btinternet.com 1012666935 4482 62.7.80.238 (2 Feb 2002 16:22:15 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Sat, 2 Feb 2002 16:22:15 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: archiver1.google.com comp.lang.ada:19530 Date: 2002-02-02T16:22:15+00:00 List-Id: thats my problem i do not know how to design it, i am fairly new to ADA, heck i am new to programming. i did some pseudo code for the calculator program from the online book, just to get my head round it :- BEGIN enter expression get input start main loop start nested loop get operator symbol if there is a 'space' character end the loop end nested loop if 'full stop' character show answer of expression, exit main loop else get number if + -> result := result + number if - -> result := result - number if * -> result := result * number if / -> result := result / number end main loop end main program do you think that is alright ? are there any other ways of designing this calculator program ? maybe use arrays ? "Eric Merritt" wrote in message news:mailman.1012623182.24002.comp.lang.ada@ada.eu.org... > Overall design should be pretty similar regardless of > implementation language. I would suggest you psuedo > code it and once the design is work out in you mind > attempt to implement it in Ada. That way you may > concentrate on each aspect of you projects as it > arrises without worring about the other aspects too > much. >