Connect with a global community of knowledgeable individuals on IDNLearn.com. Whether your question is simple or complex, our community is here to provide detailed and trustworthy answers quickly and effectively.

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 .


Sagot :

Answer:

please mark me brainlist

Explanation:

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

Algorithms are used as prototypes of an actual program, and they are not bounded by the syntax of a programming language

The required algorithm is as follows:

  • Start
  • Input fullName, currentAge, retirementAge, retirementSavings, retireAmount
  • yearsRetire =retirementAge - currentAge
  • AmountSavings = retireAmount - retirementSavings
  • display name, yearsRetire, AmountSavings
  • Stop

Read more about algorithms at:

https://brainly.com/question/24793921

Thank you for joining our conversation. Don't hesitate to return anytime to find answers to your questions. Let's continue sharing knowledge and experiences! Thank you for choosing IDNLearn.com for your queries. We’re here to provide accurate answers, so visit us again soon.