Hello everyone. I am pretty lost when it comes to C++, but for class i have to create this mortgage calculator. I think i have this part of the assignment done, but i can not figure out how to convert either the last number, or the user input to a percentage.
To convert decimal value to percentage you divide a value by
its max attainable value. For interest if user inputs 6 percent, the
max percent attainable is 100, so we divide 6 by 100 to get the
percentage.
Also
Thank you for the help. I dont think that i explained it well enough. I go through the program but at the end it is not giving me the correct answer. i know that the formula is correct, but i know its not right this time. (i build this program more primitive for the last assignment) I am not sure what i am doing wrong though.
Try to explain more as it's not really clear what you are trying to ask. The program compiles and is working properly. In mathematics, a percentage is nothing except division by 100. So most of the time to convert anything to percentage, you have to divide it by 100 and put % next to it.
When i compile the program, it does work. The problem is i believe it was the incorrect answer. I am not sure on how to correct this. I thought that the math was correct, but i guess not. Thanks
For a constant monthly payment, divide the total by 360(the number of months).
With the default values, I got the total to be ~1.57 million ,with a monthly payment of 4376.65.
But if you are calculating annually, the total would turn to be a little less.
And you should be calculating the total after the user input
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.