Question
IN JAVA PLEASE, Please include screenshot and txt file The application is used by the students to take the test. Another application takes each students
IN JAVA PLEASE, Please include screenshot and txt file
The application is used by the students to take the test. Another application takes each students answers from the first application and enters them into a file in the following format: each line includes the students 7-digit school ID number, followed by their answers {A, B, C, D } to each of the questions. You must open and read this summary file, with all students answers, in your program.
Write a class named Test that holds the correct answers to the exam in an array field. A second array holds a count of correct answers for each of the questions. It should also have private fields so that as your class reads the answers from each student, it counts the number of students (1) taking and (2) passing the test. Another private field counts how many questions have been answered by the current student line being processed, reset for successive students.
The class also has the following methods:
passed method should whether (a Boolean) a student has passed the test (Passing the test means the student answered 7 of the 10 questions)
taken method should return the number of students taking the test
getStudentAverage method should return the average score for each student, as that student is graded
getQuestionAverage method should return the fraction of students answering each question (expressed as a decimal, 0 1)
totalCorrect method should return the total number of questions each student answers correctly
Driver's License Exam The local driver's license office has asked you to create an application that grades the written portion of the driver's license exam. The exam has 20 multiple-choice questions. Here are the correct answers: 1. B 6. A 2. D 7. B 12. C 17. C 3. A 8. A 13. D 18. B 4. A 9. C 14. A 19. D 5. C 10. D 15. D 20. A 16. C Driver's License Exam The local driver's license office has asked you to create an application that grades the written portion of the driver's license exam. The exam has 20 multiple-choice questions. Here are the correct answers: 1. B 6. A 2. D 7. B 12. C 17. C 3. A 8. A 13. D 18. B 4. A 9. C 14. A 19. D 5. C 10. D 15. D 20. A 16. CStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started