☑Kizspy.me
+toString():String
getters of all the fields

toString(): String- return a string format that
contains all the information of the person: id,
name, email. The name is in uppercase
format.
Student
-gpa: int
+ Student(id:String, name:String,
email:String, gpa:int)
+getGpa():int
+setGpa(gpa:int):void
+getReward (:double
+toString():String
Zoom
+ 100%
Where:
Student (id:String, name: String, email:String,
gpa:int)-parameterized constructor, which
sets values to id, name, email, and gpa. If
the gpa is less than 0 or greater than 100 then
set it to 0

getGpa():int-return the gpa
setGpa(gpa:int):void-update the gpa. If the
gpa is less than 0 or greater than 100 then set
it to 0.

getReward ():double-return the reward
(default reward is 0) calculated according to
the following formula:
-If 70 <gpa <80 then reward is 7000 * P
-If 80 <gpa <90 then reward is 8000* P
-If 90 <gpa <=100 then reward is 9000 * P
with Pana/100 for example: if ana is 80
Close