Write an algorithm (in pseudocode) for the following Scenario. You will need to build a program that provides retirement estimates based on user inputs. Your algorithm will ask the user to provide the following information: Full Name Current Age Desired Retirement Age Current Retirement Savings Amount You Need to Retire The program will need to determine the years remaining until retirement and how much is needed to reach the investment goal. Finally, it will print a message to the screen that says: The name, How long until you reach retirement age and How much is needed to be saved between now and then This is not to be written in any programming language--it must be written in pseudocode .
Should I use the word set? or just do name=("Full name") ????
set Name to ("Full Name")
set Age to ("Current Age")
set DesiredRetAge to ("Desired Retirement Age")
set CurRetSaving to ("Current Retirement Savings")
set amtforret to ("Amount you need to retire")
Here i am providing the algorithm for the above scenerio. Hope it helps. Please give me a like for my work.
ALGORITHM :
RetirementEstimeate():
BEGIN:
name := read("Full Name")
curAge:= read("Current Age")
desiredRetAge := read("Desired Retirement Age")
curRetSavings:= read("Current Retirement Savings")
amtForRet := read("Amount You Need to Retire")
yrsUntillRet := desiredRetAge - curAge
moneyToBeSaved := amtForRet - curRetSavings
print("Name = ", name)
print("Number of years left to reach retirement age = ", yrsUntillRet)
print("Money to be saved from now on untill you reach your retirement age = ", moneyToBeSaved)
END
Thank you. please like.
Get Answers For Free
Most questions answered within 1 hours.