Lecture 11/17/2026

This commit is contained in:
Edward Bigos 2026-11-17 12:30:27 -05:00
commit bf3265103a
44 changed files with 1195 additions and 3 deletions

View file

@ -0,0 +1,16 @@
# consider the following line from the autoloan program:
principal = float(input("Enter a value for the principal: "))
if(principal < 5000.) or (principal >120000.00):
print(f"The loan value {principal} is outside the allowed limits.")
exit(-1)
rate = float(input("Enter a value for the interest rate (7 for 7%): "))
numberOfYears = float(input("Enter the number of years for the loan: "))
print(f"You entered the principal value {principal}")
print(f"You entered the rate value {rate}%")
print(f"You entered the loan term value {numberOfYears} years")