Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in java Write a program that reads and calculates the grades of twenty (20) students with the following formula: Total Grade = [Midterm (MT) x
in java
Write a program that reads and calculates the grades of twenty (20) students with the following formula: Total Grade = [Midterm (MT) x 40%] + [Final (FIN) X 60% ] The grades are entered into the program in the following order: STUDENT-ID MT FIN A sample entry/input is as follows (The followings are entered from the keyboard): 19COMP210 55 80 20COMP131 40 61 18SOFT001 30 90 After the program reads the data from the user, the program should generate an output line for each student with the following format: STUDENT-ID MT FIN GRD-TOT A sample entry/input is as follows (The followings are entered from the keyboard): 19COMP210 55 80 20COMP131 40 61 18SOFT001 30 90 After the program reads the data from the user, the program should generate an output line for each student with the following format: STUDENT-ID MT FIN GRD-TOT where GRD-TOT is the student's calculated total grade. After printing each student's scores, the overall class average of total grades will be also printed. In this program, you have to implement sub-operations as methods. You are expected to write at least 3 methods (calculateTotalGradeOfStudents, calculateOverallAverage, getNumOfGradesHigher ThanAverage). Hint: In your tests, you can try with less number of students. For example, the program will generate the following output for the given input: scores, the overall class average of total grades will be also printed. In this program, you have to implement sub-operations as methods. You are expected to write at least 3 methods (calculateTotalGradeOfStudents, calculateOverallAverage, getNumOfGradesHigher ThanAverage). Hint: In your tests, you can try with less number of students. For example, the program will generate the following output for the given input: Grades of students: 19COMP210 55 80 70 20COMP131 40 61 52.60 18 SOFT001 30 90 66 Overall Class Average: 50.55 Number of total grades higher than the average score: 13Step 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