Question: Problem 1 In this problem you are given an answer key and student responses to questions on a quiz. You must write a program to

Problem 1 In this problem you are given an answer
Problem 1 In this problem you are given an answer key and student responses to questions on a quiz. You must write a program to grade the quiz responses using the answer key. The output will be the number of correct answers and a letter grade (A, B, C, D, F) for the quiz. Input Read a list of characters representing the answer key. This will be 1 or more characters. Also read a second list of 1 or more characters representing the student's responses to the quiz questions. This second list may include spaces if the student failed to answer a question. The number of student responses will equal the number of quiz answers if you count spaces. Data will be entered from console. You do not need to edit the input data. Rerun your application to test each test case. Prompt for the input as shown below. Output The number of correct answers and a letter grade based on the following. Percent Correct Letter Grade 90% - 100% A 80% - 89% B 70% 79% C 60% - 69% D 0% - 59% F Test Data Input Output Enter answer key: abcdabcdab Number correct is 3 of 10 Enter student responses: acd dcadcb Letter grade is F Enter answer key: dcabdd Number correct is 5 of 6 Enter student responses: ccabdd Letter grade is B Enter answer key: abcdccc Number correct is 5 of 7 Enter student responses: cbcdcca Letter grade is C Enter answer key: dddcabab Number correct is 0 of 8 Enter student responses: abcddcba Letter grade is F Additional information: 1. You do not need to handle exceptions. 2. Add your name as a comment in the first line in your source code. Add the following after your name: "Blue #1\

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 Programming Questions!