Week 6

This week we will talk about loops (while, for) which lets us do repetition in programming. The loops are from Chapter 4 (4.5 – 4.6) of the textbook (Tapestry).

All codes covered in class are given below.

Powerpoint files

loops_all

C++ codes discussed in class (some of them might have been modified in class to show extra features)

stringremove_cpp

sum10nums_cpp

sumnums_cpp

revstring_cpp

palindrome_cpp

fact_cpp

bigfact_cpp

primes_cpp

BigInt class files (from Tapestry source codes); needed for bigfact.cpp

bigint

bigint_cpp

Recitation Material

Recitation06_Stu Recitation06_TA