From: masi@earthlink.net
Subject: Help with Ada 95
Date: 1997/09/30
Date: 1997-09-30T00:00:00+00:00 [thread overview]
Message-ID: <3431E010.4DB9@earthlink.net> (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).
next reply other threads:[~1997-09-30 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-09-30 0:00 masi [this message]
1997-10-02 0:00 ` Help with Ada 95 Alan Brain
1997-10-02 0:00 ` Richard A. O'Keefe
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox