Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i want code in C++ . As soon as possible Q3[30] A bank lends people based on certain criteria. The Bank, only lends to people

i want code in C++ . As soon as possible image text in transcribed
Q3[30] A bank lends people based on certain criteria. The Bank, only lends to people who are over 21 years of age, who make over $25,000 per year, or have over $100,000 in their account, or both ( $25,000,>$100,000 ) The bank calculate the loan as follows: In case double the income is less than 1/2 the balance then loan will be double the income. Otherwise loan will be half the balance. Write a looping (while loop) C++ program that implement the above loan calculation and stops when 99 entered by the user. Test your program with all test cases below: Please enter your age in years or 99 to quit: 25 Please enter your annual income in dollars: 28000 What is your current account balance in dollars: 185000 You can borrow up to $56000 Please enter your age in years or 99 to quit: 22 Please enter your annual income in dollars: 9000 What is your current account balance in dollars: 200000 You can borrow up to $18000 Please enter your age in years or 99 to quit: 30 Please enter your annual income in dollars: 50000 What is your current account balance in dollars: 50000 You can borrow up to $25000

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

The models used to analyse different national cultures.

Answered: 1 week ago

Question

The nature of the issues associated with expatriate employment.

Answered: 1 week ago