Assignment #1


Write a complete C program that prints out:

  1. Your first name followed by your last name, on one line.
  2. On another line, your major.
  3. On yet another line your favorite TV shows.

Put a comment at the top of your source code containing your name and the assignment number. Compile the program and, if it does not compile, correct all errors. Run the program and make sure the output is correct. Note that the comment does not appear in the output.

Look at the hand out pages 14-19 for tips on how to write this program.

Please hand in:
  1. Your .cpp file on a floppy disk or CD (if you know about CD burning, you might want to make it so that you can reuse the CD for other assignments).
  2. A print out of the program listing (source code).
  3. A print out of the output from the program. Refer to this training video on printing out the output.

Place everything inside of an envelope.