The output should be something like this : The StuList class is here https://app
ID: 644983 • Letter: T
Question
The output should be something like this :
The StuList class is here https://app.box.com/s/ln58a5n9tjqr8q5mqpw8n5tvrqr6bqey
NOTE: Write another class named Students that contains the followings behaviors:
? Constructor
? setName(String)
? setCreditHours(int)
? setGradePoint (double)
? double computeGPA //use the formula gradepoint/credithours
? Boolean isSenior //senior student if credithours > 125 and GPA >= 2.0
Explanation / Answer
// Code of the Student class
public class Student{
String name;
int credithour;
double gradepoint;
double GPA;
Student(){
}
public void setName(String name){
this.name = name;
}
public void setCreditHours(int credithour){
this.credithour = credithour;
}
public void setGradePoint(double gradepoint){
GPA = gradepoint/credithour;
}
public boolean isSenior(){
if(credithour>125 && GPA >= 2.0)
return true;
else
return false;
}
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.