Week7

This week, we are learning loops from chapter 5 (5.1 and 5.2). Drawing rectangle and triangle examples as well as the rectangularscan robot example (nested loop examples) are not from the book.

Powerpoint files

loops.ppt

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

sumnums_cpp

sum10nums_cpp

revstring_cpp

palindrome_cpp

fact_cpp

bigfact_cpp

primes_cpp

drawfigures_cpp

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

bigint_h

bigint_cpp

For BigInt class, tvector class files are also needed. Please copy the following two files in the same folder with the BigInt class files.

tvector_h

tvector_cpp