Question
this is visual studio basic c# not c++ 1. B 11. B 2. D 12. C 3. A 13. D 4. A 14. A 5.
this is visual studio basic c# not c++
1. B 11. B
2. D 12. C
3. A 13. D
4. A 14. A
5. C 15. D
6. A 16. C
7. B 17. C
8. B 18. B
9. C 19. D
10. D 20. A
Create a program that:
1. Creates an array of either character or string that stores the correct answers. The array only has the letter, not the question number. Remember the array index starts at 0.
2. Create a text file called Response.txt that is a simulation of a student answering the questions. Only write the letter answer and only one letter per line. Remember your file must have 20 lines of answers from A, B, C or D. See following example
A
C
B
D
C
3. Your program should read the text file and store the answers in an array.
4. After the students answers are read from the file and stored in the array, the program should compare the array with correct answers and the array with the students answer and determine how many answers are correct and how many are incorrect.
5. The program should display a message indicating whether the student passed or failed. Passing grade is 14 correct answers.
6. The program should then display the total number of correct answers, the total number of incorrect answers, and a list showing the question numbers of the incorrectly answered questions.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started