Question: MORTGAGE.CPP Write a program that calculates the annual after- tax cost of a new house for the first year of ownership. The user inputs the
MORTGAGE.CPP Write a program that calculates the annual after- tax cost of a new house for the first year of ownership. The user inputs the price of the house and the downpayment made on it. The program thus knows what the loan amount is the difference between the house price and the downpayment. The program also knows at least three constants: the loan interest rate (6%), the loan reduction cost rate (3%), and your income tax rate (35%) Home loans are subjected to an interest rate - that is one cost to home-owners. Additionally, they are paying off their loan at a certain rate (the loan reduction rate) that is another cost Thus the total annual mortgage costs for home- ownership is defined. However, home-owners get a bit of a break on their total costs because they can deduct part of their interest payments when they pay their taxes. These tax savings amount to the interest payment amount multiplied by their income tax rate So, the real annual cost to a home-owner the annual after-tax cost - is computed as the total annual mortgage cost minus the tax savings Should inputs should be of type double or int
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
