Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef MORTGAGE_H
- #define MORTGAGE_H
- class mortgage{
- public:
- //constructor
- mortgage(float = 0.00, float = 0.00, int = 0);
- //set functions
- void setLoan(float);
- void setRate(float);
- void setYear(int);
- //get functions
- float getLoan() {return loan;}
- float getRate() {return rate;}
- int getYear() {return year;}
- //other functions
- float getTerm();
- float getPayment(float);
- float totalAmount(float);
- private:
- float loan;
- float rate;
- int year;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement