Question: Problem 3 [Hooks' Membership] Using the classes designed in probe 1 and problem 2, write a program to simulate a bookstore. The bookstore has two
![Problem 3 [Hooks' Membership] Using the classes designed in probe 1](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/10/6718d7f465a1c_3966718d7f43bb10.jpg)
Problem 3 [Hooks' Membership] Using the classes designed in probe 1 and problem 2, write a program to simulate a bookstore. The bookstore has two types of customers: those who are members of the bookstore and those who buy books from the bookstore only occasionally. Each member 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 books purchased and the total amount spent. For every eleventh book that a member buys, the bookstore takes the average of the total amount ofthe last 10 books purchased, applies this amount as a discount, and then resets the total amount spent to D. Write a program that can process up to 1000 book titles and 50D members. Your program should contain a menu that gives the user different choices to effectively run the program; in other words, your program should be user driven
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
