Last updated : 21 May, 2002
Supplementary Exercise
1. Ex. 4_9
2. Redo Ex.4_10 by using an instantible
CoffeeBag class and compute the total price of 4 bags of different coffee:
Bag
1: Price per pound - 20.5, weight -
2.5 lbs
Bag
2: Price per pound - 11.8, weight -
2 lbs
Bag
3: Price per pound - 5.5, weight -
3.5 lbs
Bag 4: Price per pound - 10.0, weight - 4 lbs
(Ex 5 Solution) |
(Ex 6-21 Solution) |
(Ex 6-23 Solution) |
(Ex 6-23 Solution using ResponseBox and a Loop, can be used as an example for Chapter 7) |
(Ex 8 Solution) |
(Ex 9 Solution) |
Tutorial and Lab Ex. 14
14.3, 14.8, 14.12