For Java: Grading Schema: In a separate function, you will implement a grading s
ID: 3817933 • Letter: F
Question
For Java: Grading Schema: In a separate function, you will implement a grading schema. Write a program that reads a student’s name together with his or her test score from a file given by the user. The first two values in the file will represent the number of students followed by the number of tests. The program should then compute the average test score for each student and assign the appropriate grade (A, B, C, D, E or F) as well as the average of each test. Your program must perform the following functions. a) A void function calculateAverage, to determine the average of the test scores for each student. b) A value-returning function, calculateGrade, to determine and return each student’s grade letter. c) A void function calculateTestAvg that calculates the average of all tests and overall average of students. d) A void function printGrades that prints the grades values, average marks and grade letter followed by the average of all tests and students.
Output:
Having problems calling a 2D arrary in order to print the average, grade and test average in printGrade. Also not sure if my second calculateTestAverage is correct either. Help with my code would be fantastic.
output Assignment2 (run) test1 test2 test3 test4 test5 Avg grade 91 67 84 50 69 72 tom. 74 78 58 62 64 67 Suzy Peter 55 95 81 77 61 73 Paul. 91 95 92 77 86 88 Diane 91 54 52 53 92 68 Emily 82 71 66 68 95 76 Natalie 97 76 71 88 69 80 Ben 62 67 99 85 94 81 ark 53 61 72 83 73 68 Anna 64 91 61 53 68 67 test AVG: 76 75 73 69 77 74 BUILD SUCCESSFUL (total time: 0 secondsExplanation / Answer
your code is correct try to call get with larger number
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.