CSC100::Code::Spring 2017
Introduction to Computer Science (C++)

NAMEWEEK#DESCRIPTION
Time.cpp 13 This program demonstrates the use of a class and objects.
ClassString.cpp 13 This program demonstrates the use of class string from the STDC++ Library.
CodeSnippets 12/13 #CodeSnippets0 | #CodeSnippets1 | #CodeSnippets2 | #CodeSnippets3
Dog.cpp 12 This program demonstrates the use of a class and objects.
StructStudent.cpp 12 This program helps introduct user defined types using struct (structures).
LotteryTickets.cpp 12 This program uses a two-dimensional array.
bingo.cpp 12 This program implements a single-player bingo game.
BingoCard.cpp 12 This program was used to introduce 2-dimensional arrays.
arrays6.cpp 12 This program demonstrates array-of-strings (character pointers).
arrays5.cpp 11 This program demonstrates clobbering variables by looping beyond the end of an array.
pointer0.cpp 11 This program is used to introduce pointers.
rotpunct.cpp 11 This program "rotates" punctuation characters.
ispunct.cpp 11 This program prints the "punctuation" characters as defined by the STDC Library ispunct() function.
arrays4.cpp 11 This program introduces encryption using rot13 (and rot5 and our own punctuation rot). It is a continuation of arrays0.cpp and arrays1.cpp and arrays2.cpp. and arrays3.cpp.
factorial.cpp 10 This program computes the factorial of a number using recursion.
plane.cpp 10 This program uses a 2-dimensional array to represent the seats on a plane and randomly picks passengers to be kicked off.
arrays3.cpp 10 This program contains an implementation of a recursive binary search. It is a continuation of arrays0.cpp and arrays1.cpp and arrays2.cpp.
arrays2.cpp 9 This program introduces the topic of arrays. It is a continuation of arrays0.cpp and arrays1.cpp.
random.cpp 9 This program introduces the topic of pseudo random numbers.
arrays1.cpp 9 This program introduces the topic of arrays. It is a continuation of arrays0.cpp.
arrays0.cpp 9 This program introduces the topic of arrays.
refparams.cpp 8 This program demonstrates reference variables and reference parameters.
i2fi.cpp 8 This program is used to help learn about functions and reference parameters. The program converts total inches to feet and inches.
scope.cpp 8 This program demonstrates the scope (lifetime and visibility) of variables and functions.
funcs1.cpp 8 Another program that uses functions that in turn take arguments and return values.
fi2i.cpp 8 This program converts feet and inches to total inches. It is used to help learn about functions.
hailstone.cpp 8 Prints the "number of halving and tripling steps to reach 1 in '3x + 1' problem."
CompoundAssignmentOps.cpp 8 This program demonstrates the use of the arithmetic compound assignment operators (+= -= *= /= %=).
letters.cpp 7 This program is used to help introduce the topic of functions.
sqrtpow.cpp 7 This program demonstrates the STDC Library's sqrt() and pow() functions.
IncrementDecrementOps.cpp 7 This program demonstrates the use of the increment (++) and decrement (--) arithmetic operators.
Switch.cpp 7 This program demonstrates the use of the switch selection control statement.
GoToElevator.cpp 6 A version of Elevator.cpp that uses goto statements instead of repetition control statements.
Elevator.cpp 6 This program offers an example of using for loops.
narcissistic.cpp 6 This checks to see if a number is a Narcissistic number. {narcissistic2.cpp checks multiple numbers per execution}
f10for.cpp 6 Program demonstrates a counter-controlled for loop.
ForAdder.cpp 6 This program introduces the for repetition control statement using a sentinel-control loop. Note: This code was written during class (fall'09).
f10do.cpp 6 Program demonstrates a counter-controlled do while loop.
pi.cpp 6 This program prints a Pi Day countdown using a do-while.
DoAdder.cpp 5/6 This program introduces the do-while repetition control statement using a sentinel-control loop.
f10while2.cpp 5 This program demonstrates nested loops.
f10while.cpp 5 This program demonstrates a counter-controlled while loop.
Adder.cpp 5 This program introduces the while repetition control statement using a sentinel-control loop.
NewAge.cpp 5 A re-write of Age0.cpp that uses an updated Thurman Age-O-Meter.
andor.cpp 5 An interactive program to help about logical operators and truth tables.
ifcode.cpp 5 This program uses if statements and else clauses along with the relational and logical operators.
logicalops.cpp 5 An interactive program to help about logical operators and truth tables.
calc.cpp 4 An implementation of a simple calcuator that uses if statements and the else clause and the logical operators. [written during class]
if2.cpp 4 This program was written during class to help introduce relational operators, the if statement and the else clause.
if.cpp 4 This program was written during class to help introduce relational operators, the if statement and the else clause.
Expressions1.cpp 4 A re-write of the Expression0.cpp which contains a bunch of complicated EXPRs used to study precedence and associativity.
Expressions0.cpp 4 This program contains a bunch of EXPRs that are used to examine the precedence and associativity rules followed by the compiler.
years.cpp 3 This program demonstrates the use of variables and arithmetic operators. {years2.cpp and years3.cpp}
ArithOps.cpp 2 This program demonstrates the use of arithmetic operators.
Constants.cpp 2 This program uses constants and reviews how variables are are defined.
PrimitiveTypes.cpp 2 This program demonstrates how to define variables using the primitive data types of the language.
template.txt 1 This is a template that can be used to start new C++ program files.
BadHelloWorld.cpp 1 A C++ version of the "hello, world" program that is written using poor programming style.
HelloWorld.c 1 The "hello, world" program written in C.
HelloWorld.cpp 1 The "hello, world" program written in C++.


Creator: Gerald Thurman [gthurman@gmail.com]

<-- funcs4.cpp 7 This program demonstrates default arguments. funcs3.cpp 7 This program demonstrates reference variables and reference parameters. funcs2.cpp 7 This program demonstrates function overloading. LogicalOps.cpp 4 This program demonstrates the use of the logical operators. RelationalOps.cpp 4 This program demonstrates the use of relational operators. Expressions3.cpp 3 A re-write of the Expression2.cpp which contains a bunch of complicated EXPRs used to study precedence and associativity. The EXPRs include the use of relational operators. Expressions2.cpp LongStringLiteral.cpp 3 This source code demonstrates various techniques that can be used when you need to print (or use) long string literals. funcs0.cpp 8 This program introduces the use of user (i.e. programmer) defined functions. RandomInts.cpp 9 This program introduces the for repetition control statement. It also uses the rand() function from the STDC Library. -->