filmov
tv
Java Programming Challenge Part 1: Driver's License Test Evaluation (Java arrays, loops)

Показать описание
Java Programming Challenge Part 1: Driver's License Test Evaluation (Java arrays, loops)
In this video we create all the necessary Java arrays and loops.
Driver’s License Office asked you to write a program that grades the written portion of the driver’s license exam.
The exam has 20 multi choice questions. Here are the correct answers:
1. B 2. D 3. A 4. A
5. C 6. A 7. B 8. A
9. C 10. D 11.B 12. C
13. D 14. A 15. D 16. C
17. C 18. B 19. D 20. A
Your app should store the correct answers in an array. It should ask the user to enter the student’s answers for each of the 20 questions and the answers should be stored in another array.
After the answers have been entered, the program should display a message indicating whether the student passed or failed the exam. Student must answer 15 of the 20 questions to pass the exam. It should then display the total number of correctly answered questions, the total number of incorrectly answered questions, and a list showing the question numbers of the incorrectly answered questions.
Input validation: Only accept the letters A, B, C or D as answers.
Learning to code? Follow my Java tutorials for beginners. I do a lot of Java programming challenges and Java projects as part of my homework - every day!
If you are learning to program, nothing beats solving real programming exercises and coding challenges.
So don't forget to subscribe, as I release new programming videos frequently!
In this video we create all the necessary Java arrays and loops.
Driver’s License Office asked you to write a program that grades the written portion of the driver’s license exam.
The exam has 20 multi choice questions. Here are the correct answers:
1. B 2. D 3. A 4. A
5. C 6. A 7. B 8. A
9. C 10. D 11.B 12. C
13. D 14. A 15. D 16. C
17. C 18. B 19. D 20. A
Your app should store the correct answers in an array. It should ask the user to enter the student’s answers for each of the 20 questions and the answers should be stored in another array.
After the answers have been entered, the program should display a message indicating whether the student passed or failed the exam. Student must answer 15 of the 20 questions to pass the exam. It should then display the total number of correctly answered questions, the total number of incorrectly answered questions, and a list showing the question numbers of the incorrectly answered questions.
Input validation: Only accept the letters A, B, C or D as answers.
Learning to code? Follow my Java tutorials for beginners. I do a lot of Java programming challenges and Java projects as part of my homework - every day!
If you are learning to program, nothing beats solving real programming exercises and coding challenges.
So don't forget to subscribe, as I release new programming videos frequently!