DEV Community

Adamfenwa
Adamfenwa

Posted on

Mortgage Calculator

This program is intended to be used in order to calculate total monthly payments of a loan using user inputs and save details to database

(GIF NOT WORKING UNFORTUNATELY)
https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uikbjsz1o3yb5zhf4ysv.gif

The purpose of making this was to attempt to make use of Object oriented programing. I did this by creating a class of "Client" which would then derive its attributes from the "from_input" class method. I then use the formula for total monthly payments via the "calculate" class method and return the result. Finally the user will be subject to yes/no prompts that can either be used to, input a new user, list the current users saved or to exit the program.

Github link : https://github.com/Adamfenwa/mortgage

In conclusion this is a simple terminal program used for calculating mortgages and saving the data for future use.

Top comments (1)

Collapse
 
emwalesfs profile image
EMWales

I love the saving feature, thanks for this bit of code! I create a simlar calculator using HTML, Java and CSS, it allowed the user to input their annual income and calculated their maximum borrowing amount, it then allowed the user to input their details and when submission was pressed, it would email me the details, take a look Cardiff Mortgage Advisor and let me know what you think.