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

  Methodology for use in the gdtc is the project

Your supervisor is a aware of many different system life cycle models and requires you to describe, using diagrams and an appropriate range of at least two models and to distinct approaches that are common usage.

  Business communication course write a report in which you

business communication course write a report in which you put forward the results of your research and your

  Identify several processes and concepts for managing project

Identify several processes and concepts for managing projects. Thinking about these processes and concepts, answer the following questions: Which process or concept do you feel would benefit your current organization the most? Explain.

  Determine the greatest magnitude negative number

Determine the greatest magnitude negative number one can represent in an 8-bit 2's complement code? Write your result in binary and decimal.

  MIS605 Systems Analysis and Design Assignment Problem

MIS605 Systems Analysis and Design Assignment Help and Solution, Torrens University - Assessment Writing Service - critically evaluate and recommend information

  How could you design an information system

How could you design an information system to support the interaction professor-students in the assignments review in an online education system?

  Web Site Project - Design website for Electronics Shop

HS1021 Web Design Assignment - Web Site Project, Holmes Institute, Australia. Web Site Project - Design website for Electronics Shop

  Challenges of it management

Create an initial post in which you investigate examples of IT failure and identify trends. Explain the trends you discover and detail whether or not you belive the IT failure rate is getting better or worse.

  How you plan for future enhancements to keep total life cost

Discuss how you plan for future enhancements to keep the total life cycle cost down especially when few organizations plan for sustainment cost.

  What is the problem with the waterfall model

Dealing with this situation would be quite difficult if the project was being implemented using the waterfall model. What is the problem with the waterfall model

  Purpose of a bia

Question 1: What is the goal and purpose of a BIA? Question 2: Why is a business impact analysis (BIA) an important first step in defining a business continuity plan (BCP)?

  Explain changes needed to implement the new functionalities

Analysing and designing the changes needed to implement the new functionalities in the sample solution. Before we can start the implementation we need to analyse the project and describe the changes we will be implementing

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