Hello,
I'm currently in a C++ class that I don't want to be in, but it is for my major (soon to be former major), I am stuck on this program I have to write and I wanted to know if someone could help me out. We are on the classes section. Here is the problem from the book:
Mortgage Payment
Design a class that will determine the monthly payment on a home mortgage. The Monthly payment with interest compounded monthly can be calculated as follows:
Payment = Loan x Rate/12 x Term
--------------------------
Term - 1
where
Term = (1 + Rate/12) 12 x Years <------this part is an exponent/power, meaning the (12 x Years) part.
Payment = the monthly payment
Loan = the dollar amount of the loan
Rate = the annual interest rate
Years = the number of years of the loan
The class should have member functions for setting the loan amount, interest rate, and number of years of the loan. It should also have the member functions for returning the monthly payment amount and the total amount paid to the bank at the end of the loan period. Implement the class in a complete program.
input validation: Do not accept negative numbers for any of the loan values.
That is the program, if anyone can help me I would really appreciate it. I am so stressed out with school right now that it is unbeliveable and this would be a big releif.
thanks,
Sam
JYDTHUMP@aol.com
Need help writing a C++ program...
-
- DCEmu Newbie
- Posts: 9
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Wed Jan 16, 2002 3:46 pm
- Has thanked: 0
- Been thanked: 0
- toastman
- Iron Fist of Justice
- Posts: 4933
- Joined: Sat Nov 10, 2001 3:08 am
- Location: New Orleans
- Has thanked: 0
- Been thanked: 0
- Contact:
:|
sorry we are not here to do your homework
sorry for coming out sounding like this but, cmon man. that's what your teachers are for.
plus, it should be simple enough to do.
sorry for coming out sounding like this but, cmon man. that's what your teachers are for.
plus, it should be simple enough to do.
Ok, what is upsetting you here? As Toastman said, we're not going to do the class for you, but if you have a specific question, send it this way. We'd more likely to help if you said something like
How do I set a member variable within the class safely?
or some such thing. Posting the assignment here won't get you much...
Just as a side note, do what the instructions tell you and create a skeleton class with the methods listed. Logically, the class is already designed for you, all you have to do is implement it.....
How do I set a member variable within the class safely?
or some such thing. Posting the assignment here won't get you much...
Just as a side note, do what the instructions tell you and create a skeleton class with the methods listed. Logically, the class is already designed for you, all you have to do is implement it.....
Well, basically all I was looking for was someone to help me with a skeleton of the program. Not the whole thing, I do need to learn something for the test and all. I just get very confused when it comes to equations. Seems like I always get stuck with writing those types of programs too, when the other people in the class get the fairweather programs.
-
- DCEmu Cool Newbie
- Posts: 15
- Joined: Fri Nov 30, 2001 12:44 am
- Has thanked: 0
- Been thanked: 0
memories
I remember this program... :)
I won't help but will tell you how to find other people's code from your classes
I'm assuming you are supposed to post your code on the web once you're done, as I've had to for all classes I was in (this was a c++ java class)
most of your fellow classmates will not set their protection variables correctly, allowing everyone to see their code, and not the professor... now it's up to you to find out how to access them...
I won't help but will tell you how to find other people's code from your classes
I'm assuming you are supposed to post your code on the web once you're done, as I've had to for all classes I was in (this was a c++ java class)
most of your fellow classmates will not set their protection variables correctly, allowing everyone to see their code, and not the professor... now it's up to you to find out how to access them...
- toastman
- Iron Fist of Justice
- Posts: 4933
- Joined: Sat Nov 10, 2001 3:08 am
- Location: New Orleans
- Has thanked: 0
- Been thanked: 0
- Contact:
huh
From Feb 26 to Apr 08, that is over a month. The program would be past due now at any rate. This topic serves no purpose except for spammers to drag back up every few months.
Closed
(*I feel all mod-like now *)
Closed
(*I feel all mod-like now *)