Mary has inherited $100,000 and she has put it in a money market that pays a 2%
ID: 3645313 • Letter: M
Question
Mary has inherited $100,000 and she has put it in a money market that pays a 2% interest per year. She withdraws $25,000 a year. She wants to know how many years it takes her to spend all of the money. Come up with a class to solve the problem. The class must have at least two member functions and some private variables needed. The class must also have the default constructor.Declare an object of the class in the main() and use the object to call member functions to do the desired tasks.