Question

In: Electrical Engineering

A movie theater is planning to offer the possibility to book the seats either online or...

A movie theater is planning to offer the possibility to book the seats either online or at the kiosk of the theater. Design the booking application for the theater taking in account the following consideration:

- The theater has 100 seats only.

- More than one user may be trying to book the same seat at the same time.

- Any seat can be booked by only one user.

- A seat can be available for the kiosk agent and the online user at the same time but can be booked by only one of them.

- If the client did not book a seat online or changed his/her mind at the kiosk, the seat must be available again for booking.

Use the process synchronization techniques. You are allowed to use variables as much as you need in the design.

The code does not have to be complicated or detailed. Thanks for the help!

Solutions

Expert Solution


Related Solutions

A movie theater has at most 90 seats available. Each adult movie ticket costs $14, and...
A movie theater has at most 90 seats available. Each adult movie ticket costs $14, and each child movie ticket costs $8. To make a profit, the theater must bring in more than $852 in ticket sales per show. A) In terms of A and C, write an inequality that represents the restriction on total occupancy. B) In terms of A and C, write an inequality that represents the restriction on total ticket sales. C) Make a graph that represents...
An usher at a movie theater claims no more than half of all movie theater customers...
An usher at a movie theater claims no more than half of all movie theater customers buy something at the refreshment stand. To test the claim, the usher observes a random sample of 80 people and finds that 47 of them buy something. a) What is the Null Hypothesis and the Alternative Hypothesis for the usher's claim? b) If we use a 0.01 significance level, what is the critical value for the test? c) Calculate the value of the test...
QuadPlex Cinema is the only movie theater in Idaho Falls. The nearest rival movie theater, the...
QuadPlex Cinema is the only movie theater in Idaho Falls. The nearest rival movie theater, the Cedar Bluff Twin, is 35 miles away in Pocatello. Thus QuadPlex Cinema possesses a degree of market power. Despite having market power, QuadPlex Cinema is currently suffering losses. In a conversation with the owners of QuadPlex, the manager of the movie theater made the following suggestions: “Since QuadPlex is a local monopoly, we should just increase ticket prices until we make enough profit.” a....
Sometimes consumers don’t face the same prices. For example, a movie theater may offer cheaper tickets...
Sometimes consumers don’t face the same prices. For example, a movie theater may offer cheaper tickets to senior citizens, or local restaurants may provide student discounts. How would different prices charged to different people change our model of the consumer problem? Would people end up at points on the ICs with the same slope upon solving their consumer problems? If not, why wouldn’t they be able to improve themselves through mutually beneficial trades (keeping in mind the movie ticket and...
A movie theater company wants to see if there is a difference in the average movie...
A movie theater company wants to see if there is a difference in the average movie ticket sales in San Diego and Portland per week. They sample 20 sales from San Diego and 20 sales from Portland over a week. Test the claim using a 5% level of significance. Assume the variances are unequal and that movie sales are normally distributed. San Diego Portland 234 211 221 214 202 228 214 222 228 218 244 216 182 222 245 220...
A movie theater company wants to see if there is a difference in the average movie...
A movie theater company wants to see if there is a difference in the average movie ticket sales in San Diego and Portland per week. They sample 20 sales from San Diego and 20 sales from Portland over a week. Test the claim using a 5% level of significance. Assume the variances are unequal and that movie sales are normally distributed. Choose the correct decision and summary based on the p-value. A. Do not reject H0. There is evidence that...
A movie theater company wants to see if there is a difference in the average movie...
A movie theater company wants to see if there is a difference in the average movie ticket sales in San Diego and Portland per week. They sample 20 sales from San Diego and 20 sales from Portland over a week. Test the claim using a 5% level of significance. Assume the variances are unequal and that movie sales are normally distributed. San Diego Portland 234 211 221 214 202 228 214 222 228 218 244 216 182 222 245 220...
Think about the last movie you saw in a movie theater. What aspects of the movie...
Think about the last movie you saw in a movie theater. What aspects of the movie had international components in it? Are there more international elements included than compared to your favorite movie from 10 years ago?
Customers arrive at a movie theater at the advertised movie time only to find that they...
Customers arrive at a movie theater at the advertised movie time only to find that they have to sit through several previews and prepreview ads before the movie starts. Many complain that the time devoted to previews is too long. A preliminary sample conducted by The Wall Street Journal showed that the standard deviation of the amount of time devoted to previews was four minutes. Use that as a planning value for the standard deviation in answering the following questions....
Customers arrive at a movie theater at the advertised movie time only to find that they...
Customers arrive at a movie theater at the advertised movie time only to find that they have to sit through several previews and prepreview ads before the movie starts. Many complain that the time devoted to previews is too long. A preliminary sample conducted by The Wall Street Journal showed that the standard deviation of the amount of time devoted to previews was four minutes. Use that as a planning value for the standard deviation in answering the following questions....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT