Week 7

Next week we will have our first midterm exam. Hence we solved some midterm questions and could not cover too many new topics but continued with loops. We covered the factorial example and also used the BigInt class when the result of factorial overflowed. We will finish the remaining examples below next week.

Powerpoint files

loops_all

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

fact_cpp

bigfact_cpp

primes_cpp

drawfigures_cpp

multiply_cpp

rectangularscan_cpp

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

bigint

bigint_cpp