A theater needs a TicketCounter to keep track of the number of tickets sold. There are two types of ticket: regular and discount. What instance data should be used for this class?
A) String[] ticketsSold; // Each entry is either "regular" or "discount"
B) int regularTicketsSold; int discountTicketsSold;
C) ArrayList<String> ticketsSold; // Each entry is either "regular" or "discount"
D) double ticketsSold; // Add 1 for regular and 0.5 for discount tickets
Correct Answer:
Verified
Q77: A theater needs a TicketCounter to keep
Q78: If you do not include a package
Q81: Which annotation is used to mark test
Q85: Which of the following is not a
Q86: If the Math class has been imported
Q87: Which of the following is not accomplished
Q87: How would you create the class PackageSample
Q88: Consider the partial JUnit test below, designed
Q90: Consider the Checker class below. public class
Q94: Consider the Checker class below. public class
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents