Question: 644 Chapter 9 Inheritance and Interfaces 6. Implement a class called walkupTicket to represent a walk-up event ticket. Walk-up tickets are also constructed by number,

 644 Chapter 9 Inheritance and Interfaces 6. Implement a class called
walkupTicket to represent a walk-up event ticket. Walk-up tickets are also constructed

644 Chapter 9 Inheritance and Interfaces 6. Implement a class called walkupTicket to represent a walk-up event ticket. Walk-up tickets are also constructed by number, and they have a price of S50. 7. Implement a class called AdvanceTicket to represent tickets purchased in advance. An advance ticket is con- structed with a ticket number and with the number of days in advance that the ticket was purchased. Advance tickets purchased 10 or more days before the event cost $30, and advance tickets purchased fewer than 10 days before the event cost $40 8. Implement a class called StudentAdvanceTicket to represent tickets purchased in advance by students. A student advance ticket is constructed with a ticket number and with the number of days in advance that the ticket was pur- chased. Student advance tickets purchased 10 or more days before the event cost $15, and student advance tickets purchased fewer than 10 days before the event cost $20 (half of a normal advance ticket). When a student advance ticket is printed, the string should mention that the student must show his or her student ID (for example Number: 17, Price: 15.0 (ID required)) 644 Chapter 9 Inheritance and Interfaces 6. Implement a class called walkupTicket to represent a walk-up event ticket. Walk-up tickets are also constructed by number, and they have a price of S50. 7. Implement a class called AdvanceTicket to represent tickets purchased in advance. An advance ticket is con- structed with a ticket number and with the number of days in advance that the ticket was purchased. Advance tickets purchased 10 or more days before the event cost $30, and advance tickets purchased fewer than 10 days before the event cost $40 8. Implement a class called StudentAdvanceTicket to represent tickets purchased in advance by students. A student advance ticket is constructed with a ticket number and with the number of days in advance that the ticket was pur- chased. Student advance tickets purchased 10 or more days before the event cost $15, and student advance tickets purchased fewer than 10 days before the event cost $20 (half of a normal advance ticket). When a student advance ticket is printed, the string should mention that the student must show his or her student ID (for example Number: 17, Price: 15.0 (ID required))

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!