toggle me

CS145 Program 3

Comments: 0

Program 3 Files

  • Remember:
    • Put sources in a separate file
    • Comments are required

CS145 Program2 Test

Comments: 0

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


CS145 Program 2 Files

Comments: 0

Program 2 files

Program 2 Description

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.


CS145 Lab4 – Doubly Linked Lists

Comments: 0

Lab files

Lab Description

Dispose

=============================

WITH Unchecked_Deallocation;

PROCEDURE Dispose IS NEW Unchecked_Deallocation (
Object => ListNode,
Name   => NodePtr);


CS145 Lab3

Comments: 0

Lab 3 Files

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


Email Help

Comments: 0

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.


CS145 Program 1

Comments: 0

Program 1 Description

Program 1 Files

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):

  1. Write a GET function in your IO package
  2. Write your loop to get the information from the hour.dat file
  3. Write the rest of the IO package (PUT and PutPayrollHeader)
  4. Write the rest of the code that deals with calculation

REMEMBER:

  1. You MUST comment programs
  2. Please put sources (and any other notes) into a separate file, not in the email body

CS145 Lab 2

Comments: 0

You will need these files for lab 2.

Lab2.zip

What you need to do:

  1. Add ID field to the Cat record. Remember to make a new subtype.
  2. Add two functions to the Cats package. (Hint: They “help” the generic Maximum_Array_Generic function)
  3. Write a child package for cat io. (Pretty much the similar to what you did for lab 1)
  4. Write a generic function to determine if a value is in an array. [ In_Array_Generic ]