Home /
Expert Answers /
Computer Science /
write-a-java-program-based-on-uml-diagram-below-the-implementation-of-calculategrade-and-calcula-pa335
(Solved): Write a Java program based on UML diagram below: The implementation of calculateGrade() and calcula ...
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 (totalMark/noOfTest \( >=85 \) ) grade="Pass" else grade="Fail" where totalMark+=test[i]; \( / / \mathrm{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 (totalMark/noOfTest \( >=80 \) ) grade="A" else if (totalMark/noOfTest \( >=60 \) ) grade="B" else grade="F" where , totalMark+=test[i]; // \( \mathrm{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.