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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!