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 11:00
Ihave an iphone 8plus should i get another phone like samsung note 9 or s9 ? ?
Answers: 2
question
Computers and Technology, 22.06.2019 21:10
Dameas communication challenge is due to which factor
Answers: 2
question
Computers and Technology, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
question
Computers and Technology, 23.06.2019 18:50
What is transmission control protocol/internet protocol (tcp/ip)? software that prevents direct communication between a sending and receiving computer and is used to monitor packets for security reasons a standard that specifies the format of data as well as the rules to be followed during transmission a simple network protocol that allows the transfer of files between two computers on the internet a standard internet protocol that provides the technical foundation for the public internet as well as for large numbers of private networks
Answers: 2
You know the right answer?
You have just started work at your first programming job and you have been offered a salaryplus bene...
Questions