subject

You have just started work at your first programming job and you have been offered a salaryplus benefits as part of your employment package. One of your benefits is the option tocontribute to a 401k or a 403b plan to save for retirement. Write a program using a Stack(s)data structure thata. Captures the amount from the user they wish to contribute each yearb. Captures the percentage of interest that the user thinks they will earn each yearc. Display of the earnings they will earn each year over a 30 year period starting with themost recent year and ending with the first yearPseudocode for potential solution:(NOT REQUIRED TO BE USED)1.Capture the numerical amount to contribute (e. g. 19500)2.Store to a variable (A)3.Capture the interest rate you want to earn (B)4.Establish a variable to calculate/store the annual total (C)5.Establish a variable to store a running total (D)6.Create an empty Stack data structure (TheStack)7.Create a loop that will loop through 30 cycles for each year8.Calculate the value of A * B and set it equal to C9.Store C to the Stack10.Add C to D11.Loop until all 30 values are stored12.Display Stack values13.Display Total Value D YOUR SOLUTION MUST USE A STACK/STACKS TO STORE/PROCESS THE DATA

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:00
Our primary purpouse as electricians is to do wich of the following core concepts? a: install electrical components in a way they can be upgraded b: install electrical equiptment in a way that reduces heat c: install electrical systems in a safe manner d: only b and c
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
What is the power dissipated by a resistor with a current of 0.02 a and a resistance of 1,000 ? a. 200 w b. 20 w c. 0.4 w d. 4 w
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
You know the right answer?
You have just started work at your first programming job and you have been offered a salaryplus bene...
Questions
question
Mathematics, 28.07.2019 05:30
question
Mathematics, 28.07.2019 05:30
question
Mathematics, 28.07.2019 05:30
Questions on the website: 13722367