














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















Compiling: c:/docume~2/jk/desktop/16070/codeso~1/translate_dates.adb (source file time stamp: 2003-09- 24 01:35:00)
GNAT 3.13p (20000509) Copyright 1992-2000 Free Software Foundation, Inc.
Checking: c:/docume~2/jk/desktop/16070/codeso~1/my_type_package.ads (source file time stamp: 2003- 09-24 01:59:20)
28 lines: No errors
GNAT 3.13p (20000509) Copyright 1992-2000 Free Software Foundation, Inc.
Compiling: c:/docume~2/jk/desktop/16070/codeso~1/my_type_package.adb (source file time stamp: 2003- 09-24 02:00:04)
32 lines: No errors
IF x >= 0 THEN x:= x+1; ELSIF x >=1 THEN x := x + 2; END IF ;
IF x >= 0 THEN x := x + 1; END IF ; IF x >= 1 THEN x := x + 2; END IF ;
GNAT 3.13p (20000509) Copyright 1992-2000 Free Software Foundation, Inc.
Checking: c:/docume~2/jk/desktop/16070/codeso~1/my_math_package.ads (source file time stamp: 2003- 09-24 03:27:46)
. ----------------------------------------------------------- . -- Package specified to implement two arithmetic functions . -- Specifier : Jayakanth Srinivasan . -- Date Last Modified : 09/23/ . ----------------------------------------------------------- . . . package My_Math_Package is . subtype Menu_Choice is Integer range 1 .. 3; . . procedure Menu ( . My_Menu_Choice : out Menu_Choice ); . . function Add ( . X : Float; . Y : Float ) . return Float; . . function Multiply ( . X : Integer; . Y : Integer ) . return Integer; . end My_Math_Package;
23 lines: No errors
GNAT 3.13p (20000509) Copyright 1992-2000 Free Software Foundation, Inc.
Compiling: c:/docume~2/jk/desktop/16070/codeso~1/my_math_package.adb (source file time stamp: 2003- 09-24 03:27:46)
GNAT 3.13p (20000509) Copyright 1992-2000 Free Software Foundation, Inc.
Compiling: c:/docume~2/jk/desktop/16070/codeso~1/test_math.adb (source file time stamp: 2003-09- 03:47:18)
Problem S1 Solutions 1.a
1.b
1.c