6. The UML diagram below represents the design for a Student class. Student -studentNumber : String -studentName : String -markForMaths : int -markForEnglish : int -markForScience : int -fee: double...


Please program in Java


6. The UML diagram below represents the design for a Student class.<br>Student<br>-studentNumber : String<br>-studentName : String<br>-markForMaths : int<br>-markForEnglish : int<br>-markForScience : int<br>-fee: double<br>+Student(String, String)<br>+getNumber() : String<br>+getName() : String<br>+enterMarks(int, int, int)<br>+getMathsMark() : int<br>+getEnglishMark() : int<br>+getScienceMark() : int<br>+calculateAverageMark() : double<br>+getFee(): double<br>+setFee(double)<br>You can see that students have a name, a number, some marks for subjects they are studying<br>and the fee. Methods are then provided to process this data. (a) What is indicated by the fact<br>that certain attributes and methods have been underlined? (b) Write the Java code for the parts<br>of the class that have been underlined.<br>

Extracted text: 6. The UML diagram below represents the design for a Student class. Student -studentNumber : String -studentName : String -markForMaths : int -markForEnglish : int -markForScience : int -fee: double +Student(String, String) +getNumber() : String +getName() : String +enterMarks(int, int, int) +getMathsMark() : int +getEnglishMark() : int +getScienceMark() : int +calculateAverageMark() : double +getFee(): double +setFee(double) You can see that students have a name, a number, some marks for subjects they are studying and the fee. Methods are then provided to process this data. (a) What is indicated by the fact that certain attributes and methods have been underlined? (b) Write the Java code for the parts of the class that have been underlined.

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here