Answer:
income = float(input("Monthly Income: "))
debt = float(input("Total Debt: "))
minPay = float(input("Monthly minimum payments for the debt: "))
credit = 0
if debt > (income * 6):
print("No loan can be granted!")
else:
credit = (income - minPay) * 0.3
print("You can be approved for upto $" + str(credit))
Step-by-step explanation:
*The code is in Python
Ask the user for income, debt, and minPay
Check if the debt is greater than income * 6. If it is, print that no loan can be given. Otherwise, Calculate the credit amount using the given formula and print it