CS145 Program 3
- Remember:
- Put sources in a separate file
- Comments are required
This will most probably NOT be the test I use when grading your projects but should be a good indication of how well your program functions.
hp
ap P1
at P1
P1T0
5
wh 5
at P1
P1T1
1
wh 1
at P1
P1T2
2 Read more
Remember, comments are required for programs.
Dr. Osborne has provided a sample program so you can see what your program should function like. Remember to take advantage of this.
Dispose
=============================
WITH Unchecked_Deallocation;
PROCEDURE Dispose IS NEW Unchecked_Deallocation (
Object => ListNode,
Name  => NodePtr);
F( X , Y )
X – Y | x < 0 |
X – Y | y < 0 |
f(x-1,y) + f(x,y-1) | else |
C( N , R )
1 | N == R |
C (N,N) | R == 0 |
C (N-1,R-1) + C (N-1,R) | R > 0 |
0 | else |
Remember you can access array values with ‘First and ‘Last
i.e. A’First and A’Last
If you need help over the weekend (or whenever for that matter) send me email at cs[dot]ta[dot]adam[at]gmail[dot]com (change the [dot] to a ‘.’ and the [at] to a ‘@’). You can ask questions or schedule a appointment to meet.
GenderType:
Add these lines to your employees.ads
PACKAGE Gender_IO IS NEW Enumeration_IO(Enum => GenderType);
USE Gender_IO;
Some of the things you are required to do (in the order I would do them):
REMEMBER:
You will need these files for lab 2.
What you need to do: