Westonci.ca is your go-to source for answers, with a community ready to provide accurate and timely information. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.

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