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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e99ea9c9d228f6b8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-16 21:27:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: Andrew Newsgroups: comp.lang.ada Subject: Re: interest computing problem Date: Tue, 16 Sep 2003 23:26:23 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:42600 Date: 2003-09-16T23:26:23-05:00 List-Id: tmoran@acm.org wrote: >>>hoping this is a simple error that I'm overlooking.. >> >>Your program appears to be correct to me. What were you expecting? > > Perhaps he didn't realize that "What is the interest you will receive? " > is highly ambiguous and in the one case he entered 25, indicating 25%, > and in the other .25, which was interpreted as 1/4%. actually that a very ambiguous statement.. and regrettably I didn't properly document this program when I was in college. but I do believe that the interest rate is to be entered in the not decimal format. i.e. 25% is entered as 25