Write a program to simulate a bookstore. The bookstore has twotypes of customers
ID: 3615370 • Letter: W
Question
Write a program to simulate a bookstore. The bookstore has twotypes of customers: those who are members of the bookstore andthose who buy books from the bookstore only occasionally. Eachmember has to pay a $10 yearly membership fee and receives a 5%discount on each book purchased.For each member, the bookstore keeps track of the number of bookspurchased and the total amount spent. For every eleventh book thata member buys, the bookstore takes the average of the total amountof the last 10 books purchased, applies this amount as a discount,and then resets the total amount spent to 0.
Write a program that can process up to 1000 book titles and 500members. Your program should contain a menu gives the userdifferent choices to effectively run the program; in other words,your program should be menu-driven.
Explanation / Answer
This has a strong potential to be a very large program. It says 1000 book tittles and 500 members. What kind of data structure is suggested to be used?? Array, Trees ??? And its a GUI which I am pretty good with.. but, if you have any idea of how you want it set up it would be helpful.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.