CIS 150 - C++ Programming I

Course Documentation

Programming Assignments

  1. Input, output, calculations (due 2/4/17)
  2. Selection, calculations, output formatting (due 2/18/17)
  3. Repetition (due 2/25/17)
  4. Functions, input validation (due 3/4/17)
  5. Functions (due 3/11/17)
  6. Sequential (text) file I/O (due 4/1/17)
  7. Arrays (due 4/8/17)
  8. Arrays, pointers, sorting (due 4/22/17)
  9. Random access (binary) file I/O (due 5/6/17)
  10. Classes, objects (due 5/13/17)

Labs

  1. Input, output, calculations (due 1/28/17)
  2. Selection, calculation, output formatting (due 2/11/17)
  3. Repetition, input validation (due 2/18/17)
  4. Functions, input validation (due 2/25/17)
  5. Sequential (text) file input/output (due 3/25/17)
  6. Creating and using arrays (due 4/1/17)
  7. Pointers and arrays (due 4/1/17)
  8. Sorting (due 4/8/17)
  9. Random access (binary) file input/output (due 4/29/17)
  10. Classes and objects (due 5/6/17)

Example programs from class

  1. Basic input and output, variables, simple calculations, output formatting
    1. Hello.cpp: basic output
    2. Greet.cpp: basic string input and output
    3. Greet2.cpp: basic string input and output
    4. CalcArea.cpp: basic numeric I/O with some calculations
    5. CalcArea2.cpp: basic numeric I/O with some calculations and output formatting
    6. Jan24a.cpp: simple I/O and calculations
    7. Jan24b.cpp: reading an entire line of text, mixing getline with cin
    8. Jan24c.cpp: output formatting
  2. Input validation
    1. Example code for handling input errors gracefully
  3. Selection
    1. CalcPay.cpp: simple selection using if/else
    2. WhatsMyGrade.cpp: selection with several if/else branches and ranges
    3. DidIPassUlator.cpp: selection using a switch statement
  4. Repetition
    1. loop1.cpp: counting by 3 from 10 to 56 using while, do/while and for loops
    2. loop2.cpp: input validation and program continuation using a while loop
    3. loop3.cpp: demonstration of for loop using accumulator
    4. loop4.cpp: accumulating user input using do/while loop and sentinel value
  5. File I/O
    1. Sequential text file I/O example from class
  6. Arrays
    1. Arrays example from class
    2. Arrays example from class, but with pointer notation
    3. Arrays example from class, but with pointer notation and fstream references

Return Links

Mr. Klick's Home Page