Question: If client deposit: $ 9 0 , 0 0 0 at prevailing ineterest rates of 0 . 0 5 % a ) 1 st
If client deposit: $ at prevailing ineterest rates of
ast $ is eligible for bonus interest rates of Additional
b Remaining deposit amount will be at
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 :
Users Input: $
If input 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
Users Input: $
If input I do not need to split the amount
Finally,
Total Interest Amount AMT Eligible for Bonus Interest RatesAMT Not Eligible for Bonus interest Rates
Python Coding
def checkvalid:
while True:
try:
DailyAverageAmt floatinputHow much do you expect your your average daily amount to have in your bank account? SGD$:
return DailyAverageAmt
except ValueError:
printPlease Enter a valid numbered value that is at least $
DailyAverageAmt checkvalid
while DailyAverageAmt :
printPlease enter a value that is at least $
DailyAverageAmt checkvalid
DailyAverageIR
printfYour Daily Average Amount is: $DailyAver XB ageAmt earning at DailyAverageIR per annum.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
