Advertisement
Guest User

Javagradediscriptionsprofileclass

a guest
Jan 21st, 2014
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.60 KB | None | 0 0
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5. package grades;
  6.  
  7. /**
  8.  *
  9.  * @author Nicholas
  10.  */
  11. public class Profile {
  12.     String name,termType;
  13.     double gpaScale,gpa;
  14.     int numCourses,gradePoints,credits;
  15.     Profile(String name, String type, double gpaScale){
  16.         this.name=name;
  17.         this.termType=type;
  18.         this.gpaScale=gpaScale;
  19.         this.gpa=0.0;
  20.         this.numCourses=0;
  21.         this.gradePoints=0;
  22.         this.credits=0;
  23.     }
  24.  
  25.     public void addCourse(String name ){
  26.        
  27.     }
  28.    
  29.    
  30.     public void setName(String name){
  31.         this.name=name;
  32.     }
  33.     public String getName(){
  34.         return name;
  35.     }
  36.     public void setGpaScale(int gpaScale){
  37.         this.gpaScale=gpaScale;
  38.     }
  39.     public double getGpaScale(){
  40.         return gpaScale;
  41.     }
  42.     public void setTermType(String termType){
  43.         this.termType=termType;
  44.     }
  45.     public String getTermType(){
  46.         return termType;
  47.     }
  48.     public void setGPA(double gpa){
  49.         this.gpa=gpa;
  50.     }
  51.     public double getGPA(){
  52.         return gpa;
  53.     }
  54.     public void setNumCourses(int numCourses){
  55.         this.numCourses=numCourses;
  56.     }
  57.     public int getNumCourses(){
  58.         return numCourses;
  59.     }
  60.     public void setGradePoints(int gradePoints){
  61.         this.gradePoints=gradePoints;
  62.     }
  63.     public int getGradePoints(){
  64.         return gradePoints;
  65.     }
  66.     public void setCredits(int credits){
  67.         this.credits=credits;
  68.     }
  69.     public int getCredits(){
  70.         return credits;
  71.     }
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement