Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
**Sample Input/Output**
Enter the answer key.
Answer 1: ? A
Answer 2: ? C
Answer 3: ? D
Answer 4: ? C
Answer 5: ? APlease enter the information for Jones, Paul:
Answer 1: A
Answer 2: C
Answer 3: D
Answer 4: C
Answer 5: A
Please enter the information for Smith, Mary:
Answer 1: A
Answer 2: C
Answer 3: D
Answer 4: B
Answer 5: A
Please enter the information for Land, Chris:
Answer 1: C
Answer 2: D
Answer 3: B
Answer 4: C
Answer 5: A
Please enter the information for Ball, Lee:
Answer 1: A
Answer 2: B
Answer 3: D
Answer 4: C
Answer 5: A
Please enter the information for Hill, Nathan:
Answer 1: A
Answer 2: C
Answer 3: B
Answer 4: A
Answer 5: B
Please enter the information for Rowe, Steve:
Answer 1: A
Answer 2: C
Answer 3: D
Answer 4: C
Answer 5: A
Please enter the information for Dunn, Bob:
Answer 1: A
Answer 2: B
Answer 3: D
Answer 4: C
Answer 5: A
Please enter the information for Hall, Bill:
Answer 1: A
Answer 2: C
Answer 3: D
Answer 4: A
Answer 5: B
Please enter the information for Miles, Sue:
Answer 1: A
Answer 2: C
Answer 3: D
Answer 4: B
Answer 5: B
Please enter the information for Adams, Jerry:
Answer 1: A
Answer 2: C
Answer 3: D
Answer 4: C
Answer 5: A*******************
My question is how could I compare the answer key with the user input? The grade is on a 10 point scale and depending on which answers are correct with the answer key that determines the student's overall grade. I have to display it in a table. I understand that arrays are needed but I don't understand how I am supposed to be able to accomplish this. If tutorials on how to solve this can be suggested that would be immensely helpful as well!
How would I display the students answer choices as well as the answer key in a table? Also how could I determine the student's grades?
Help would be greatly appreciated and if my problem is unclear I can send the word document which lists the requirements.

![]() |
Regex / Pattern Matching ...
|
Loopinig batch file using...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |