Lecture notes for the Introduction to Computer Science for non-majors by
James Tam
Return to the course web page
CPSC 217: Practice Assignments
Non-decimal based number systems, binary math:
[
Practice examples
] [
Solutions
]
[
More practice examples by Jordan Kidney
] [
Solutions
]
Compilation and logic errors, testing of programs:
[A program with syntax and logic errors] [Solution]
Input and formatting of output:
[
Point of sale system
] [
Solution
]
[
Wage tabulator
] [
Solution
]
Decision making, loops, program documentation
[
Grade calculator
] [
Solution: description
] [
Solution: program code
]
Problem decomposition, modular design
[
Geometry program
] [
Solution
]
[
Grade calculator
] [
Solution
] [
Solution: program code
]
1D arrays
[
Word checker
] [
Solution: program code
]
2D arrays
[
The game of life
] [
Solution: program code
]