Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

COBOL. The LENDER Bank The LENDER Bank offers mortgages on homes valued up to $500,000. The required down payment is calculated as follows: 4% of

COBOL. The LENDER Bank

The LENDER Bank offers mortgages on homes valued up to $500,000. The required down payment is calculated as follows:

4% of the first $60,000 borrowed

8% of the next $30,000 borrowed

10% of the rest

The amount borrowed cannot exceed 50% of the value of the house.

Write an interactive program (no environment division) to accept input from

the keyboard that specifies for each borrower the amount that he or she wishes to borrow along with the price at which the house is valued. Based on the data entered, display the following:

1. A message that indicates if the amount the user wishes to borrow is acceptable (no more than 50% of the house value).

2. A message that indicates if the value of the house is acceptable (does not exceed $500,000).

3. A message displaying the required down payment, if the amount to be borrowed is acceptable.

When the amount to be borrowed is not acceptable, the program must not calculate or display therequired down payment.

For example, lets assume that a borrower wants a loan for $100,000 on a house valued at $200,000. The maximum amount that can be borrowed is $100,000 (50% of $200,000) and as such the requested amount is acceptable. Therefore, the program should display a message indicating that the requested amount is acceptable and another message indicating that value of the house is also acceptable. The program should also indicate that the required down payment is $5,800 (60,000 x 4% + 30,000 x 8% + 10,000 x 10%).

Please note that the program must only indicate the down payment amount, numbers in parenthesis are provided for illustrative purposes.

However, if the requested amount was greater than $100,000 (such as $100,001), the program must display a message indicating that the requested amount is not acceptable because it exceeds 50% of the value of the house, must display a message indicating that the value of the house is acceptable, and must not display or calculate the down payment. Also, if the value of the house is greater than $500,000, the program must display a message indicating that the value of the house is not acceptable as it exceeds the maximum allowable amount.

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students explore these related Databases questions