ECE-1021

HOMEWORK #0

Hello World!

(Last Mod: 27 November 2010 21:38:43 )

ECE-1021 Course Homepage

ECE-1021 Semester Homepage


Objectives


Assignment

Using the C Source Code Template as your starting point, make the necessary modifications to the Header and write a program that prints the following to the screen:

Hello World!

My ID's: "CODE"

Where CODE is replaced with your assigned four letter student identifier. Your program is to print the double-quotes that surround the code.

The Source Code Template contains the function PrintHeader() which is called by the template's main() function. Your programs are expected to call this function so that the header is printed to the screen when the grader runs your program. Note that this is executable code, so any variable declarations you make must go above this code.

Notice that the output of PrintHeader() is indented. The left edge of your output should line up with the header's left edge.

The only function that your program is allowed to use is the putc() function from the Standard I/O Library <stdio.h>. The PrintHeader() function calls other standard library functions - don't worry about that.