anonymous
2009-05-29 21:20:23 UTC
Assuem that you are reading from a data file named progData11.txt which contains two lines. The first line contains the correct answers to a multiple choice test. Each answer is one of the letter A,B,C,D,E. The second line contains the answers of a test taker. Produce three lines of output. The first line is a list of correct ansers. The second is a list of the test taker's answers. The third line is a list of + or - symbols. If a question is answered correctly, a + sign should be printed. If a question is answered incorrectly, a - sign should be printed. Also, the percentage of correct answers should be printed.
Ex.
(data file reads)
ABCDEABCDE
EDCBAEDCBA
(output)
A B C D E A B C D E
E D C B A E D C B A
- - + - - - - + - -
percentage correct = 20
[[[I really appreciate any tips, not asking for an entire program just something to get us started because I dont remember any of this stuff. Its a tough nut but if you think you can crack it have at it. thanks guys]]]