Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JAVA 5. (Bonus Question: 20 Points) The Discount System You are asked to write a discount system for a beauty saloon, which provides services and
JAVA
5. (Bonus Question: 20 Points) The Discount System You are asked to write a discount system for a beauty saloon, which provides services and sells beauty products. It offers 3 types of memberships: Premium, Gold and Silver. Premium, gold and silver members receive a discount of 20%, 15%, and 10%, respectively, for all services provided. Customers without membership receive no discount. All members receives a flat 10% discount on products purchased (this might change in future). Your system shall consist of three classes: Customer, Discount and Visit, as shown in the class diagram in Fig.4. It shall compute the total bill if a customer purchases Sx of products and Sy of services, for a visit. Also write a test program to exercise all the classes. The class DiscountRate contains only static variables and methods (underlined in Fig.4)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started