Introduction to Computer Science

Instructor: Jeremy Gottlieb
Office: Lentz Hall 328-E
Phone: x5943
Office hours:

  • Monday - 2-4pm
  • Tuesday - 10-11am
  • Wednesday - 2-4pm
  • Other times by appointment

    Final Projects

    Your final project is to write a program that allows a user to play a game. You can make it a one- or two-human game, but a game played against the computer will earn you bonus points.

    The game does not have to be complex (i.e., no chess). Some good examples of games would be blackjack, Connect Four, hangman, Mastermind, Boggle, Battleship, etc.

    Your final project is due at the final exam period, which is Tuesday, May 18, from 1:30-3:30pm. At this time, you should be prepared to present your program to me, giving me a rundown of what the program does and how it does it. You should also e-mail me the source code of your program before this time.

    For those of you thinking of using card games, I'm including a simple function that randomly returns one card if you click here.


    Take Home midterm

    Due Tuesday, April 27, at 4:00 pm



    Practice exam

    The practice exam is here. I'll post an answer key on Monday.


    Purpose of the course

    Computer programs are all around us. The web browser you are using to read this web page is a program. The operating system running on your computer is a program. Your e-mail reader and instant messager are both programs.

    The purpose of this course will be to understand how to write computer programs to solve problems and accomplish tasks. To accomplish this, we will be learning the C++ programming language.


    Homework assignments

    Assignments with a * next them have solutions posted.

    Homework 11: Programming problem 11.2 (pp. 625-626). - Due 5/4/04

    Homework 10: More work with arrays - Due 4/20/04

    Homework 9: Using arrays - Due 4/6/04

    Homework 8: Working with files - Due 3/30/04

    Homework 7: Reading and understanding code - Due 3/25/04

    Homework 6: Programming problem 5.5 (page 258) - Due 3/9/04
    Note - In addition to what the problem says, I want the program to run until the user tells it to quit.

    Homework 5: Programming problem 8.3 (page 434) - Due 3/4/04

    *Homework 4: Craps - Due 3/2/04

    *Homework 3: Programming problems 6.1 and 6.2 from the book - Due 2/26/04
    Solutions: 6.1 and 6.2.

    *Homework 2: Using functions - Due 2/17/04

    *Homework 1: Using Visual Studio - Due 2/10/04


    Daily labs

    Frequently, we will spend the latter half of class working on a program designed to help you practice the concepts discussed during that class period. If you miss class, it is still your responsibility to write the lab program. As labs are done, those assignments will be listed here.

    Lab 12: Using two-dimensional arrays - 5/4/04

    Lab 11: Using structs - 4/29/04

    Lab 10: More using arrays with functions - 4/15/04

    Lab 9: Using arrays with functions - 4/13/04

    Lab 8: Yet more arrays - 4/8/04

    Lab 7: More arrays - 4/6/94

    Lab 6: Arrays - 3/30/04

    Lab 5: While loops - 2/24/04

    *Lab 4: Practice using if - 2/19/04

    *Lab 3: If statements - 2/17/04

    *Lab 2: Functions and variable types - 2/12/04

    *Lab 1: Reading into variables from the keyboard - 2/10/04


    Important Documents

    Course policies

    Course calendar



    Last modified: 2/24/04, 11:30am