Need Help With Creating An Object

Wanna understand E=mc2, English grammer, or maybe just build a computer? We can help!

Moderator: Moderators

LoSTimberWolf
Inmate
Posts: 128
Joined: Sun Jan 27, 2002 4:17 pm

Re: Need Help With Creating An Object

Post by LoSTimberWolf »

I am turning in my header file right now. Even though I can not get the same numbers he has on the test output he gave us, I think my program is working just like he outlined. The only reason I can think of for not getting the same numbers is he used differnt numbers for Loan, Rate, and Year when he did it. Thanks for the help, and I will have a new program to work on tomarrow evening. <p>-LoS-TimberWolf{FF}<br>Vehicle Specilist</p><i></i>
LoS Malthus
Posts: 60
Joined: Mon Apr 15, 2002 2:51 pm

Re: Need Help With Creating An Object

Post by LoS Malthus »

Did the professor give you that formula? I am assuming monthly is calculating the monthly payment (comments are your friend)...and I don't know C++ but I do know mortgage calcs and that doesn't look right.<br><br>This is a very helpful page about calculating amortization figures (Mortagages)<br><br> <!--EZCODE AUTOLINK START--><a href="http://www.interest.com/hugh/calc/formu ... <!--EZCODE AUTOLINK END--> <br><br> <p>---------<br>...the only real difference between the locals and visitors seems to be length of the vacation...</p><i></i>
LoSTimberWolf
Inmate
Posts: 128
Joined: Sun Jan 27, 2002 4:17 pm

Re: Need Help With Creating An Object

Post by LoSTimberWolf »

The Monthly formula came from the C++ book, refrenced by the Professor. At about midnight last night I realized that I forgot a variable required for the calculation, which required the use of the pow() function. After that was inputted, the output of Monthly was correct but PayBack was still falling short by over $1000. I was using a while loop at first, and subtracting from Loan until it reached zero and adding to Payback. Then I tried a variation of that. Finaly, about 1am it finaly hit me, use a for loop and set the counter to zero and run the loop untill it equaled Years times 12. I then turned in my header file, and the program will never see the light of day on my computer again. <p>-LoS-TimberWolf{FF}<br>Vehicle Specilist</p><i></i>
User avatar
XMEN Gambit
Site Admin
Posts: 4122
Joined: Thu Nov 18, 1999 12:00 am

Re: Need Help With Creating An Object

Post by XMEN Gambit »

Heh. You might find it useful, actually - amortization schedules for car payments often referenced. <!--EZCODE EMOTICON START :) --><img src=http://www.ezboard.com/images/emoticons/smile.gif ALT=":)"><!--EZCODE EMOTICON END--> <p><!--EZCODE IMAGE START--><img src="http://www.xmenclan.org/xmengambit.gif"/><!--EZCODE IMAGE END--><br>XMEN member<br>Card-carrying DTM<br>OKL Fish-napper<br><br>Though a program be but three lines long, someday it will have to be maintained.<br><!--EZCODE ITALIC START--><em> The Tao of Programming</em><!--EZCODE ITALIC END--></p><i></i>
Image
LoS Malthus
Posts: 60
Joined: Mon Apr 15, 2002 2:51 pm

Re: Need Help With Creating An Object

Post by LoS Malthus »

Or you could end up like me and working at a mortgage company. <!--EZCODE EMOTICON START :) --><img src=http://www.ezboard.com/images/emoticons/smile.gif ALT=":)"><!--EZCODE EMOTICON END--> <br><br>The first project I worked on here was writing amortization calcs in Javascript and then later in Java for our application. I found that website because no one in the company (300 people in the office I'm in, including the corporate trainers) could tell me the formula for amortization. They all just used their Financial Calculators or the built in Excel functions. I still laugh about that, people selling mortgages didn't know the calcs. <!--EZCODE EMOTICON START :) --><img src=http://www.ezboard.com/images/emoticons/smile.gif ALT=":)"><!--EZCODE EMOTICON END--> <p>---------<br>...the only real difference between the locals and visitors seems to be length of the vacation...</p><i></i>
LoSTimberWolf
Inmate
Posts: 128
Joined: Sun Jan 27, 2002 4:17 pm

Re: Need Help With Creating An Object

Post by LoSTimberWolf »

My Mom works at a bank, does loans and tones of things that each require totaly different equations. No one at her branch or at the main branch know how in the world their software does all of it. <p>-LoS-TimberWolf{FF}<br>Vehicle Specilist</p><i></i>
Post Reply