I need help writing pseudocode for this problem:

Design a retirement planning calculator for skulling financial services
• Allow a user enter a number of working years remaining in the user career and the annual amount of money the user can save
• Assume that the user earns three percent simple interest on saving annually.
• Program ouput is a schedule that lists each year number in retirement starting with year 0 and the user saving at the start of that year.
• Assume that the user spends 50,000 per year in retirement and then earns three percent interest on the remaining balance end the list after 40 years or when the user balance is 0 or less which ever comes first.

1 answer

```
BEGIN
PROMPT "Enter the number of working years remaining: " -> years_remaining
PROMPT "Enter the annual amount you can save: " -> annual_savings

DECLARE balance = 0

FOR year = 1 TO years_remaining
balance = balance + annual_savings
balance = balance * 1.03
END FOR

PRINT "Retirement Schedule:"
PRINT "Year 0: " + balance

DECLARE retired_year = 0

WHILE retired_year < 40 AND balance > 0
retired_year = retired_year + 1

balance = balance - 50000
IF balance > 0
balance = balance * 1.03
ELSE
balance = 0
END IF

PRINT "Year " + retired_year + ": " + balance
END WHILE
END
```