Home / Expert Answers / Computer Science / def-calcnewbalance-initialbalance-intrate-newbalance-initialbalance-1-intrate-100-retur-pa161

(Solved): def calcNewBalance(initialBalance, intRate): newBalance = initialBalance (1+ intRate/100 ) retur ...



student submitted image, transcription available below
def calcNewBalance(initialBalance, intRate): newBalance initialBalance intRate/100 return newBalance \# Main balance int (input ("Enter your account balance: ")) rate float(input ("Enter your savings interest rate: ")) print("Your current balance is:", calcNewBalance(balance, rate)) The program above illustrates the bank Python program that contains a function to calculate the new balance of a bank account. Another function needs to be added: calcFees. The calcFees function should have one parameter: age. If the age is greater than 65 the bank fees will be 10 dollars; otherwise, it will be 15 dollars. The bank fees should be the amount returned by the function. Afterwards, add the following instructions on the main part of the program. - Add a new input entry to input the age of the customer. - In addition to calling calcNewBalance to display the new balance (already in the program), call also the calcFees function to display the fees on a separate line. Tip: The syntax for a Python if statement is: if (some logical test): some statement else: some other statement Submission: Upload a Python program (.py format) with the solution.


We have an Answer from Expert

View Expert Answer

Expert Answer



We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe