Question: Java Can you please help me on the Java program? Here is the requirement: selling tickets. A ticket has a String event and a double
Java
Can you please help me on the Java program?
Here is the requirement:
selling tickets.
A ticket has a String event and a double facePrice. Tickets must be either a DayOf ticket, or an Advance ticket. An Advance ticket has a double discountRate that indicates how the facePrice should be reduced.
Write a class BoxOffice that records every ticket sold and can report the total number and total sales price of a series of tickets.
Write a test class that creates several DayOf and Advance tickets, a BoxOffice object, and tests the BoxOffice reporting of the total number of tickets sold and the total sales price (not face values).
Your solution should include at lease five classes/interfaces. Follow all Java naming conventions, and use appropriate access control.
Your solution should use at least 3 of the following. Note that your use of these features should be legitimate, but if they're a bit contrived, that's ok.
superclass
abstract class
interface
JUnit test
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
