I need help with coding the following Driver\'s License Exam program for Visual
ID: 3767792 • Letter: I
Question
I need help with coding the following Driver's License Exam program for Visual Basic 2015. Please assist:
- Create one array.
- Create the form with 20 textboxes. when the user presses "score exam" take the 20 textbook values and load them into a second array.
- Create three counter variables, one for invalid answers, one for correct answers and one for incorrect answers.
- Then loop through the second array and inside the loop do two things, first check for the letters A,B,C, or D, if the letter entered is not a valid answer add one to the invalid answers counters. If the value entered is and A,B,C, or D then take the value from the user and compare it to the same array position in the answers array, if they match then add one to correct counter, if they do not match, add one to the incorrect counter.
- When you get all 20 answers checked then display the 3 counters and let the user know if the exam is passed. You may want to review the use of ToUpper or ToLower string method so that you can make sure that the small letter a matches the capital letter A.
The program should not care if the user enters lower case, upper case or a mixture of both. Grading for the 35 points will be: 10 - form, all controls created, proper names and properties, your name . 15 - creation of arrays and the addition of user answers to the array, 5 - validation of user answers and display of the exam results. 5 - Completion of the code, such as input validation, reasonable message display, etc.
Explanation / Answer
reference Link:
http://www.dreamincode.net/forums/topic/227337-help-with-driver-license-exam-code-for-vb/
http://www.dreamincode.net/forums/topic/164528-driver-license-exam/
http://www.dreamincode.net/forums/topic/197883-drivers-license-exam/
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.