CSCI 102 - Spring 2018 Fundamentals of Computation

In-class Exercises

cpp/scratch

Expressions and cin

cpp/cin/building_floor
cpp/cin/average
cpp/var-expr/iomanip
cpp/var-expr/coins
cpp/var-expr/change
cpp/var-expr/in_n_days
cpp/var-expr/gpa
cpp/var-expr/interp1d

Conditional (if) Statements

cpp/conditionals/extracredit
cpp/conditionals/stoplight
cpp/conditionals/stoplight3
cpp/conditionals/nestedec
cpp/control/compare2
cpp/conditionals/taxbrackets
cpp/conditionals/instock
cpp/conditionals/rps
cpp/conditionals/bill2law

While Loops

cpp/while/whilen
cpp/while/sum50
cpp/while/blastoff
cpp/while/dowhilen
cpp/while/goldilocks
cpp/while/turn360
cpp/while/nodds

For Loops

cpp/for/blastoff
cpp/for/interest
cpp/for/sum-mult-2-5
cpp/for/bottles-wall
cpp/for/rps-bestof3

Nested Loops

cpp/nestedloops/rectangle
cpp/nestedloops/flag
cpp/nestedloops/etox-range
cpp/nestedloops/sphere

Arrays

cpp/arrays/fibonacci
cpp/arrays/sorted
cpp/arrays/alphabet2
cpp/arrays/sumpairs
cpp/arrays/reverse

Functions

cpp/functions/hypotenuse
cpp/functions/etox-fact
cpp/functions/extract-method1
cpp/functions/is-lower-vowel
cpp/functions/is-vowel
cpp/functions/draw-square
cpp/functions/rps

Strings and Passing Arrays

cpp/arraypassing/extra-credit
cpp/arraypassing/search
cpp/cppstrings/prefixes
cpp/cppstrings/suffixes
cpp/cppstrings/excited
cpp/cppstrings/excited-full

Final Practice

cpp/cs102/final/prac-1
cpp/cs102/duplicate