Updated for Spring 2006


CS 111 Assignment 1

  1. The homework assignment itself
  2. Files to print out and bring to lecture and recitation
  3. Preparing to hand in your homework


  1. The homework assignment itself

    First, make sure you have an account on the Unix machine venus, as instructed in the lab/recitation.

    Then follow the instructions in the following two tutorials, which you should print out:

    Work first on the Tutorial on SSH, Pine Email, and SFTP, up to Part 3, in which you send email to your recitation instructor's venus account from your venus account. Then, while waiting for your instructor's reply, begin work on the Tutorial on Unix, vi, gcc, and elementary C++ syntax. A day or two later, reply to your instructor's email reply, as instructed in Part 4 of the Tutorial on SSH, Pine Email, and FTP. After you finish part 6 of the submit the program hello.cpp as instructed in Part 5 of the Tutorial on SSH, Pine Email, and FTP. Then finish the Tutorial on Unix, vi, gcc, and elementary C++ syntax, and submit all your homework files as instructed in Parts 5, 6, and 7 of the Tutorial on SSH, Pine Email, and FTP.

    In Part 9 of the Tutorial on Unix, vi, gcc, and elementary C++ syntax, you will be asked to take notes on compiler error messages, and you will be asked to hand in photocopies of your notes. You should take those notes using a black ink pen, if possible, for ease in photocopying.

    The first homework assignment consists of four parts, which are due on four separate dates as indicated below. The four parts are as follows:

    1. The Tutorial on SSH, Pine Email, and SFTP. parts 1 to 3.) Send an E-mail message to your instructor, from your venus account, using the email address your instructor told you to use for than purpose, by no later than Wednesday, February 8..

    2. The Tutorial on Unix, vi, gcc, elementary C++ syntax, and I/O, parts 1 to 6, and then the Tutorial on SSH, Pine Email, SFTP, parts 4 and 5. Plan to spend at least 8 to 10 hours on this part of the assignment, including at least several hours just practicing vi before you write the program hello.cpp. Submit the file hello.cpp to your instructor, via E-mail from your venus account, as instructed in part 5 of the Tutorial on SSH, Pine Email, and SFTP, by no later than Wednesday, February 15.

    3. The Tutorial on Unix, vi, gcc, elementary C++ syntax, and I/O, parts 7 to 14. Plan to spend at least 8 to 10 hours on this part of the assignment as well. Then, as instructed in part 6 of the Tutorial on Telnet, E-mail, and FTP, submit, via email, a collection of all the listed files, by no later than Tuesday, February 21 (a Queens College Monday schedule). Note that Part 4 will be due on the same day as Part 3.

    4. Submit printouts in recitation on the due date for part 4 of Assignment 1, as instructed in part 7 of the Tutorial on SSH, Pine Email, and FTP. The printouts should be identical to the files you submitted via email. (Note that Part 4 will be due on the same day as Part 3.)

    Be sure to E-mail your homework to the correct address. Note that venus accounts can exchange email only with other venus accounts


  2. Files to print out and bring to lecture and recitation

    Please print out copies of the following tutorials and example files and bring them to lecture and recitation during weeks 1 and 2. However, please do NOT print these out in an on-campus lab. (On-campus printers are to be used only for your homework, i.e. for files YOU wrote, not examples.) If you do not have a computer at home, with a printer, ask a friend or classmate to print out copies of the following files for you, or download them onto a disk and get them printed out a copy center.

    Unless otherwise specified, most of the following files are program examples used in the Tutorial on Unix, vi, gcc, and elementary C++ syntax.


  3. Preparing to hand in your homework

    Assignment 1 consists of four parts, which are to be submitted on the four separte due dates given earlier on this page.

    For part 3 of the homework assignment, the following files should be emailed to your instructor (all attached, together, to one email message):

    1. averageOf3.cpp (part 10 of the Tutorial on Unix, vi, gcc, and elementary C++ syntax)
    2. celsiusToFahrenheit.cpp (part 11)
    3. hypotenuse.cpp (part 14)

    Each of your source code files should include, in a comment at the top, your name (as known to the Registrar's office), your recitation section designation, and your venus accountname.

    E-mail the files file to your instructor. Be sure to send them to the correct E-mail address for your recitation section.

    You should also make printouts of the above-listed files, as instructed in the Tutorial on SSH, Pine E-mail, and SFTP part 7. Your printouts must be stapled together in the order listed above. In addition, at the back of the bundle of printouts, attach photocopies of the error messages you copied down in part 9 of the Tutorial on Unix, vi, gcc, and elementary C++ syntax. Hand in your bundle of printouts in recitation only, nowhere else.


Back to: