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-Thread: 103376,3f1374bc66d2dc03 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g47g2000cwa.googlegroups.com!not-for-mail From: "isaac2004" Newsgroups: comp.lang.ada Subject: Re: creating an array Date: 14 Feb 2006 14:30:40 -0800 Organization: http://groups.google.com Message-ID: <1139956240.451031.216320@g47g2000cwa.googlegroups.com> References: <1139897171.996297.230070@z14g2000cwz.googlegroups.com> <1139951664.264622.240870@z14g2000cwz.googlegroups.com> <1139955455.397334.310790@g43g2000cwa.googlegroups.com> NNTP-Posting-Host: 67.170.5.168 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1139956247 8905 127.0.0.1 (14 Feb 2006 22:30:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 14 Feb 2006 22:30:47 +0000 (UTC) In-Reply-To: <1139955455.397334.310790@g43g2000cwa.googlegroups.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g47g2000cwa.googlegroups.com; posting-host=67.170.5.168; posting-account=bWy1LAwAAAAtVkasDCH0ykMCBMNd-FcL Xref: g2news1.google.com comp.lang.ada:2895 Date: 2006-02-14T14:30:40-08:00 List-Id: >You might think through your requirements one more time. What happens when the first parameter does not match the number of digits in the second parameter? If this condition is never supposed to occur then why enter the first parameter? Simply calculate the number of digits from the number entered and sort its digits. Your split subprogram is a lot of work. You can achieve the same results by converting the number to a string, which is an array of characters. Sort that array and output the results. The 'Image attribute will convert the number to its corresponding string representation. it is for a class i have and the ta told me to create a program that did what i have already explained. he said it was fine just that i needed some work with the split function, but the reason for first prompt number is that it decides the length of the array so extra numbers throw a exception handle that needs to be put in there