APS105H: Assignment 0

Assignment 0

Assignment 0 does not contribute towards your final mark, and is due by Saturday January 21 at 11:59 pm. Late submissions will not be accepted, barring exceptional circumstances.

There are no practical Lab sessions for this assignment.

This assignment should be submitted via MarkUs.

Your assignments must follow the style guidelines discussed in the course style guide. Failure to do so may result in deductions.

Note: Assignment 0 is a "half" assignment (the 0.5 of your 5.5 assignments). It is very small, and is not worth any marks. It is intended to refresh your memory regarding the edit-compile-submit process, and should not take more than a few minutes to complete. Even though it is worth 0%, we strongly recommend doing it. This is an opportunity to sort out technical problems (e.g., discovering that your ECF account stopped working over the break), and a chance to try out MarkUs.

You may want to review the Tutorial about UNIX Basics from last term (available on the Lab Assignments page) to refresh your memory. The quick summary: edit a .c file using a text editor (e.g., nedit), then compile it using gcc. For example, you would type gcc -o message message.c to compile the program in the file message.c into an executable program called message.

Introduction

We have seen in class how printf() is used to print text. This assignment makes use of the basic features of printf to print a message to the terminal.

A simple message

Write a program called message.c that prints the following message to the terminal, followed by a newline character:

This is a simple program that prints a simple message.

Submission

Submit the file message.c via MarkUs before the due date. Late submissions will not be accepted.