Question: Using visual studio 2017 Write a C++ program thatgrades the answers to a true-false quiz given to students. The quiz consists of 5 true-false questions.

Using visual studio 2017

Write a C++ program thatgrades the answers to a true-false quiz given to students. The quiz consists of 5 true-false questions. Each correct a nswer is worth 2 points.

Use main( ) as your driver function. Write main( ) so that it allows the user to run the program as many times as desired, as indicated by input from the user. No data validation is requires for this program.

Write appropriate functions that main( ) calls to accomplish the following tasks:

Read the answer key and the number of students who took the quiz from the user. (Hint - Use a 1-D array for the answer key)

Read the student names from the user. (Hint: Use a 1-D array for the names)

Read and store the answers for each student on the quiz. (Hint: use a 2-D array for the answers)

Calculate the grades. (Hint: Use a 1-D array for the grades)

Display each students name, quiz answers, and grade.

Sample Input:

This program calculates the grades for students taking a true-false quiz.

Please enter the answer key (use uppercase T or F).

Answer #1: ? T

Answer #2: ? T

Answer #3: ? F

Answer #4: ? F

Answer #5: ? T

How many students took the quiz? 4

Please enter the students' names.

Student #1 Name: ? Mike Jones

Student #2 Name: ? John Smith

Student #3 Name: ? Betty Hill

Student #4 Name: ? George Green

Please enter the answers for Mike Jones (use uppercase T or F).

Answer #1: ? T

Answer #2: ? F

Answer #3: ? T

Answer #4: ? F

Answer #5: ? T

Please enter the answers for John Smith (use uppercase T or F).

Answer #1: ? F

Answer #2: ? T

Answer #3: ? F

Answer #4: ? T

Answer #5: ? F

Please enter the answers for Betty Hill (use uppercase T or F).

Answer #1: ? T

Answer #2: ? T

Answer #3: ? T

Answer #4: ? T

Answer #5: ? T

Please enter the answers for George Green (use uppercase T or F).

Answer #1: ? F

Answer #2: ? F

Answer #3: ? F

Answer #4: ? F

Answer #5: ? F

Sample Output:

Student Name Quiz Answers Grade

----------------- ------------------ --------

Key T T F F T 10

Mike Jones T F T F T 6

John Smith F T F T F 4

Betty Hill T T T T T 6

George Green F F F F F 4

Would you like to process another quiz? Please enter 'y' for yes or 'n' for no: y

Another Sample Input:

This program calculates the grade for students taking a true-false quiz.

Please enter the answer key (use uppercase T or F).

Answer #1: ? F

Answer #2: ? F

Answer #3: ? T

Answer #4: ? F

Answer #5: ? T

How many students took the quiz? 2

Please enter the students' names.

Student #1 Name: ? Mary Hall

Student #2 Name: ? Neal Jones

Please enter the answers for Mary Hall (use uppercase T or F).

Answer #1: ? T

Answer #2: ? F

Answer #3: ? T

Answer #4: ? F

Answer #5: ? F

Please enter the answers for Neal Jones (use uppercase T or F).

Answer #1: ? T

Answer #2: ? F

Answer #3: ? T

Answer #4: ? F

Answer #5: ? T

Another Sample Output:

Student Name Quiz Answers Grade

----------------- ------------------ --------

Key F F T F T 10

Mary Hall T F T F F 6

Neal Jones T F T F T 8

Would you like to process another quiz? Please enter 'y' for yes or 'n' for no: n

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!