Answered step by step
Verified Expert Solution
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 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?
What is the down payment?
Have you held your current job for at least a year? yes
What is your annual salary?
You are eligible for this loan.
What is the loan amount?
What is the down payment?
Have you held your current job for at least a year? yes
What is your annual salary?
You are eligible for this loan.
What is the loan amount?
What is the down payment?
Have you held your current job for at least a year? no
What is your annual salary?
You are not eligible for this loan.
What is the loan amount?
What is the down payment?
Have you held your current job for at least a year? yes
What is your annual salary?
You are eligible for this loan.
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