CSC100::Code::Spring 02018
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.
Dog.cpp 13 This program demonstrates the use of a class and objects.
StructStudent.cpp 13 This program helps introduct user defined types using struct (structures).
CodeSnippets 12/13 #CodeSnippets0 | #CodeSnippets1 | #CodeSnippets2 | #CodeSnippets3
LotteryTickets.cpp 12 This program uses a two-dimensional array.
arrays6.cpp 12 This program demonstrates array-of-strings (character pointers).
arrays5.cpp 12 This program demonstrates clobbering variables by looping beyond the end of an array.
pointer0.cpp 12 This program is used to introduce pointers.
arrays4.cpp 12 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 12 This program computes the factorial of a number using recursion.
plane.cpp 12 This program uses a 2-dimensional array to represent the seats on a plane and randomly picks passengers to be kicked off.
arrays3.cpp 12 This program contains an implementation of a recursive binary search. It is a continuation of arrays0.cpp and arrays1.cpp and arrays2.cpp.
bingo.cpp 12 This program implements a single-player bingo game.
BingoCard.cpp 12 This program was used to introduce 2-dimensional arrays.
cstring.cpp 11 Introduces the C strings as being a NULL terminated array-of-char.
merge.cpp 11 Merges an array of negative numbers sorted in descending order and an array of positive numbers sorted in ascending order into an array that is in ascending order.
arrays2.cpp 11 This program introduces the topic of arrays. It is a continuation of arrays0.cpp and arrays1.cpp.
arrays1.cpp 11 This program introduces the topic of arrays. It is a continuation of arrays0.cpp.
arrays0.cpp 11 This program introduces the topic of arrays.
refparams.cpp 11 This program demonstrates reference variables and reference parameters.
scope.cpp 11 This program demonstrates the scope (lifetime and visibility) of variables and functions.
noglobal.cpp 10 This program introduces the topic of scope.
global.cpp 10 This program introduces the topic of scope.
i2fi.cpp 10 This program is used to help learn about functions and reference parameters. The program converts total inches to feet and inches.
fi2i.cpp 10 This program converts feet and inches to total inches. It is used to help learn about functions.
Switch.cpp 10 This program demonstrates the use of the switch selection control statement.
funcs1.cpp 9 Another program that uses functions that in turn take arguments and return values.
hailstone.cpp 9 Prints the "number of halving and tripling steps to reach 1 in '3x + 1' problem."
log10.cpp 9 This program demonstrates the STDC Library's log10() function.
sqrtpow.cpp 8 This program demonstrates the STDC Library's sqrt() and pow() functions.
letters.cpp 8 This program is used to help introduce the topic of functions.
GoToElevator.cpp 8 A version of Elevator.cpp that uses goto statements instead of repetition control statements.
Elevator.cpp 7 This program offers an example of using for loops.
narcissistic.cpp 7 This checks to see if a number is a Narcissistic number. {narcissistic2.cpp checks multiple numbers per execution}
triangles.cpp 7 Prints triangles using nested loops. [written during class]
fibonacci.cpp 7 Prints the first few numbers of the Fibonacci integer sequence. [written during class]
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.
DoAdder.cpp 6 This program introduces the do-while repetition control statement using a sentinel-control loop.
f10while2.cpp 6 This program demonstrates nested loops.
f10while.cpp 6 This program demonstrates a counter-controlled while loop.
Adder.cpp 6 This program introduces the while repetition control statement using a sentinel-control loop.
NewAge.cpp 6 A re-write of Age0.cpp that uses an updated Thurman Age-O-Meter.
andor.cpp 6 An interactive program to help about logical operators and truth tables.
ifcode.cpp 6 This program uses if statements and else clauses along with the relational and logical operators.
generations.cpp 6 This program maps birth year to generation.
calc.cpp 6 An implementation of a simple calcuator that uses if statements and the else clause and the logical operators. [written during class]
if1.cpp 4 This program helps introduce relational operators, the if statement and the else clause. {from 2016: if2.cpp | if.cpp}
if0.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 4 This program demonstrates the use of variables and arithmetic operators. {years2.cpp | years3.cpp}
arithmetic.cpp 4 This program demonstrates doing some real world arithmetic.
ArithOps.cpp 3 This program demonstrates the use of arithmetic operators.
Constants.cpp 3 This program uses constants and reviews how variables are are defined.
PrimitiveTypes.cpp 3 This program demonstrates how to define variables using the primitive data types of the language.
1089.cpp 3 This program reverses the digits of a 3-digit number.
BadHelloWorld.cpp 2 A C++ version of the "hello, world" program that is written using poor programming style.
template.txt 1 This is a template that can be used to start new C++ program files.
HelloWorld.cpp 1 The "hello, world" program written in C++. [C version]


Creator: Gerald Thurman [gthurman@gmail.com]