Comp 170

Programming Assignment 4

Test Writer and Reader

100 Points

 

This assignment requires each student to write two programs, one for a teacher one for a student.   The teachers program, “Test Writer”, will be used to create tests and save them to files to be administered later.  The students program, “Test Taker”, will read the test file, get an answer to each question from the student and grade the test.

 

Three files will be submitted with this program.

1.      Test Writer.cpp

2.      Test Taker.cpp

3.      Test Tags.h

 

 

Test File example

<MULTIPLE_CHOICE>

Who is the president of Harding?

<ANSWER>

Bob Hope

<ANSWER>

Dana Steil

<CORRECT_ANSWER>

Dr. Burks

<ANSWER>

George Bush

</MULTIPLE_CHOICE>

 

<TRUE_FALSE>

Cows can fly.

<FALSE>

</TRUE_FALSE>

 

<TRUE_FALSE>

Cows can moo.

<TRUE>

</TRUE_FALSE>