THIS IS A JAVA PROGRAM A small bookstore has implemented a membership loyalty program.Members pay $1

THIS IS A JAVA PROGRAM A small bookstore has implemented a membership loyalty program.Members pay $15 per year to belong. In return, members receive a 5%discount on all books purchased. In addition, when they havepurchased 10 books, the (undiscounted) price of the last 10 booksis averaged, and the average is applied as a discount toward thecost of the 11th book, up to the full price of the 11th book. Ifthe discount is greater than the price of the 11th book, then the11th book is free, but there is no cash refund. (If the average ofthe last 10 books bought is $20, and the 11th book costs $17, thenthe book is free but there is no refund of the other $3. If the11th book costs $25, then the discounted price is $5.) After thediscount is applied, the information about the previous 10 books iscleared and the process starts over. The discounted price of the11th book is not counted as part of the next set of 10. . . .

"Is this question part of your assignment? We can help"

ORDER NOW