Westonci.ca makes finding answers easy, with a community of experts ready to provide you with the information you seek. Experience the ease of finding accurate answers to your questions from a knowledgeable community of professionals. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.

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