Question: Use C++ to write a program that stores 10 answers in an array. It should ask the user to enter the answers to the 10

Use C++ to write a program that stores 10 answers in an array. It should ask the user to enter the answers to the 10 questions. Then the progarm should display the correct answers and tell the user if they passed or failed.

correct answers

1A 2D 3C 4 B 5 A 6B 7A 8D 9C 10A

Algorithum

1 In the main function declarevariables needed for the program

2. Use a lop to get the answers from the user in the loop and count the corect answers

3. Use another loop to display correct answers

4. Use if statement to dertmine whether the user passed or failed

Sample input

Enter your answer to question 1 A

Enter your answer to question 2 B

etc

sample output

Here are the correct answers

question 1 A

question 2 B

etc

You answered 5 questions correctly

sorry you failed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!