Explore Westonci.ca, the leading Q&A site where experts provide accurate and helpful answers to all your questions. Experience the convenience of getting accurate answers to your questions from a dedicated community of professionals. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A 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

We appreciate your visit. Our platform is always here to offer accurate and reliable answers. Return anytime. Thank you for your visit. We're committed to providing you with the best information available. Return anytime for more. Keep exploring Westonci.ca for more insightful answers to your questions. We're here to help.