Computing.Net > Forums > Programming > Programming Arrays C++

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Programming Arrays C++

Reply to Message Icon

Name: sudokulord
Date: December 2, 2008 at 06:06:55 Pacific
OS: C++
CPU/Ram: Windows
Product: Windows
Comment:

**Sample Input/Output**
Enter the answer key.
Answer 1: ? A
Answer 2: ? C
Answer 3: ? D
Answer 4: ? C
Answer 5: ? A

Please 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.




Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Regex / Pattern Matching ... Loopinig batch file using...



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Programming Arrays C++

C programming (array) www.computing.net/answers/programming/c-programming-array/6811.html

programming in C++ www.computing.net/answers/programming/programming-in-c/4128.html

beginners programming in c www.computing.net/answers/programming/beginners-programming-in-c/11037.html