
Postlab Activities
Exercise 1: Write a program to grade a set of true/false tests. There are 15 true/false
questions. True is represented by T, and false is represented by F. The key to the quiz is
on file quiz.dat, where it is followed by the student responses. Each student’s name
(maximum of 15 characters) immediately follows the student’s last answer. For each
student, write out the name followed by the number answered correctly and the
number missed. Use stream failure to terminate processing.
Exercise 2: An organization that your little cousin belongs to is selling low-fat
cookies. If your cousin’s class sells more cookies than any other class, ...