Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions

Question

Ty e2y Evaluate the integral dy

Answered: 1 week ago