Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

def calcNewBalance(initialBalance, intRate): newBalance = initialBalance (1+ intRate/100 ) return newBalance # Main balance = int (input (Enter your account balance: )) rate = float(input

image text in transcribed def calcNewBalance(initialBalance, intRate): newBalance = initialBalance (1+ 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

3. Compare and contrast an NAP and a MAE.

Answered: 1 week ago

Question

4. How is culture a contested site?

Answered: 1 week ago