Question

In: Computer Science

Minor Cineplex The Minor Cineplex is a local cinema in Neverland that has operated since 1989....

Minor Cineplex

The Minor Cineplex is a local cinema in Neverland that has operated since 1989. It started off with only 1 theatre. Since then, the business has expanded and there are now 4 theatres. Minor Cineplex shows the same movie in every theatre. There are 20 seats in each row in all theatres.

Theatre 1, 2 and 3 have the same seating arrangements and ticket pricing scheme. Each theatre has 200 seats (i.e., 10 rows) divided equally in 2 sections: Front and Back. The ticket price is 250 Baht for the front section and 350 Baht for the back section.

Theatre 4 has only 100 premium seats in 5 rows. Ticket price is 500 Baht for all seats in row 1 to 4. The ticket price in row 5 is 700 Baht.

We are building a ticket selling system for Minor Cineplex. Note that we will only focus on building data models for each theatre and calculate the amount of tickets sold. You can assume that Minor Cineplex only sells tickets for the upcoming showtime (i.e., no advanced booking is allowed).

Design a system for Minor Cineplex so that it allows the box office staff to view and edit the movie title currently in theatres. It must allow the staff book a seat in the specified theatre (if available). The staff must be able to view the amount of tickets sold in the specified theatre as well as the total amount of tickets sold in all theatres.

Here are some design considerations:

  • How many classes do you need for this system?
  • What are they representing?
  • What would be members in each class?
    • What are the necessary fields and their data types?
    • What are methods?
  • What are the relationships between each class?

Your program should provide the following menu.

  1. Book a seat
  2. Edit movie title
  3. View sales report
  4. Exit the program

Book a seat: The staff has to enter the theatre number along with the seat information to be booked (which includes the row and the seat numbers). The staff can only book one seat at a time. A confirmation message must be shown, if the booking is successful. A staff should be notified with a different message, if the seat is already taken.

Edit movie title: Minor Cineplex’s current policy is to show the same movie in all of its theatres. Note that this policy may be changed in the future.

View sales report: The sales report must show the movie title, the number of tickets sold and the sales amount (THB) for each theatre. The report must also show the total number of tickets sold and the sales amount (THB) in all theatres.

YOUR PROGRAM SHOULD BE IMPLEMENTED USING JAVA PROGRAMMING!!

Solutions

Expert Solution

code :

public enum SeatStatus {
SEAT_BOOKED,
SEAT_NOT_BOOKED;
}
  
public enum MovieStatus {
Movie_Available,
Movie_NotAvailable;
}

public enum SeatType {
NORMAL,
EXECUTIVE,
PREMIUM,
VIP;
}

class Movie {
  
int movieId;
int theaterId;
MovieType movieType;
MovieStatus movieStatus;
}
  
class Theater {
  
int theaterId;
String theaterName;
Adress adress;
  
List<Movie> movies;
float rating;
}
  
class Booking {
int bookingId;
int userId;
int movieId;
List<Movie> bookedSeats;
int amount;
PaymentStatus status_of_payment;
Date booked_date;
Time movie_timing;
}
  Class SeatBook
{
Transaction transaction_obj;
bool seats[total_seats];
String place;
String ticketType;
  
bool check_availability();
  
int position_of_seat()
{
return seat_pos_in_theator;
}
  
void multiple tickets();
  
void final_booking()
{
place = positon_of_seat();
if (single_ticket)
continue;
else
mutliple_ticket_booking();
  
Transaction_obj.pay(ticketType, seats_booked, place);
}
}


Related Solutions

At the local cinema, you notice that there is a box office at the entrance where...
At the local cinema, you notice that there is a box office at the entrance where the cashier receives cash from customers and, with a press of a button, a machine ejects serially numbered tickets. To enter the movie theatre, a customer must present his or her ticket to the door attendant. The attendant tears the ticket in half and returns the stub to the customer. The other half of the ticket is dropped into a locked box. Required Identify...
Johnny Minor is 16 years old and he has been working odd jobs since he was...
Johnny Minor is 16 years old and he has been working odd jobs since he was about 10. Being unusually industrious, and having inherited some money from an uncle he never knew, he has managed to save enough money to buy the used car of his dreams, which happens to be a classic 1980 Porsche 911 Targa. This particular Porsche model is unusual in that it tends to appreciate in value rather than losing value by the minute. Collectors will...
Suppose a minor wants to cancel a contract after the minor has paid money to the...
Suppose a minor wants to cancel a contract after the minor has paid money to the adult for the purchase of a truck. Can the minor return the truck, even if it sustained damage after the purchase, and receive the full purchase price?  Under the traditional rule, if a minor cannot return the consideration fully, such as in the case where the property is damaged, the minor is not responsible for compensating the adult for the depreciation of the property....
As a global film movement, slow cinema seeks a universal definition of temporality rather than local...
As a global film movement, slow cinema seeks a universal definition of temporality rather than local or national ones. True False
How has the New Federalism, since 1964, affected state and local governments in the delivery of...
How has the New Federalism, since 1964, affected state and local governments in the delivery of services?
A cinema has a single ticket counter that is manned by a cashier. The cashier is...
A cinema has a single ticket counter that is manned by a cashier. The cashier is capable to handle 280 customers in an hour. Customers arrive at the counter at the rate of four customers per minute. Daniel, the owner who studied queuing models feels that all the seven assumptions for a single-channel model are met. By assuming Exponential service times and Poisson arrival rate, answer the following questions. a) State three assumptions mentioned above. b) Determine the average number...
In a far away country called Neverland, the economy has the following structure: Goods Market: C...
In a far away country called Neverland, the economy has the following structure: Goods Market: C = 200+ 0.8Y – 500r I = 200 – 500r G = 196 T = 20+ 0.25Y Asset Market: MP = 0.5Y – 250i MS = 9890 T = 0.10 Labor Market: Y = 1000 (a) Find the equilibrium real and nominal interest rates, price level, consumption and investment. (b) Suppose a deadly epidemic hits Neverland and the government imposes a curfew in the...
A sportswriter wants to know how strongly Lafayette residents support the local minor league baseball team,...
A sportswriter wants to know how strongly Lafayette residents support the local minor league baseball team, the Lafayette Leopards.  She stands outside the stadium before a game and interviews the first 20 people who enter the stadium. The sample for the survey is: a. all residents of Lafayette. b. all people attending the game the day the survey was conducted. c. all Leopard fans. d. the sportswriter. e. the 20 people who gave the sportswriter their opinion.
Amira is a 27-year-old Syrian refugee who has been residing in a local homeless shelter since...
Amira is a 27-year-old Syrian refugee who has been residing in a local homeless shelter since her arrival here in the United States 4 weeks ago. She was brought into the emergency room this morning via squad after being found by a shelter employee sitting in a pool of blood on the bathroom floor crying and holding her abdomen. Due to her limited English speaking abilities, she is unable to provide specific details as to her complaints but the shelter...
Amira is a 27-year-old Syrian refugee who has been residing in a local homeless shelter since...
Amira is a 27-year-old Syrian refugee who has been residing in a local homeless shelter since her arrival here in the United States 4 weeks ago. She was brought into the emergency room this morning via squad after being found by a shelter employee sitting in a pool of blood on the bathroom floor crying and holding her abdomen. Due to her limited English speaking abilities, she is unable to provide specific details as to her complaints but the shelter...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT