EE150 - Fall 1996

Programming
Assignment #1


------

This assignment has several parts. The first asks you to log on and send an electronic mail message telling us who you are and why you are taking the course. The second asks you to type in, compile, and execute the first few programs we discuss in class. The third asks you to modify a program that's been written for you.

The due date is: Wednesday, September 4th, 1996 at 6pm. We will not accept any late assignments, period.

What To Do

Part 1: Log onto Wiliki and send your TA (yzhang@wiliki) an electronic mail message. You can use either the elm or pine commands. Your message's subject line must be EE150: ASSIGNMENT #1 (in upper case, and with exactly one space following the colon and the last "T" in "ASSIGNMENT", with nothing following the #1). The reason for this pickiness is that your mail message will be automatically processed to give you credit for this part of the assignment.

The message body should have your name on the first line, your social security number on the second line, and empty third line, and then a brief paragraph telling us why you are taking the course and how much prior computing experience you have had (if any).

The point of this part of this assignment is to familiarize yourself with sending e-mail, as that's the primary mechanism by which we expect you to ask questions and to receive information about how you are doing in the course.

Please make sure that you send this mail message from your Wiliki account and not from an account on some other machine, such as "uhunix". Messages from machines other than Wiliki will be ignored.

Part 2: Create a file containing the program welcome2.c that is on page 7 of the text. Compile this file and run the resulting executable program. Make sure its output is IDENTICAL to the output in the text (no typos, no extra spaces, and so on).

Part 3: Create a file first.c that an identical copy of welcome2.c. The modify the program to print the message below (instead of its current welcoming message):

This is my first C program.
Make sure the program prints exactly this message and nothing else!

Part 4: Create a file second.c that an identical copy of first.c. Then modify the program to print the message five times, changing the word "first" to "second". That is, the program should now print:

This is my second C program.
This is my second C program.
This is my second C program.
This is my second C program.
This is my second C program.

What To Turn In

To get credit for this assignment, you must send us mail (as mentioned in Part 1) and then electronically turn in the three files you created in Parts 2 through 4: welcome2.c, first.c and second.c.

To turn in your program, you need to use the grade command on wiliki. For this assignment, you should turn in your program using the command:

grade -1,ee150 welcome2.c first.c second.c
The -1 tells the grade command which assignment you are turning in (assignment #1), the ee150 tells it your class (EE150, so the programs get sent to the EE150 professor and not to the professor of some other class), and the ".c" files are the source files you are actually turning in. Please make sure you type in the command exactly as it shown above.

Your programs will be graded by correctness by the computer. After you turn them in, the computer runs your programs and compares the output they produce against the output it expects. The computer is extremely picky. It will complain if your output doesn't exactly match ours! It complains softly about spacing problems (like extra blank lines or missing spaces or tabs). It complains more vocally about simple typos (characters in lower case that should be uppercase or characters it expects to see but doesn't). And it complains loudly about any other problems (such as more complicated typos or just generally wrong results). Your grade is assigned based on how much and how loudly the computer complains. What that means is you need to check your output character by character against the expected output to make sure that it matches. If it doesn't, you won't get a good score.