Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, Thank you for your help. High ratings will be given. Exam Grader- Vector Version Rewrite Homework 7a, assuming that you have no idea what

image text in transcribedimage text in transcribed

Hello, Thank you for your help. High ratings will be given.

Exam Grader- Vector Version Rewrite Homework 7a, assuming that you have no idea what the size of the CorrectAnswer file is. Since you don't know how big the file is (i.e. how many multiple choice questions there were to grade), then a better choice of sequence containers might be the vector instead of the array. Use the same files, CorrectAnswers.txt, and StudentAnswers.txt, as before but this time determine the number of questions to grade from the size of the Vector that you make when you load all CorrectAnswers.txt into the CorrectAnswer Vector. You will then want to check to be sure that the StudentAnswers.txt file contains the same number of answers as the CorrectAnswers file, when you load those into a second Vector holding StudentAnswers. Below are the requirements for this progranm . The output should look the same as that in Homework 7A Name your program: YourName-Hwrk07B.cpp A list of the questions (by number) missed by the Student, showing the correct answer, and the incorrect answer provided by the student for each missed question. . The total number of questions missed. . Name your program: YourName-Hwrk07A.cpp .Also, always be sure that your name appears as a comment at the top of your . Your program should test to be sure that there are the same number of answers The percentage of questions answered correctly Make sure your name is displayed along with your data. progranm given in the StudentAnswers.txt file as there are Questions in the CorrectAnswers.txt file. o If there are not, then the program should stop, displaying on the screen that StudentAnswers.txt file does not have the same number of answers as there are questions. You can use a cin.get(); to hold the error display on the screen Be sure to use Vectors, not Arrays, to obtain your result

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

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions