Need help writing a C++ program...

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Locked
bigvisfan
DCEmu Newbie
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

Need help writing a C++ program...

Post by bigvisfan »

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
User avatar
toastman
Iron Fist of Justice
Iron Fist of Justice
Posts: 4933
Joined: Sat Nov 10, 2001 3:08 am
Location: New Orleans
Has thanked: 0
Been thanked: 0
Contact:

:|

Post by toastman »

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.
bigvisfan
DCEmu Newbie
DCEmu Newbie
Posts: 9
Joined: Wed Jan 16, 2002 3:46 pm
Has thanked: 0
Been thanked: 0

Post by bigvisfan »

Kind of tough when your instructor is a punk and dosen't give a crap if you need help or not.... It isn't easy for me, I hate it.
Sanchez
DCEmu Ex-Admin
DCEmu Ex-Admin
Posts: 1098
Joined: Wed Oct 17, 2001 7:44 pm
Has thanked: 0
Been thanked: 0

Post by Sanchez »

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.....
bigvisfan
DCEmu Newbie
DCEmu Newbie
Posts: 9
Joined: Wed Jan 16, 2002 3:46 pm
Has thanked: 0
Been thanked: 0

Post by bigvisfan »

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.
Sanchez
DCEmu Ex-Admin
DCEmu Ex-Admin
Posts: 1098
Joined: Wed Oct 17, 2001 7:44 pm
Has thanked: 0
Been thanked: 0

Post by Sanchez »

Like we were saying, write the skeleton and if you have specific problems, ask. What you don't seem to realize is the instructions are telling you the skeleton, the member functions and the member variables.

Hack something first, ask when stuck....
unisprise
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 15
Joined: Fri Nov 30, 2001 12:44 am
Has thanked: 0
Been thanked: 0

memories

Post by unisprise »

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...
User avatar
toastman
Iron Fist of Justice
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

Post by toastman »

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 :lol: *)
Locked