Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In JAVA CODE ONLY. Can someone write this program? IN JAVA CODE ONLY!!I Write a program that will grade a set of Multiple Choice tests.

In JAVA CODE ONLY. Can someone write this program? image text in transcribed
image text in transcribed
IN JAVA CODE ONLY!!I Write a program that will grade a set of Multiple Choice tests. The test has 20 questions and there were 20 students in the class. There will be two parts to the input. First, you must read the test answers from a file into a 2D array. Each row of the array will hold the answers given by one student-so the element at subscript 0 in the row of the array will hold the answer to the first question, the element at subscript 1 in the row will hold the answer to the second question, and so on. The answers given by each student will be on a separate line in the input file, so there will be 20 answers on each line and there will be 20 lines. The second part of the input is the answer key the list of the correct test answers. The in the input file will contain the answer key.) will be on one line. They should be read into a 1D array. (Note: The 21 line After reading in the test answers and the answer key, your program should grade each test by comparing each answer with the answer key and counting the number of correct answers. The number of correct answers for each test should be printed to an output file along with the corresponding grade for that test. Each correct answer is worth 5 points. The output file should be in report format. You should also keep a running total of the sum of the student grades. At the end of the report list the average grade obtained on this test by the 20 students. You will use an input file to read the values into the array. You will send the results to an output file. You will use methods with parameters in your program. nput data file: 1CCDDABCCBABCDADCCBDA 2BDAACABACDBCDADCCBDA 3BDDDCABACDBCDADCCBDA 4BCAACABACDBCAADCCBDA 6 ADAACABDADBADADCBBDC 7BDAACABACDBCDADCCBDA 8DDAACABACDBCDADCCBDA 9BDDDAAAACDBCDABCCBDA 10 B DAACABACDBCDADCCBDA 11 BDAACABACABCDADCCBDA 12BDADCABADDBCDADCCBDA 13 BDAACABABDBCDADAABDA

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Organic Chemistry

Authors: Joseph M. Hornback

2nd Edition

9781133384847, 9780199270293, 534389511, 1133384846, 978-0534389512