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, 23.06.2019 13:30
Stops: using the information learned in this course, explain three things you will not do when driving. a. b. c. explain why you will not do these things when driving. starts: using the information learned in this course, explain three things you will do when driving. a. b. c. explain why you will do these particular things when driving. explain one thing you will stop doing as a passenger. explain one thing you will start doing as a passenger.
Answers: 3
question
Computers and Technology, 23.06.2019 21:50
Description: write function lastfirst() that takes one argumentโ€”a list of strings of the format "lastname, firstname" โ€”and returns a list consisting of two lists: (a) a list of all the last names (b) a list of all the first names
Answers: 2
question
Computers and Technology, 23.06.2019 23:30
What are "open-loop" and "closed-loop" systems
Answers: 1
question
Computers and Technology, 23.06.2019 23:40
4. what is the reason for including the following code snippet in the header file animal.h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
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
Business, 11.02.2022 05:00
question
Mathematics, 11.02.2022 05:00
question
Mathematics, 11.02.2022 05:00
question
Chemistry, 11.02.2022 05:00
question
Mathematics, 11.02.2022 05:00
Questions on the website: 13722363