Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Modify the code in python thank you. # Activity 2 . 2 #This program determines whether a bank customer # qualifies for a loan. MIN

Modify the code in python thank you.
# Activity 2.2
#This program determines whether a bank customer
# qualifies for a loan.
MIN_SALARY =30000.0 # The minimum annual salary
MIN_YEARS =2, # The minimum years on the job
CREDIT_SCORE =600
# Get the customer's annual salary.
salary = float(input('Enter your annual salary: '))
# Get the number of years on the current job.
years_on_job = int(input('Enter the number of '+
'years employed: '))
# Determine whether the customer qualifies.
if salary >= MIN_SALARY:
if years_on_job >= MIN_YEARS:
print('You qualify for the loan. ')
else:
print('You must have been employed', I
'for at least', MIN_YEARS, I
'years to qualify. ')
else:
print('You must earn at least $', I
format(MIN_SALARY, ',.2f''), I
' per year to qualify.', sep='')
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

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions

Question

Let 3i4j; find |||| =

Answered: 1 week ago

Question

=+describe the nine compositional modes needed for electronic media

Answered: 1 week ago