Question: The question below involves 2d boolean arrays. Design and implement an application that reads in a set of 2000 grades into a two-dimensional array from

The question below involves 2d boolean arrays.

Design and implement an application that reads in a set of 2000 grades into a two-dimensional array from a .txt file called studentanswers that represent the results from a test of 20 true-false questions for 100 students. Each row of the array represents the answers of one of the 100 students in the class. Each column represents the answers of each student to a specific question on the test. Each cell of the array contains either the Boolean value true or false. Read in the values from a second .txt file called questionanswers to be stored in a second one-dimensional array of 20 Boolean values that represent the correct answers to the 20 questions. Your program should compute and print out the number of correct answers for each student in chart form, the number of students who got each of the 20 questions correct in chart form, the average quiz grade and the standard deviation of the grades.

questionAnswers.txt:

true true true true true true true true true true false true false true false true false true false true

(second file contains 2000 lines. I will only use 40).

studentAnswers.txt:

true

true

true

true

true

true

true

true

true

true

false

true

false

true

false

true

false

true

false

true

true

true

true

true

true

true

true

true

true

true

false

true

false

true

false

true

false

true

false

true

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!