java An instructor needs your help by creating software tha

java -

An instructor needs your help by creating software that will grade a set of true/ false tests. There are 20 questions for the answers have been recorded as a T or F. The test was taken by 10 students. The testing software has generated a file that has stored the 20 correct answers in the form, TFFTFFTTTTFFTFTFTFTT. Following the correct answers the file contains a series of student id numbers followed by the 20 answers given by that student. The pattern is correct answers, student id, student answers, student id, student answers and so on. The program should read in the correct answers and store them in an array of chars. The program should then read in the student id number. For each student the program will then read in the student answers, store them in another array. The test will be scored with five points for each correct answer. Create a method assignGrade() that will accept as its formal parameter the student score and reports back a letter grade. The method will feature a set of two parallel arrays. The first will be an array of whole numbers representing the grading break points: 90,80, 70, 60, 0. The other will contain the letter grades: ‘A’, ‘B’, ‘C’, ‘D’, ‘F’. The score received as an actual parameter should be compared to the break points and the proper letter grade return to the main method for display along with the student number.

TFFTFFTTTTFFTFTFTFTT 12345 TFFTFTTTTTFFFFTFTFTT 23456 TTFTFFFTTTTFTTTTTFTT 34567 TTFFFTTFTFFFFFFFTTTF 45678 FFFTFTTTTFFFFFTTTTTT 56789 TFTTFTTTTTFTTFTFTFTT 67890 FFFTFTTTFTTTTTTTFFFF 78901 TTFFFTTTTFFFFFFFFFTT 89012 FFFFFTFTTFFTTFFFTFFT 90102 TFFTFFTTTTFFTFTFTFTT 51234
TTFFFTTFTFFTTTFTTTTF

Solution

Please find the required program along with its output. Please see the comments against each line to understand the step.

--------------------------

OUTPUT:

STUDENTS GRADES:
Student id: 12345
grade: A

Student id: 23456
grade: C

Student id: 34567
grade: F

Student id: 45678
grade: C

Student id: 56789
grade: B

Student id: 67890
grade: F

Student id: 78901
grade: D

Student id: 89012
grade: D

Student id: 90102
grade: A

Student id: 51234
grade: F

java - An instructor needs your help by creating software that will grade a set of true/ false tests. There are 20 questions for the answers have been recorded

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site