subject

A theater needs a TicketCounter to keep track of the number of tickets sold. There are two types of ticket: regular and discount. Which technique would be the best approach to printing the number of tickets sold?Group of answer choicesCreate a getValues(int regular, int discount) method that will return the number of discount and regular priced tickets sold. Make the instance variables public so programs can access the values and print them. Create a toString() method in the class that creates a representation with the number of discount and regular priced tickets sold. Create a print() method that will print out the number of discount and regular priced tickets sold.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
Which of the following is true of operations within a spreadsheet program’s built-in functions? a. operations within parentheses, then multiplication and division, and then addition and subtraction are computed. b. operations within parentheses, then addition and subtraction, and then multiplication and division are computed. c. multiplication and division, then addition and subtraction, and then operations within parentheses are computed. d. addition and subtraction, then multiplication and division, and then operations within parentheses are computed
Answers: 2
question
Computers and Technology, 23.06.2019 11:00
How should you specify box sizes on a web page if you want the boxes to vary according to the font size of the text they contain? a. in pixels b. in inches c. as percentages d. in em units
Answers: 2
question
Computers and Technology, 24.06.2019 02:10
Aspeed limit sign that says "night" indicates the legal speed between sunset and sunrise.
Answers: 2
question
Computers and Technology, 24.06.2019 10:10
Scanning the road can be thought of as a
Answers: 2
You know the right answer?
A theater needs a TicketCounter to keep track of the number of tickets sold. There are two types of...
Questions
question
Mathematics, 28.02.2021 22:30
question
Mathematics, 28.02.2021 22:30
question
Mathematics, 28.02.2021 22:30
question
English, 28.02.2021 22:30
question
Mathematics, 28.02.2021 22:30