CIS 261 C++ Programming

Program Requirements: True/False Quiz Grader

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" 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. Here is a sample of the data.

Input

The data as described in the Problem Statement. Here are examples of three lines of input.

   TFTFTFTFTTTFFFT
   TFTFTFTFTTTFFFTJoe Jones
   TFTFTFTFTTTFFFFJanet Jerome

Output

Each student's name followed by the number answered correctly and the number missed.

Processing Notes

Your solution must use an integer function to calculate the number of answers correct (or missed).

Deliverables

Use a text file "QUIZ.DAT" as the input data (create your own file or files) and print all output to the screen.

Use functional decomposition and modular programming techniques to divide the problem into appropriate functions.  NO GLOBAL variables are allowed.

 Following the guidelines discussed in class, construct a test set for the program.

Design: (25 points)

Problem Description
Algorithm
Data Structures (show the C++ code for how the data will be stored)
Functional Decomposition (showing structure and function headers)
Test Set Design

Final Program:

Final version of Design Documentation from above (5 pts), PLUS:
Source Code (35 pts)
Sample Output (35 pts)