comp.lang.ada
 help / color / mirror / Atom feed
* Help with Ada 95
@ 1997-09-30  0:00 masi
  1997-10-02  0:00 ` Richard A. O'Keefe
  1997-10-02  0:00 ` Alan Brain
  0 siblings, 2 replies; 3+ messages in thread
From: masi @ 1997-09-30  0:00 UTC (permalink / raw)



Hi, I'm taking my first Ada 95 class at my college and am having a
problem  with it.  I have small projects due soon, and need some kind of
instructions.  Could anyone help me?  

Also I'm looking for any good book for Ada.  I use "Programming in Ada
95" by Barnes, but it's not very helpful.  
Thanks in advance.

Masi
Here is two programs I'm supposed to make:


1) function Root (A, B, C : in Float) return Float;
--
-- This returns the root of the equation
--      Ax + B = C
-- if one exists, otherwise it raises a Constraint_Error.
--

2) function DigitSum ( N : Positive ) return Positive;
--
-- This returns the sum of the digits of the number N.
--
-- Example: DigitSum (1532) = 11 (since 1+5+3+2 = 11).




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-10-02  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-30  0:00 Help with Ada 95 masi
1997-10-02  0:00 ` Richard A. O'Keefe
1997-10-02  0:00 ` Alan Brain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox