CMPSC 101 Demos
CMPSC 101 Home

Class #1

hello world

Class #2

cout statements

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

Class #3

special operators - modulus, incrementing operator, compound operator

overflow integer division -

Class #4

macho rounding -

setf rounding -

Class #5

if statement -

nested if statements   -

while loop - sentinel value, flag variable, running total

for loop - can be adapted to a for loop that iterates different determinate amounts

Class #6

lots of easy functions - various functions

compute tax function -

Class #8

round function - rounding, compute tax, & a void functions

random numbers - using the rand library function.

moving on a grid - using a function that moves a player around a grid

Class #9

reading from file -

reading and writing files -

Class #10

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

appending to file - reading from a file & appending to another

reading & writing to files - reading from a file twice and writing to separate output files

Class #12

array intro  -

array intro with loop -

sequential search simple -

sequential search finding max value -

binary search -

Class #13

using string variables -