Question: Please help me with this following java 2 code Given the following class hierarchy: Interface Discount Club Discount presentage :0.05 calcDiscount():double VisitorName :String implements Members

Please help me with this following java 2 code Please help me with this following java 2 code Given the following

Given the following class hierarchy: Interface Discount Club Discount presentage :0.05 calcDiscount():double VisitorName :String implements Members Guests Fees : double Participation: String calc Discount():double FindCost(): double PricePerHour : double Hours: int FindCost():double Implement the classes knowing that: o Club class is an abstract class o Participation can be weekly, monthly and for yearly o Fees depend on the participation type as follows: Fees=15JD for weekly participation Fees=50JD for monthly participation Fees=110JD for yearly participation o calc Discount():returns value of fees* Discount presentage o FindCost() in Members class returns the fees- calc Discount FindCost() in Guests class return the pricePerHours * hours Create a testing class that ask the user to determine the type of participation in a club whether Members or Guests Display in a nice form the content of the created object

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 Databases Questions!