Questions
Hotel California is a small modern-style hotel located not too far from the Central Bangkok District....

Hotel California is a small modern-style hotel located not too far from the Central Bangkok District. Your job is to write a simple piece of software to manage the room occupancy. The hotel has two buildings; each building has four floors; and each floor has a different number of rooms. Building A has five rooms on each floor. Building B has four rooms on each floor. Each room is graded with Standard, Deluxe, and Suite, and the rates per night are $100, $250, and $600 respectively. In both buildings, the rooms on the first and the second floors are Standard; the rooms on the third floor are Deluxe; and the rooms on the fourth floor are Suite.

Write a program that allows the hotel front desk to reserve a room for its customers. When a customer reserves a room, he needs to provide his name (first name and last name), his phone number and the room grade. The system must check for the availability of that room grade. If the preferred room grade is available, the reservation number will be generated and the room number will be assigned to that reservation. If there are no rooms of that grade available, a proper message must be shown.

Note that the hotel policy allows only 1 room with 1-night stay per booking. If the customer wants to book more than one rooms, he needs to make more reservations. The hotel allows the room to be booked only one day in advance. Hence, the system will only have the booking for tomorrow's check-in.

The front desk should also be able to record the payment for a reservation during the customer's check-out process (given a reservation number, the customer's name or the customer's phone number). If the customer has more than one reservations made on that day, the list of reservations must be shown so the front desk can apply the payment to such a reservation. In order to keep track of the hotel's income, the staff should be able to print the sales reports for each building (grouped by the room grades).

Use java to Design and implement the system for Hotel California. Comment on methods and functions to explain the logic of your code

In: Computer Science

Playland at Pacific National Exhibition is an amusement park offering 31 different rides (including 4 rollercoasters...

Playland at Pacific National Exhibition is an amusement park offering 31 different rides (including 4 rollercoasters and 1 water ride). The guests who are 48” or taller can go on any ride they want and so they get more value from visiting the park; let us say their individual demand is given by P = 5 – 0.25qO, where P is the price per ride ($ per ride) and qO is the number of the rides (per day) (the subscript O stands for “One Day;” that’s how the park calls its passes for the guests who are 48” or taller). The guests who are under 48” are not allowed on certain rides so they get less value from visiting the park; let us say their individual demand is given by P = 4 – 0.25qJ, where P is the price per ride ($ per ride) and qJ is the number of the rides (per day) (the subscript J stands for “Jr. One Day;” that’s how the park calls its passes for the guests under 48”). Assume it costs the park flat ¢25 per guest to operate a single ride, and it costs the park flat ¢75 to issue a single ticket to a ride. Assume there are 500 guests 48” or taller and 500 guests under 48” on an average day. We can consider Playland a monopolist in Vancouver.

If Playland employed a second-degree price discrimination scheme (single ride tickets are issued, each rider receives a book of tickets [qO or qJ]),

10. what would be the size qO of a package for guests 48” or taller (number of rides with a One Day admission)?

11. what would be the price TO of a package for guests 48” or taller ($ for a One Day admission)?

12. what would be the size qJ of a package for guests under 48” (number of rides with a Jr. One Day admission)?

13. what would be the price TJ of a package for guests under 48” ($ for a Jr. One Day admission)? 14. what is Playland’s profit on an average day ($ per day)? Assume zero fixed cost.

In: Economics

SOLVE IN C: Given numRows and numColumns, print a list of allseats in a theater....

SOLVE IN C: Given numRows and numColumns, print a list of all seats in a theater. Rows are numbered, columns lettered, as in 1A or 3E. Print a space after each seat, including after the last. Ex: numRows = 2 and numColumns = 3 prints:

1A 1B 1C 2A 2B 2C


In: Computer Science

The opera theater manager calculates that 15% of the opera tickets for tonight's show have been...

The opera theater manager calculates that 15% of the opera tickets for tonight's show have been sold. If the manager is accurate, what is the probability that the proportion of tickets sold in a sample of 690 tickets would differ from the population proportion by more than 4% ? Round your answer to four decimal places.

In: Statistics and Probability

Twenty people check their hats at a theater. In how many ways can their hats be...

Twenty people check their hats at a theater. In how many ways can their hats be returned so that

(a) no one receives his or her own hat?

(b) at least one person receives his or her own hat?

(c) exactly one person receives his or her own hat?

In: Statistics and Probability

At the movies: A movie theater is considering a showing of Puppet Master for a 80's...

At the movies: A movie theater is considering a showing of Puppet Master for a 80's thowback night. In order to ensure the success of the evening, they've asked a random sample of 53 patrons whether they would come to the showing or not. Of the 53 patrons, 30 said that they would come to see the film. Construct a 95% confidence interval to determine the true proportion of all patrons who would be interested in attending the showing.

a) What is the point estimate for the true proportion of interested patrons? (please input a proportion accurate to four decimal places)

b) Complete the interpretation of the confidence interval. Please provide the bounds for the confidence interval in decimal form, accurate to four decimal places, and list the lower bound first.
"We are ... % confident that the true proportion of patrons interested in attending the showing of Puppet Master is between ... and ... "

c) The theater is only willing to show Puppet Master if they are confident that at least 40% of their patrons would be interested in seeing the film. Should they show it?

In: Statistics and Probability

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 your inequalities. D) Which scenario satisfies the restriction on total occupancy but does not produce enough ticket sales? E) Which scenario does not satisfy the restriction on total occupancy but does produce enough ticket sales? F) Which scenario does not satisfy the restriction on total occupancy but does produce enough ticket sales? G) Which scenario satisfies the restriction on total occupancy and also produces enough ticket sales? 

In: Math

part 2 Duque Vergere manages a Do or Die Theater complex called Cinema I, II, III,...

part 2

Duque Vergere manages a Do or Die Theater complex called Cinema I, II, III, and IV. Each of the four auditoriums plays a different film; the schedule staggers starting times to avoid the large crowds that would occur if all four movies started at the same time. The theater has a single ticket booth and a cashier who can maintain an average service rate of 280 patrons per hour. Service times are assumed to follow an exponential distribution. Arrivals on a normally active day are Poisson distributed and average 210 per hour. To determine the efficiency of the current ticket operation, Duque Vergere wishes to examine several queue-operating characteristics.

d.) What is the average time spent waiting in line to get to the ticket window?
e.) What is the probability that there are more than two people in the system? More than three people? More than four?

In: Operations Management

I need step by step instructions of inserting these into a heap. this, is, the, house,...

I need step by step instructions of inserting these into a heap. this, is, the, house, that, jack, built. They should be inserted in this sequence. THen swap the first and last variables and do it again. I know the answer is suppose to be but not sure how I'm suppose to get that answer.   

2nd iteration would be.   built, is, the house, that jack, this.

I know the ansers in array format would be just keep getting it wrong on my own:

1. built | is | house | this | that | the | jack
2. built | house | jack | is | that | the | this

In: Computer Science

Arnold believes he faces health costs in the current year of either $1000 with probability 0.8...

Arnold believes he faces health costs in the current year of either $1000 with
probability 0.8 or costs of $5000 with probability 0.2.
(a) Find the mean and variance of the costs that Arnold faces. (For the variance, you could turn this into a sample of 10 individuals. You may also use proportions instead and have the total number of observations be 1).
(b) Given your answer in part (a), should Arnold purchase an insurance policy that
completely covers his losses if the annual premium of the policy is $2000? Explain your
answer.
(c) The company that offered this insurance policy insures 10,000 people with exactly the
same distribution of health losses as that of Arnold. Calculate the standard error that the
insurance company faces in the average claim per individual insured. (Hint: use your
answer in part (a)).
(d) It can be shown that 95 percent of the time the average claim size will equal the
expected average claim plus or minus 1.96 times the standard error of the average
claim. Give this range for the insurance company considered in part (c). Is the insurance
company taking a large risk in selling this insurance policy?

In: Statistics and Probability