Advertisement
eldieck

Untitled

Apr 27th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #ifndef MORTGAGE_H
  2. #define MORTGAGE_H
  3.  
  4.  
  5. class mortgage{
  6. public:
  7.     //constructor
  8.     mortgage(float = 0.00, float = 0.00, int = 0);
  9.  
  10.     //set functions
  11.     void setLoan(float);
  12.     void setRate(float);
  13.     void setYear(int);
  14.  
  15.     //get functions
  16.     float getLoan() {return loan;}
  17.     float getRate() {return rate;}
  18.     int getYear() {return year;}
  19.  
  20.     //other functions
  21.     float getTerm();
  22.     float getPayment(float);
  23.     float totalAmount(float);
  24.  
  25. private:
  26.     float loan;
  27.     float rate;
  28.     int year;
  29. };
  30.  
  31. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement