Visual Studio 2013 C++ source code for the following program:
Need program that stores the correct answers of a 20 question test in an array. For testing the correct answers will be:
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. D, 19. D, 20. A
It should ask the user to enter answers for each of the 20 questions and their answers should be stored in an array. Input validation should occur so only capital A, B, C, D or lowercase a, b, c, & d can be entered.
After the user's answers have been entered, the program should display a list showing question number answered incorrectly, total number of correct answers and total number of incorrectly answered questions. A message should then display informing user whether they passed or failed (15 correct of 20 is pass).
Create a function named inputAnswers to obtain the 20 user answers.
Create another function called checkAnswers to compare user's answer against the correct answers. The function displays a list showing the question numbers of the incorrectly answered questions and return the number of correct answers.
Create another function called displayResult that takes the number of correct answers as a parameter, determines if the user passed, displays total number of correct answers and displays total number of incorrectly answered questions.
deadline 12 PM Eastern standard time Tuesday 3/4/14. Please test and comment thoroughly as this will become a learning tool.