Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Loan eligibility Purpose To test the ability to write appropriate conditional expressions using relational and logical operators Directions and example Write a program to collect

Loan eligibility
Purpose
To test the ability to write appropriate conditional expressions using relational and
logical operators
Directions and example
Write a program to collect information from a user and determine whether or not
that person is eligible for a loan. The person is eligible for the loan if they have a
down payment that is at least 20 percent of the loan amount or if they have held
their job for at least a year and their annual salary is at least half the loan amount.
Below are some example executions.
What is the loan amount? 50000
What is the down payment? 10000
Have you held your current job for at least a year? yes
What is your annual salary? 20000
You are eligible for this loan.
What is the loan amount? 100000
What is the down payment? 15000
Have you held your current job for at least a year? yes
What is your annual salary? 70000
You are eligible for this loan.
What is the loan amount? 30000
What is the down payment? 3000
Have you held your current job for at least a year? no
What is your annual salary? 50000
You are not eligible for this loan.
What is the loan amount? 40000
What is the down payment? 3000
Have you held your current job for at least a year? yes
What is your annual salary? 30000
You are eligible for this loan.
image text in transcribed

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

Recommended Textbook for

Database Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

More Books

Students also viewed these Databases questions

Question

1. What are the major sources of stress in your life?

Answered: 1 week ago