Computer Science 301 - 2002

Programming Language Translation


Practical for Week 7, beginning 25 March 2002

PRACTICAL COVER SHEET

Group Members:

Surname: (PRINT CLEARLY)                     Mark Awarded

Student number: (PRINT CLEARLY)

Signature:



Surname: (PRINT CLEARLY)                     Mark Awarded

Student number: (PRINT CLEARLY)

Signature:


Surname: (PRINT CLEARLY)                     Mark Awarded

Student number: (PRINT CLEARLY)

Signature:



Surname: (PRINT CLEARLY)                     Mark Awarded

Student number: (PRINT CLEARLY)

Signature:


Other people with whom you collaborated (you need not give tutors' names):




Tutor's signature:

Copies of the prac sheet and this cover sheet are also available on the web site for the course.


Executable sizes (EXE files):

TASK 2

Turbo Pascal     SIEVE                          SIEVE1

Free Pascal      SIEVE                          SIEVE1

JPI Modula-2     SIEVE                          SIEVE1

TASK 3

Using cin and cout

Borland C 3.1    SIEVE                          SIEVE1

Borland C 5.5    SIEVE                          SIEVE1

Microsoft C      SIEVE                          SIEVE1

Using scanf and printf

Borland C 3.1    SIEVE                          SIEVE1

Borland C 5.5    SIEVE                          SIEVE1

Microsoft C      SIEVE                          SIEVE1

TASK 7

Using scanf and printf after translation from Modula-2 by compilation with

Borland C 3.1    SIEVE                          SIEVE1

Borland C 5.5    SIEVE                          SIEVE1

Microsoft C      SIEVE                          SIEVE1

Object code (OBJ files)

TASK 2

JPI Modula-2     SIEVE                          SIEVE1

TASK 3

Using cin and cout:

Borland C 3.1    SIEVE                          SIEVE1

Borland C 5.5    SIEVE                          SIEVE1

Microsoft C      SIEVE                          SIEVE1

Using scanf and printf

Borland C 3.1    SIEVE                          SIEVE1

Borland C 5.5    SIEVE                          SIEVE1

Microsoft C      SIEVE                          SIEVE1

TASK 7

Using scanf and printf after translation from Modula-2 by compilation with

Borland C 3.1    SIEVE                          SIEVE1

Borland C 5.5    SIEVE                          SIEVE1

Microsoft C      SIEVE                          SIEVE1

Remember to comment on the differences, and on the maximum sieve possible.

TASK 8

How many solutions are there to the N Queens problem?  Do you see a trend?

    2     3      4      5      6      7      8      9      10     11     12
 .----------------------------------------------------------------------------.
 |      |      |      |      |      |      |      |      |      |      |      |
 `----------------------------------------------------------------------------'


Home  © P.D. Terry