Create a project workspace and a new .cpp call license. GRCC Driving School has asked you to design a program that grades the written portion of the driver's license exam. The eam hase 10 multiple choice quesitons. Here are the correct answers:
A
C
D
A
B
D
A
A
C
B
Your program should store these correct answers in a character array and allow the user of the program to enter student's answers such as:
char answers[10][2] = {"A", "C", "D", "A", "B", "D", "A", "A", "C", "B"}; //this array stores the correct answers
char student_answers[10][2] = {" "}; // this array is for the student answers
The comparison can then be made within a loop (a must) in order to determine many they got correct. Those scoring 7 or better pass, otherwise they fail. Display the number of correct and wrong; and also whether they passed or fail.
Other features should include the following:
Use loops, switches, and if-elses where appropriate.
Run the program multiple times.
Must use ARRAYS!
Don't forget Range checking, if appropriate.
CLS
1
Expert's answer
2012-11-01T09:53:45-0400
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
Comments
Leave a comment