Programming Challenge: 11 - E x a m Grader (parallel arrays) Use functions as appropriate to perform the various tasks r

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Programming Challenge: 11 - E x a m Grader (parallel arrays) Use functions as appropriate to perform the various tasks r

Post by answerhappygod »

Programming Challenge: 11 - E x a m Grader (parallelarrays)
Use functions as appropriate to perform the various tasksrequired.
Use the sample input files provided on Moodle for your screenshot.
As always, prompt the user for the two file names.
As always, output should be appropriately formatted.
Programming Challenge 11 E X A M Grader Parallel Arrays Use Functions As Appropriate To Perform The Various Tasks R 1
Programming Challenge 11 E X A M Grader Parallel Arrays Use Functions As Appropriate To Perform The Various Tasks R 1 (93.63 KiB) Viewed 57 times
Programming Challenge 11 E X A M Grader Parallel Arrays Use Functions As Appropriate To Perform The Various Tasks R 2
Programming Challenge 11 E X A M Grader Parallel Arrays Use Functions As Appropriate To Perform The Various Tasks R 2 (94.03 KiB) Viewed 57 times
11. Exam Grader One of your professors has asked you to write a program to grade her final exams, which consist of only 20 multiple-choice questions. Each question has one of four possible answers: A, B, C, or D. The file Correct Answers.txt contains the correct answers for all of the questions, with each answer written on a separate line. The first line contains the answer to the first question, the second line contains the answer to the second question, and so forth. (Download the book's source code from the Computer Science Portal at www.pearsonhighered.com/gaddis. You will find the file in the Chapter 07 folder.) Write a program that reads the contents of the Correct Answers.txt file into a char array, then reads the contents of another file, containing a student's answers, into a
second char array. (You can use the file StudentAnswers.txt for testing purposes. This file is also in the Chapter 07 source code folder.) The program should determine the number of questions that the student missed, then display the following: • A list of the questions 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 • The percentage of questions answered correctly. This can be calculated as Correctly Answered Questions + Total Number of Questions • If the percentage of correctly answered questions is 70 percent or greater, the pro- gram should indicate that the student passed the exam. Otherwise, it should indicate that the student failed the exam.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply