Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package grades;
- /**
- *
- * @author Nicholas
- */
- public class Profile {
- String name,termType;
- double gpaScale,gpa;
- int numCourses,gradePoints,credits;
- Profile(String name, String type, double gpaScale){
- this.name=name;
- this.termType=type;
- this.gpaScale=gpaScale;
- this.gpa=0.0;
- this.numCourses=0;
- this.gradePoints=0;
- this.credits=0;
- }
- public void addCourse(String name ){
- }
- public void setName(String name){
- this.name=name;
- }
- public String getName(){
- return name;
- }
- public void setGpaScale(int gpaScale){
- this.gpaScale=gpaScale;
- }
- public double getGpaScale(){
- return gpaScale;
- }
- public void setTermType(String termType){
- this.termType=termType;
- }
- public String getTermType(){
- return termType;
- }
- public void setGPA(double gpa){
- this.gpa=gpa;
- }
- public double getGPA(){
- return gpa;
- }
- public void setNumCourses(int numCourses){
- this.numCourses=numCourses;
- }
- public int getNumCourses(){
- return numCourses;
- }
- public void setGradePoints(int gradePoints){
- this.gradePoints=gradePoints;
- }
- public int getGradePoints(){
- return gradePoints;
- }
- public void setCredits(int credits){
- this.credits=credits;
- }
- public int getCredits(){
- return credits;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement