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.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 3RQ
icon
Related questions
Question

Please program in Java 

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.
Transcribed Image 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.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT