Please remember to write your full name and i.d. number on every exercise.
You may submit the exercises anytime before the due date to the mailbox of the T.A. or submit it  in class.
(T.A.: Daher Kaiss, mailbox in Schreiber 1st floor).
For a detailed explanation on how to print demo executions of your program press here.

# Exercise 1: Introduction

## Due: 24/12/1998 (postponed to 31/12/98 due to system problems)

Do not forget to use meaningfull identifier-names and explanatory comments.

# Exercise 4: loops, random numbers

## Due: 14/1/1999

Remark: Use the functions random() and randomize() instead of rand() and srand().
Here is an example program using these functions:

#include "iostream.h"
#include "stdlib.h"
#include "time.h"

void main(void)
{
int i,num;

randomize();
cout << "Here are some random numbers between 7 and 40:\n";
for (i=1; i<=10; i++)
{
num = 7 + random(34);
cout << num << endl;
}
}

# Exercise 5: Arrays, Functions

## Due: 28/1/1999

Remark: in exercise 3, there is a typo: the function double sin(double) should not be there at all... (it was copied accidentally from the next exercise).
Exercise (Word).

## Due: 11/2/1999 (posponed by a week)

Remark: Another typo! (how can we do without one...):
if ((r = p % q) == 0) instead of whatever is written on your exs.

Hint: (bonus), you can pass beginning-index and end-index of the sub-array that you wish to sort / merge as parameters to a recursive function.

• Exercise (Postscript).

## Due: 11/2/1999

• Exercise (Postscript,Word).

## Due: 18/2/1999

• Exercise (Word).