Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security XI Status And Prospects

Authors: T.Y. Lin, Shelly Qian

1st Edition

0412820900, 978-0412820908

More Books

Students also viewed these Databases questions

Question

Place definitions effectively in your document

Answered: 1 week ago