Computers and Technology

The purpose of this exercise is to model the types of tickets that might be sold for campus events. all tickets will have strings for the venue, event name, and date. each ticket will also have a base price. create an abstract class ticket with the following constructor: public ticket(string venue, string event, string date, double baseprice) provide getters for the venue, event, date and baseprice provide a method int getnumberofholders() that returns 1. provide a tostring method provide an abstract method to return the actual cost of this transaction double getprice() create a subclass advanceticket for tickets bought in advance at a discount. the constructor for advanceticket should be public advanceticket(string venue, string event, string date, double baseprice, double discount). the discount value is a ratio for reducing the baseprice of the ticket.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:10, passions3534ovf6dt
Which activity should be part of a long-term plan to positively affect yourhealth? oa. wearing regular clothing when handling toxinsob. not worrying about secondhand smokeoc. avoiding excessive exposure to sunlightod. drinking only well water
Answers: 1
image
Computers and Technology, 22.06.2019 22:30, MoneyMike42
Alex’s family members live in different parts of the world. they would like to discuss the wedding plans of one of their distant relatives. however, alex wants all the family members to talk to each other simultaneously so that they can make decisions quickly. which mode of internet communication should they use? a. blog b. email c. wiki d. message board e. instant messaging
Answers: 2
image
Computers and Technology, 23.06.2019 00:00, puppylove899
Which is the correct sequence of steps to set up a document in landscape orientation? a. select page setup from the file menu. then click the margins tab and select landscape. b. select page setup from the edit menu. then click the margins tab and select landscape. c. select page setup from the insert menu. then click the margins tab and select landscape. d. select page setup from the format menu. then click the margins tab and select landscape
Answers: 1
image
Computers and Technology, 23.06.2019 16:30, saintsfan2004
How to do this programming flowchart?
Answers: 3
Do you know the correct answer?
The purpose of this exercise is to model the types of tickets that might be sold for campus events....

Questions in other subjects:

Konu
Mathematics, 05.05.2020 05:08
Konu
Mathematics, 05.05.2020 05:08
Konu
Mathematics, 05.05.2020 05:08