CIS 150 - C++ Programming I
Course Documentation
Programming Assignments
- Input, output, calculations (due 2/4/17)
- Selection, calculations, output formatting (due 2/18/17)
- Repetition (due 2/25/17)
- Functions, input validation (due 3/4/17)
- Functions (due 3/11/17)
- Sequential (text) file I/O (due 4/1/17)
- Arrays (due 4/8/17)
- Arrays, pointers, sorting (due 4/22/17)
- Random access (binary) file I/O (due 5/6/17)
- Classes, objects (due 5/13/17)
Labs
- Input, output, calculations (due 1/28/17)
- Selection, calculation, output formatting (due 2/11/17)
- Repetition, input validation (due 2/18/17)
- Functions, input validation (due 2/25/17)
- Sequential (text) file input/output (due 3/25/17)
- Creating and using arrays (due 4/1/17)
- Pointers and arrays (due 4/1/17)
- Sorting (due 4/8/17)
- Random access (binary) file input/output (due 4/29/17)
- Classes and objects (due 5/6/17)
Example programs from class
- Basic input and output, variables, simple calculations, output formatting
- Hello.cpp: basic output
- Greet.cpp: basic string input and output
- Greet2.cpp: basic string input and output
- CalcArea.cpp: basic numeric I/O with some calculations
- CalcArea2.cpp: basic numeric I/O with some calculations and output formatting
- Jan24a.cpp: simple I/O and calculations
- Jan24b.cpp: reading an entire line of text, mixing getline with cin
- Jan24c.cpp: output formatting
- Input validation
- Example code for handling input errors gracefully
- Selection
- CalcPay.cpp: simple selection using if/else
- WhatsMyGrade.cpp: selection with several if/else branches and ranges
- DidIPassUlator.cpp: selection using a switch statement
- Repetition
- loop1.cpp: counting by 3 from 10 to 56 using while, do/while and for loops
- loop2.cpp: input validation and program continuation using a while loop
- loop3.cpp: demonstration of for loop using accumulator
- loop4.cpp: accumulating user input using do/while loop and sentinel value
- File I/O
- Sequential text file I/O example from class
- Arrays
- Arrays example from class
- Arrays example from class, but with pointer notation
- Arrays example from class, but with pointer notation and fstream references
Return Links
Mr. Klick's Home Page