Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

Input gross earnings: 5400.95 Input credit card debt: 200.45 Input car payment: 250.50 Net earnings: 4950.00 Maximum mortgage: 1782.00

Press any key to continue . . .

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

Please show all work from top to bottom

Answered: 1 week ago