Computer Science 301 - 2004

Programming Language Translation


Practical for Week 19, beginning 30 August 2004

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.


Group members:

.------------------------------------------------------------------------.
| TASK 2          | Sieve         | Fibo         |                       |
|                 | Code Size     | Code Size    |                       |
|                 |               |              |                       |
| Free Pascal     |               |              | Sieve limit           |
|-----------------+---------------+--------------+-----------------------|
| Optimized       |               |              |                       |
| Free Pascal     |               |              | Sieve limit           |
|-----------------+---------------+--------------+-----------------------'
| TASK 3          |               |              |
|-----------------+---------------+--------------|
|                 |               |              |
| Borland C 5.5   |               |              |
|-----------------+---------------+--------------|
|                 |               |              |
| Borland C++ 5.5 |               |              |
|-----------------+---------------+--------------|
| TASK 5          |               |              |
|-----------------+---------------+--------------|
|                 |               |              |
| C#              |               |              |
|-----------------+---------------+--------------|
| TASK 6          |               |              |
|-----------------+---------------+--------------+-----------------------.
|                 |               |              |                       |
| Parva           |   N/A         |     N/A      | Sieve limit           |
|-----------------+---------------+--------------+-----------------------'
| Task 7          |               |              |
|-----------------+---------------+--------------|
| Modula-2 via    |               |              |
| Borland C 5.5   |               |              |
`------------------------------------------------'

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

TASK 8

Time taken to execute the Sieve program and the Fibo program


.------------------------------------------------------.
| Sieve: Iterations          | Size of sieve           |
|------------------------------------------------------|
| Fibo:  Upper limit                     |             |
|----------------------------------------+-------------|
|                          |  Sieve      |   Fibo      |
|--------------------------+-------------+-------------|
| Free Pascal              |             |             |
|                          |             |             |
|--------------------------+-------------+-------------|
| Free Pascal (optimized)  |             |             |
|                          |             |             |
|--------------------------+-------------+-------------|
| C++                      |             |             |
|                          |             |             |
|--------------------------+-------------+-------------|
| Modula-2 (via C)         |             |             |
|                          |             |             |
|--------------------------+-------------+-------------|
| C#                       |             |             |
|                          |             |             |
|--------------------------+-------------+-------------|
| Java                     |             |             |
|                          |             |             |
|--------------------------+-------------+-------------|
| Parva                    |             |             |
|                          |             |             |
|--------------------------+-------------+-------------|
| Parva (optimized)        |             |             |
|                          |             |             |
`------------------------------------------------------'


Home  © P.D. Terry