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,1d7c081f926f119a,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-13 00:45:58 PST Date: Tue, 13 Jan 2004 16:44:15 +0800 From: Cecilia Chew User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Problem from a Newbie Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 219.95.230.217 X-Original-NNTP-Posting-Host: 219.95.230.217 Message-ID: <4003b00c_2@news.tm.net.my> X-Trace: news.tm.net.my 1073983500 219.95.230.217 (13 Jan 2004 16:45:00 +0800) Organization: TMnet Malaysia Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!priapus.visi.com!orange.octanews.net!news.octanews.net!news-out.visi.com!petbe.visi.com!ash.uu.net!news1.tm.net.my Xref: archiver1.google.com comp.lang.ada:4360 Date: 2004-01-13T16:44:15+08:00 List-Id: Hello All, I'm a newbie in Ada. There are a lot of question mark in my mind. I'm now doing a simple program and the desired output is a signal wave as below. * ** ** * * * * * * * * * * * * * ** ** ** And the coding that i have done is as follow. with Ada.Text_Io, Ada.Float_Text_IO; use Ada.Text_Io, Ada.Float_Text_IO; procedure Graph1 is Y : Integer; Max_Point : Float; Min_Point : Float; Pi : Constant := 3.142; begin Max_Point := 1.0; for X in 0 .. 360 loop for r in 0.0 .. Max_Point loop Y := sin (X * 2 * Pi/360); Put ("*"); end loop; end loop; end Graph1; Could someone tell me what are the mistakes in the coding? Error message from the compiler is the 'sin' is undefined. what should i do with this? -- Cecilia Chew c e c i l i a g r e e n l i m e . c o m