Details of this Paper

COSC 1436 Lab #8

Description

solution


Question

// For complete question check the attachment///;For this assignment, you will write a program that grades an online quiz. The program asks the student to enter his/her answer to 10 multiple-choice questions. The program stores the student?s responses in an array and then compares those responses to the correct answers to determine the student?s grade.;The correct answers are;1-B;2-C;3-A;4-D;5-B;6-A;7-D;8-C;9-A;10-B;Your program must use this main procedure. You must implement the inputAnswers and numCorrect procedures and test the program to make sure it works correctly.;For this program both correctAnswers and given are arrays of characters.;Note that given is an out parameter to inputAnswers, and numRight is an out parameter to numCorrect.;Raptor makes this a little tricky because even if a user enters a single character as input, Raptor considers it a string instead of a character. To convert an input string to a character, I recommend this procedure.;Sample Output (input in BOLD);Please enter your answer for question #1 B;Please enter your answer for question #2 B;Please enter your answer for question #3 A;Please enter your answer for question #4 D;Please enter your answer for question #5 B;Please enter your answer for question #6 C;Please enter your answer for question #7 D;Please enter your answer for question #8 C;Please enter your answer for question #9 A;Please enter your answer for question #10 B

 

Paper#64652 | Written in 18-Jul-2015

Price : $32
SiteLock