chatper 5 homework: Write ups and 3 prgrams