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,4ecb0f680a9045ac,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-02 15:14:05 PST Path: supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!feed2.onemain.com!feed1.onemain.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail From: "Phaedrus" Newsgroups: comp.lang.ada References: <9aaps4$ju92@tech.port.ac.uk> Subject: Re: Dear experts... X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: Date: Mon, 02 Apr 2001 22:12:55 GMT NNTP-Posting-Host: 209.178.103.28 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 986249575 209.178.103.28 (Mon, 02 Apr 2001 15:12:55 PDT) NNTP-Posting-Date: Mon, 02 Apr 2001 15:12:55 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: supernews.google.com comp.lang.ada:6381 Date: 2001-04-02T22:12:55+00:00 List-Id: Oh boy... Got yourself in over your head on some homework, didn't you? Let me guess, you took the homework specification and you sat down with a large caffeinated beverage, and maybe some sugar pills to boot, and you just started hacking, right? Maybe just a little design, if any, and a whole lotta code. Now you're down to a day or so to get it up and running, and it doesn't even compile. *Heavy sigh* So, what's wrong? A lot, that's what. Look, you need to take it slowly, and not try to pound out a lot of code all at once. I said it before, and I'll probably say it again, you've got to get the structure working before you try to get fancy. Got that? DESIGN BEFORE CODE. Okay, specifics: In procedure "Input_Details", why are you trying to treat "A_Product" as an array? You keep trying to get something from A_Product(N). In "Modify", you are trying to use "F" and "Barcode" without ever declaring them. Also, you are trying to call "Find_Product" before it's ever declared. And you are trying to call "Input_Details" without an argument. In "Find_Product", what is "bin_2_dec"? And etcetera. What we have here is a failure to communicate. One of your teachers didn't communicate the need for design, and you've built on his failure. Don't feel too bad, this happens all the time out in the real world. (And it's a good thing, too, I get paid pretty well to clean up messes like these!) Sorry, kiddo, I'm not gonna rewrite your code for you. At least not without payment. Want to fix it? Think spiral ("Design a little, code a little, test a little, design a little...") and start over. You should have it written before bedtime. Phaedrus "WM" wrote in message news:9aaps4$ju92@tech.port.ac.uk... > I am working on a "Supermarket" program. > Really a headache with it... > Need some help from you, even very little help, such as "a wrong variable > declared somewhere". > > Thank you very much... > > >