Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

You are writing a simple program for a company that lets employees see how much of their retirement plan they have access to. At

 

You are writing a simple program for a company that lets employees see how much of their retirement plan they have access to. At this particular company, an employee is fully vested, that is they can access all of their retirement savings, after 5 years. If an employee has been with the company less than five years, they only have access to a percentage of the funds that they have saved. If savings is the amount in their retirement plan and years is the number of years with the company, then the amount an employee may access is given by the formula: (years/5)*savings. You will first prompt the user for the number of years they have been with the company. This should be an integer value. Then, prompt the user for the amount in their retirement savings account. This should be of type double. If the employee has been with the company 5 or more years, you will report that they have access to the full amount in their account. Otherwise, you will use the formula above to figure out the amount they have access to. See the sample runs below for more details. User input appears in bold italics. Sample run 1: Enter years with the company: 7 Enter $ amount in retirement account: 4395.58 You are fully vested. Your amount available is $4395.58 Sample run 2: Enter years with the company: 3 Enter amount in retirement account: 100000 You are not fully vested. Your amount available is $60000.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Contemporary Management

Authors: Gareth Jones, Jennifer George

9th Edition

0077718372, 978-0077718374

More Books

Students explore these related Computer Network questions