CMPSC 101 Demos
CMPSC 101 Home

cout statements - class #2

variables cin - class #2 using variables, declaration statements, sequential flow of control, signpost comments

special operators - class #3, modulus, incrementing operator, compound operator

overflow integer division - class #3

macho rounding - class #4

setf rounding - class #4

if statement - class #5

nested if statements   - class #5

while loop - class #5, sentinel value, flag variable, running total

nested loops - class #5, sequential search, break, exiting completely out of an inner loop

for loop - class #5, can be adapted to a for loop that iterates different determinate amounts

lots of easy functions - class #7, various functions

compute tax function - class #7

round function - class #8, rounding, compute tax, & a void functions

moving on a grid - class #8, using a function that moves a player around a grid

reading from file - class #10

reading and writing files - class #10

reading & appending - class #10, using open function, reading from one file & appending to another

appending to file - class #10, reading from a file & appending to another

reading & writing to files - class #10, reading from a file twice and writing to separate output files

array intro  - class #12

array intro with loop - class #12

sequential search simple - class #12

sequential search finding max value - class #12

binary search - class #12

2D arrays - class #13

2D arrays complete - class #13

using string variables - class #14