Thanks for the help on my last problem! I have one more thing I need help with...

Create the logic for a program that calculates and displays the amount of money you would have if you invested $3000 at 2.65 percent interest for one year.
Create a separate method to do the calculation and display the result.

1 answer

start
Declarations
num balance
balance = computeBalance()
output "After one year the balance is", balance
stop
balance = computeBalance()
num computeBalance()
Declarations
num balance
num PRINCIPAL = 3000
num INTEREST_RATE = (add interest rate)
balance = PRINCIPAL * (1 + INTEREST_RATE)
return balance