subject

1. using arrays: driver's license exam grader system the local drivers license office has asked you to write a program that grades the written portion of the drivers license exam. the exam has 10 multiple choice questions. here, are the correct answers: 1. b 6. a2. d 7. b3. a 8. a4. a 9. c5. c 10. dyour program should store the correct answers shown above in a character array named "correctanswers" (in this assignment you are not doing any string manipulation, so the "answer" array can be a simple character array, not a string).then, it should ask the user to enter the student's answers for each of the 10 questions, and the answers should be stored in another array named "studentanswers"in order to pass the exam a student must answer at least 8 questions out of 10. so, the "grade" function checks the entries in both array and determine if the student has answered at least 8 questions correctly. if student has passed the exam, your program should display the following messagecongratulations! you have passed exam. total number of correct answers: < > total number of incorrect answers: < > if student has failed the exam, your program should display the following messagesorry, you have not passed the exam! total number of correct answers: < > total number of incorrect answers: < > input validation: only accept the letters a, b, c, or d as answers. if user enters any other letter, your program should display a message indicating a, b, c, and d are the only valid inputs. if user enters invalid input more than three times display the message "good bye" and exit the program.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 07:00, MissSmartyPants88
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
image
Computers and Technology, 23.06.2019 20:00, emmaraeschool
Me ajude por favor , coloquei uma senha e não consigo tira-la no chorme
Answers: 2
image
Computers and Technology, 24.06.2019 00:00, Amrinderkhattra
Visualizing a game of “tag” to remember the meaning of contagious
Answers: 3
image
Computers and Technology, 24.06.2019 00:40, sierravick123owr441
Use a software program or a graphing utility with matrix capabilities to solve the system of linear equations using an inverse matrix. x1 + 2x2 − x3 + 3x4 − x5 = 6 x1 − 3x2 + x3 + 2x4 − x5 = −6 2x1 + x2 + x3 − 3x4 + x5 = 3 x1 − x2 + 2x3 + x4 − x5 = −3 2x1 + x2 − x3 + 2x4 + x5 = 5
Answers: 3
You know the right answer?
1. using arrays: driver's license exam grader system the local drivers license office has asked you...

Questions in other subjects:

Konu
Mathematics, 21.11.2019 01:31