Question: Write a Java program based on UML diagram below: The implementation of calculateGrade() and calculateFees() method for master Stud and degreeStud object as below: A.


Write a Java program based on UML diagram below: The implementation of calculateGrade() and calculateFees() method for master Stud and degreeStud object as below: A. masterStud Class i) calculateGrade() if (totalMarkoOfTest >=85 ) grade="Pass" else grade="Fail" where totalMark+=test[i]; //i is based on noOfTest ii) calculate Fees() The fee is charged based on the type of Student. For master student, RM200 per credit hour is charged. i) calculateGrade() if (totalMarkoOfTest >=80 ) grade="A" else if (totalMarkoOfTest >=60 ) grade="B" else grade="F" where , totalMark+=test[i]; // i is based on noOfTest ii) calculateFees() The fee is charged based on the type of Student. For degree student, RM100 per credit hour is charged. *the score of each test is stored in test array (setMark method). test[noTest]=score; "displaylnfo() - display the name, grade and fees of student. The output is based on your creativity. Such as you can create array for the Degree student and Master Student
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
