Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help with the code for this assignment in my Java class! I have no idea what to do... CSE 110-Assignment #8 Maximum Points: 20
Please help with the code for this assignment in my Java class! I have no idea what to do...
CSE 110-Assignment #8 Maximum Points: 20 What this Assignment Is About . 2-D array . Searching UML diagram . Reading from files Things to check when implementing classes: Instance variables should be declared as private . Methods and constructors are declared public Use uppercase for classes. Use lower case with uppercase word separators for all other identifiers (variables, methods, objects) . Use tabs or spaces to indent code within blocks (code surrounded by braces). This includes classes, methods, and code associated with ifs, switches and loops. Be consistent with the number of spaces or tabs that you use to indent. Use comments to give a description of each method Use comments after the ending brace of classes, methods, and blocks to identify to which block it belongs Part 2: Programming: (20 points) Your assignment is to design a TicketManager class that can keep track of the number of seats available in a theater's auditorium. The TicketManager class should have a two-Dimensional array, which has 15 rows and 30 columns for all the seats available in the auditorium, also an array of double to keep track of the price of tic for each row. Each row has a different price. Use the following UML diagram to design the class: kets TicketMana + NUMROWS : static final int= 15 +NUMCOLUMNS : static final int = 30 -seats[NUMROWS]INUMCOLUMNS]: char -price [NUMROWS]: double -int: seatsSold double : totalevenue +TicketManager) +requestTickets(int, int, int): bool +purchaseTickets(int, int, int) : bool +getTotalRevenu0: double + getSeatsSold0: int + getPrice(int) : double + getSeat (int, int) : char + printTickets(int, int, int): voidStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started