Question
Most financial institutions limit the amount of money you can borrow for a house to 36% of your gross earnings after debt is subtracted. Debt
Most financial institutions limit the amount of money you can borrow for a house to 36% of your gross earnings after debt is subtracted. Debt includes what you owe on credit cards and car payment.
Write a complete C++ program to prompt the user and input gross earnings, amount of credit card debt, and amount of car payment. Compute and output net earnings (earnings credit card debt car payment) and the maximum allowed for a mortgage (.36 * net earnings). Use a preprocessor defined directive to set the percentage 36%. Format all numbers to have 2 decimal places to the right of the decimal point. Comments are not necessary. Sample run shown in box below.
|
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started