Programming Homework Help

Programming Homework Help. CSCI 102 Montana State University Java Arrays Beginner Problem Project

 

Write a program to grade an n-question multiple-choice exam, where n is between 1 and 10. You receive the information about the exam from standard input (so you should use scanf), but you should read it using file redirection instead of typing the input. The first line contains the number of questions followed by the correct answer for each question. All of the following lines contain a student id number followed by that student’s answers to each question.

"smaple.txt"

8 ccddabce
100 bcddabca
107 ccddcbab
112 ccddabcc
115 bbccabcd
120 cdcdabde

our program should print out a report about the exam that shows the correct answer for each question, the grade for each student (by ID and in the same order that they were passed in), and a count of the number of students who missed each question. For example, your program should output the following given the provided sample.txt

./program< sample.txt 
Question        1 2 3 4 5 6 7 8 
Answer          c c d d a b c e 

ID      Grade(%)
100     75.00
107     62.50
112     87.50
115     37.50
120     62.50

Question        1 2 3 4 5 6 7 8 
Missed By       2 2 2 1 1 0 2 4 

>>prints the number of students who missed a question correctly.

>>uses arrays to store the right answers and the missed number of answers.

>>uses at least 2 functions in addition to main

Programming Homework Help