Your math teacher has asked you to write a program that grades the multiple-choice questions in a Math exam. The exam has 10 multiple-choice questions. Here are the correct answers: 1. A 6. B 2.D 3. B 4.B 5.C 7.A 8. B 9.C 10.D Your program should store the correct answers shown above in a list. It should ask the student to enter her answers for each of the 10 questions, and the answers should be stored in another list. After the student's answers have been entered, the program should display a message indicating whether the student passed or failed the exam. (A student must correctly at least answer 7 of the 10 questions to pass the exam.) It should then display the total number of correctly answered questions, the total number of incorrectly answered questions. Your program must have at least the following functions: 1. getInput(inputList) 2. checkAnswers(userlist, correctAnswerList, rightQuestions, wrongQuestions) *. The getInput function accepts a list and asks the user to input answers to the exam and stores them in the list. You must have an Input Validation loop: Only accept the letters A, B, C, D or a, b, c, d, as answers. *. The checkAnswers function receives 4 parameters; the student's answers the correct answers and an empty list for the student's right answers and an empty list for the student's wrong answers. It compares the values in the correct answers list to the values of the student's list. It updates the student's right answers list and the student's wrong answers list. it returns the number of correct answers to the main function.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

Please send me answer of this question immediately and i will give you like sure sir 

Your math teacher has asked you to write a program that grades the multiple-choice questions in a Math exam. The
exam has 10 multiple-choice questions. Here are the correct answers:
1. A
6. B
2.D
3. B
4.B
7.A
8. B
9.C
10.D
5.C
Your program should store the correct answers shown above in a list. It should ask the student to enter her answers for
each of the 10 questions, and the answers should be stored in another list. After the student's answers have been
entered, the program should display a message indicating whether the student passed or failed the exam. (A student
must correctly at least answer 7 of the 10 questions to pass the exam.) It should then display the total number of
correctly answered questions, the total number of incorrectly answered questions. Your program must have at least the
following functions:
1. getInput(inputList)
2. checkAnswers(userlist, correctAnswerList, rightQuestions, wrongQuestions)
*. The getInput function accepts a list and asks the user to input answers to the exam and stores them in the list. You
must have an Input Validation loop: Only accept the letters A, B, C, D or a, b, c, d, as answers.
*. The checkAnswers function receives 4 parameters; the student's answers the correct answers and an empty list for the
student's right answers and an empty list for the student's wrong answers.
It compares the values in the correct answers list to the values of the student's list. It updates the student's right
answers list and the student's wrong answers list. it returns the number of correct answers to the main function.
Show Transcribed Text
Ĵ
sample run:
Enter the answers for each of the questions.
Question1:A
Question2:D
Question3:B
Question4:b
Question5:c
Question6:b
Question 7:v
Enter only an A, B, C, D or a,b, c, d for each question.
Question 7d
Question8:c
Question9:b
Question 10:D
You have 3 answers wrong.
You have 7 answers right.
The wrong questions are: [7, 8, 9]
The right questions are: [1, 2, 3, 4, 5, 6, 10]
You passed the exam.
Transcribed Image Text:Your math teacher has asked you to write a program that grades the multiple-choice questions in a Math exam. The exam has 10 multiple-choice questions. Here are the correct answers: 1. A 6. B 2.D 3. B 4.B 7.A 8. B 9.C 10.D 5.C Your program should store the correct answers shown above in a list. It should ask the student to enter her answers for each of the 10 questions, and the answers should be stored in another list. After the student's answers have been entered, the program should display a message indicating whether the student passed or failed the exam. (A student must correctly at least answer 7 of the 10 questions to pass the exam.) It should then display the total number of correctly answered questions, the total number of incorrectly answered questions. Your program must have at least the following functions: 1. getInput(inputList) 2. checkAnswers(userlist, correctAnswerList, rightQuestions, wrongQuestions) *. The getInput function accepts a list and asks the user to input answers to the exam and stores them in the list. You must have an Input Validation loop: Only accept the letters A, B, C, D or a, b, c, d, as answers. *. The checkAnswers function receives 4 parameters; the student's answers the correct answers and an empty list for the student's right answers and an empty list for the student's wrong answers. It compares the values in the correct answers list to the values of the student's list. It updates the student's right answers list and the student's wrong answers list. it returns the number of correct answers to the main function. Show Transcribed Text Ĵ sample run: Enter the answers for each of the questions. Question1:A Question2:D Question3:B Question4:b Question5:c Question6:b Question 7:v Enter only an A, B, C, D or a,b, c, d for each question. Question 7d Question8:c Question9:b Question 10:D You have 3 answers wrong. You have 7 answers right. The wrong questions are: [7, 8, 9] The right questions are: [1, 2, 3, 4, 5, 6, 10] You passed the exam.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Linked List Representation
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education