Calculate the next years retirement savings

Assignment Help Software Engineering
Reference no: EM132644207

Question 1. RetirementSimulator should contain one main method that drives the entire simulation. There should he very little branching code in main . It should just call methods.

Question 2. A methodcalled userInputc This method should be responsible for gathering and verifying the user's inputs. If the user enters an invalid value, they should be prompted to re-enter the information until they enter a valid value. The user should be prompted for the following information:
• Initial Investment: The amount of money they currently have in their retirement account.
• Initial Salary: Their current salary.
• Salary Investment Range: The range (an upper and lower bound) of the percentage of salary they expect to save for retirement for any given year. The lower bound should not be below zero, and the upper bound should not be less than the lower bound.
• Investment Return Range:The range (an upper and lower bound), as a percentage, they expect as a return on their on investments. The lower bound can be negative as investments do lose money sometimes. Of course the upper bound should not be less than the lower bound.
• Yearly Raise Range: The range (an upper and lower bound) of percentage they expect their salary to increase in any given year. The lower bound can be negative but should not go below -100%, and the upper bound should not be less than the lower bound.
• Years to Retirement: The number of years until they plan to retire (this should be whole number -- no partial years.)

1. A runsimulation method. This method is responsible for creating a year-by-year simulation of the user's retirement account. For every year until the user can retire, runSimulation should randomly generate a number within the salary investment range. This number should be used to calculate the amount of money to be added to the investment account for that year. The simulation should then randomly generate a number within the investment return range. This number should be used to calculate how much the total investments earned (or lost) for that year. The investment total for that year should be adjusted to reflect the change in value. Finally, the method should randomly generate a number in the yearly raise range and adjust the salary accordingly. This new salary will be used to calculate the next year's retirement savings. Your simulation should contain a year 0 for the investment account that only includes the initial investment amount.

Question 2. A printResults method. It should display all the original values the user entered. It should then display the minimum, maximum, and average value the simulation generated for the yearly percentage of salary saved, the yearly rate of return, and the yearly salary increase, as well as the maximum salary the simulation used. Finally, it should display a histogram that represents the yearly changes in the user's investment account. In the histogram, the horizontal bars should be scaled such that the year in which the account had the most money has a bar 100 # characters long. Each bar should be followed by the total amount of money in the account that year (only 2 decimal points should be displayed).

Reference no: EM132644207

Questions Cloud

Problem - pushing the envelope on year-end planning : Problem - Pushing the Envelope on Year-End Planning - What is the motivation behind the tax department's recommendation, and is such year-end planning ethical
How the internet impacts consumers by offering benefits : Explain how the Internet impacts consumers, businesses, marketers, and society by offering significant benefits as well as challenges.
Topic of your dissertation centered on the problem : Write the Introduction to the Topic of your dissertation centered on the Problem for your research.
Develop a written message that states the message clearly : Develop a written message that states the message clearly. Describe how you would present the negative message in person. Draw on the four parts of a negative.
Calculate the next years retirement savings : Calculate the next years retirement savings. Your simulation should contain a year 0 for the investment account that only includes the initial investment
How the recruitment strategies are effective : Research an article regarding an organization's recruitment challenges. Explain what they are in your summary. In addition, include your experience.
Discuss the role of carbohydrates in cells : Discuss the role of carbohydrates in cells and in the extracellular materials of animals and plants
What are the ethical issues involved with prenatal diagnosis : What are the ethical issues involved with prenatal diagnosis of each of the following genetic diseases: Down syndrome, anencephaly, and Huntington's disease?
How you will use this information to create a marketing plan : During the analysis stage, you consider external factors that pose possible threats to or provide opportunities for your organization and compare these factors.

Reviews

Write a Review

Software Engineering Questions & Answers

  Research report on software design

Write a Research Report on software design and answer diffrent type of questions related to design. Report contain diffrent basic questions related to software design.

  A case study in c to java conversion and extensibility

A Case Study in C to Java Conversion and Extensibility

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Write an report on a significant software security

Write an report on a significant software security

  Development of a small software system

Analysis, design and development of a small software system.

  Systems analysis and design requirements

Systems Analysis and Design requirements

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  Frame diagrams

Prepare a frame diagram for the software systems.

  Identified systems and elements of the sap system

Identify computing devices, which could be used to support Your Improved Process

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Explain the characteristics of visual studio 2005

Explain the characteristics of Visual Studio 2005.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd