Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Function Description Complete the function calculatescore in the editor below and print the computed score and result. calculatescore has the following parameter(s): responses - an
Function Description Complete the function calculatescore in the editor below and print the computed score and result. calculatescore has the following parameter(s): responses - an array of strings - with each string per line in the format: question #, correct response , candidate response . Constraints - Every question has 4 options a,b,c,d from which the response has to be chosen. - Every question has only 1 correct option (no multiple options) - In case the candidate has not attempted a question, a * will be passed in the place of a blank response. - The input having the correct response/candidate response can be in upper case or lower case. - Input Format For Custom Testing The first line of the input is number which represent the number of lines that would follow in the format: question \# type of question , , candidate response
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started