Question: If client deposit: $ 9 0 , 0 0 0 at prevailing ineterest rates of 0 . 0 5 % a ) 1 st

"If client deposit: $90,000 at prevailing ineterest rates of 0.05%
a)1st $80,000 is eligible for bonus interest rates of Additional 0.25%
b) Remaining deposit amount will be at 0.05%
I created the following code however it does not take care of the remaining deposit amount in b) What can I do to my coding can take care of the following condition
Example 1:
Users Input: $90,000
If input >80,000, then I will like to split the amount to
Users Input = AMT Eligible for Bonus Interest Rates + AMT Not Eligible for Bonus interest Rates.
Example 2
Users Input: $70,000
If input <=80,000, I do not need to split the amount
Finally,
Total Interest Amount =(AMT Eligible for Bonus Interest Rates*(0.05%+0.25%)+(AMT Not Eligible for Bonus interest Rates *0.05%)
Python Coding
def check_valid():
while True:
try:
DailyAverageAmt = float(input(""How much do you expect your your average daily amount to have in your bank account? SGD$: ""))
return DailyAverageAmt
except ValueError:
print(""Please Enter a valid numbered value that is at least $2000"")
DailyAverageAmt = check_valid()
while DailyAverageAmt <2000:
print(""Please enter a value that is at least $2000"")
DailyAverageAmt = check_valid()
DailyAverage_IR =0.05
print(f""Your Daily Average Amount is: ${DailyAver XB15 ageAmt}, earning at {DailyAverage_IR}% per annum. "")"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!