You are writing a simple program for a company that lets employees see how much of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these computer network questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
List three specific parts of the Case Guide, Objectives and Strategy Section (See below) that you had the most difficulty understanding. Describe your current understanding of these parts. Provide...
-
Determine all the FIR filters which are specified by the lattice parameters K1 = , K2 = 0.6, K3 = -0.7, and K4 = 1/3
-
A crane driven by an electric motor lifts 5 ton of building material in one minute to a height of 50m. The motor has an efficiency of 92% and the crane has an efficiency of 96%. Sketch the block...
-
Repeat Problem 2.50 for the current I on the line.
-
The current in a cylindrical solenoid is increased smoothly from \(I_{\mathrm{i}}=0.40 \mathrm{~A}\) at \(t_{\mathrm{i}}=3.0 \mathrm{~s}\) to \(I_{\mathrm{f}}=1.20 \mathrm{~A}\) at...
-
Alleghany Mountain Power and Light is an electric utility company with a large fleet of vehicles including automobiles, light trucks, and construction equipment. The company is evaluating four...
-
Marshall's concept of external economies and diseconomies refers to: a) Changes in output resulting from changes in input levels b) The effects of production on the environment c) The benefits or...
-
Based on the information presented in the minicase, and the discussion in both Chapter 2 and this chapter, to what extent does Elon Musk fit the general charac- teristics of an entrepreneur and a...
-
Budget for Cityscape Hotel Total Budget $2,00,00,000 Breakdown Expected Percent of Total Project Cost Expected Price Hard Cost (Material, Construction) 55%-66% $116,000,000 Land 10%-21% 36,000,000...
-
1. What are the ancestors of node P? 2. What are the descendants of node K? 3. What is the maximum possible number of nodes in the tree at the level of node W? 4. What is the maximum possible number...
-
The Guidance Manual of the NHS, quoted in Real world case 5.1, contains a great deal of detail on how to calculate full absorption costs of activities. This section explains the calculation of the...
-
The elements in a binary tree are to be stored in an array, as described in the chapter. Each element is a nonnegative int value. 1. What value can you use as the dummy value, if the binary tree is...
-
A hardware store is considering purchasing the shop next door to expand capacity. The shop next door will cost 140,000 to buy. The cost of the existing shop was 80,000 but it would now sell for...
-
The National Farmers Union (NFU) has a long-standing concern about obtaining a fair price for dairy farmers who sell milk to the major supermarket chains and similar outlets. NFU Scotland is...
-
Why software engineer is important to a company
-
Review Exhibit 11.4. Analyze each product on the graph according to the characteristics that influence the rate of adoption. For example, what can you conclude from the data about the relative...
-
You have been called in to advise the owners of an exclusive new luxury hotel. For the venture to succeed, hotel employees must focus on providing customers with the highest-quality customer service...
-
1. Either alone or in a group, think about the ethical implications of the use of coercive power. 2. To what extent do managers and organizations have an ethical obligation to put limits on the...
-
Go to Chipotles webpage ( www.chipotle.com ) and click on Company. Then click on Development. Return to the main page and click on Food with Integrity. Watch one (or more) of the videos posted to...
-
Consider an unstable plant \[G(s)=\frac{s+2}{s^{3}+4 s^{2}-5 s}\] with feedback control, as shown in Figure 10.15. a. Using Routh's stability criterion, determine the range of the control gain \(K\)...
-
Consider the closed-loop control system shown in Figure 10.24. a. Using MATLAB, plot the unit-step responses of the system for the following values of \(K: 5,50\), and 500 . b. Compute the...
-
Use the Simulink block diagram built in Example 10.10 to find the unit-step responses for \(k_{\mathrm{I}}=50,500\), and 1550 . Set \(k_{\mathrm{p}}=250\) and \(k_{\mathrm{D}}=0\). Discuss the...
Study smarter with the SolutionInn App