Questions
Write a javascript code to Create a function called Hotel that takes Room no, Customer name....

Write a javascript code to Create a function called Hotel that takes Room no, Customer name. amount paid. Write a code to call hotel function for each customer and display details of customers lodging in rooms with even room numbers.
I need only js and html code. no css
pls take screenshot of output , else I might dislike
thanks

In: Computer Science

Consider the case of a sheep farmer who lives next door to an African Safari theme...

Consider the case of a sheep farmer who lives next door to an African Safari theme park with dangerous lions. If the lions come in contact with the sheep, they kill them and eat them, costing the sheep farmer damages of $15,000. However, the theme park can build a fence around the lions for $6000. In the alternative, the sheep farmer can fence off his pasture for $8000. Assume that it costs the sheep farmer and the Safari park each $2000 to hire a lawyer if they have to negotiate an agreement between them. What is the efficient outcome here? Why? Suppose that the Safari Park is granted a right of free roaming so that it does not have to fence off its animals and is not liable for any damages they cause. What is the likely outcome now? Will the sheep farmer and the Safari negotiate? Why or why not? Now suppose that the cost of legal advice drops to $500 in part b). How does that change the likely outcome? Why? Assume the legal rule changes, so that the sheep farmer is granted right to safe grazing. If the Safari is held liable for damages to sheep, what is the likely outcome?

In: Economics

Suppose Tokyo is planning to construct a new public park. Based on some market research, they...

Suppose Tokyo is planning to construct a new public park. Based on some market research, they have determined that the town’s 50 residents can be divided into two types with respect to their benefit from this public good. 20 of the town’s residents are of Type 1 and the other 30 residents are of Type 2. Each resident's individual demand for acres of park space is given by:

Type 1: QD = 20 – P

Type 2: QD = 40 – 2P

a. Solve for the aggregate demand of Tokyo’s 50 residents as a function of the number of acres. Be sure to write down equations for each section of the aggregate demand curve, as well as the interval of quantities each section spans.

b. Graph the aggregate demand curve calculated in part a. Make sure to label both intercepts, slopes, and the intersection of the two sections.

c. Suppose each acre of public park has a marginal cost of MC = 200 + Q . Solve for the socially efficient number of acres for the town to construct.

d. Calculate the total surplus the 50 residents of Tokyo's gain from constructing this public park.

In: Economics

The data in the table, from a survey of resort hotels with comparable rates on Hilton...

The data in the table, from a survey of resort hotels with comparable rates on Hilton Head Island, show that room occupancy during the off-season (November through February) is related to the price charged for a basic room.

Price per Day $ Occupancy Rate %
104 53
134 47
143 46
149 45
164 40
194 32
  • First make a linear equation using linear regression on your calculator where x = price and y = occupancy rate.
  • Convert occupancy rate to quantity of rooms in a 200-room hotel.
  • Write down a revenue function for a 200-room hotel.
  • What price per day will maximize the daily off-season revenue for a typical 200-room hotel? Use Calculus to determine the maximum.
  • If this 200-room hotel has daily operating costs of $5510 plus $30 per occupied room. What price will maximize the daily profit during the off-season? Again use calculus to determine the maximum

More detailed instructions are given on page 690 of the textbook (12th edition).

In: Statistics and Probability

A survey of 1060people who took trips revealed that 94 of them included a visit to...

A survey of 1060people who took trips revealed that 94 of them included a visit to a theme park. Based on those survey results, a management consultant claims that less than 11 % of trips include a theme park visit. Test this claim using the ?=0.01significance level.

(a) The test statistic is ___

(b) The P-value is ___

(c) The conclusion is  

A. There is sufficient evidence to support the claim that less than 11 % of trips include a theme park visit.
B. There is not sufficient evidence to support the claim that less than 11 % of trips include a theme park visit.

Independent random samples, each containing 90 observations, were selected from two populations. The samples from populations 1 and 2 produced 36 and 26 successes, respectively.
Test ?0:(?1−?2)=0against ??:(?1−?2)>0 Use ?=0.1

(a) The test statistic is ___

(b) The P-value is ___

(c) The final conclusion is
A. There is not sufficient evidence to reject the null hypothesis that (?1−?2)=0
B. We can reject the null hypothesis that (?1−?2)=0 and conclude that (?1−?2)>0

In: Math

Consider a new hotel deciding on cleaning staff hiring for the upcoming season. Cleaning times depend...

Consider a new hotel deciding on cleaning staff hiring for the upcoming season. Cleaning times depend on whether it is a stay-over room or a check-out. Suppose that a guest will check-out on a given day with probability 40%. From your experience in similar hotels you estimate that a stay-over room cleaning time is well-described with normal distribution with average 15 minutes and standard deviation 1 minute. Check-out room cleaning time is also normal but with average 30 minutes and standard deviation 10 minutes.

i. Consider an occupied room (stay-over or check-out), what is the average cleaning time for such a room?

ii. Find the variance for the cleaning time for an occupied room.

iii. Suppose that the hotel has 200 rooms, and you estimate that on a given day a room will be occupied with probability 90%. Only occupied rooms need cleaning. Find the average total cleaning time for the hotel. iv. Find the variance of the total cleaning time for the hotel.

Hints: remember var(X) = EX^2 − (EX)^2 .

In: Math

Project 1: Frequent Flyer Miles Calculator Write a Ruby program that calculates how many frequent flyer...

Project 1: Frequent Flyer Miles Calculator

Write a Ruby program that calculates how many frequent flyer miles are needes for a free ticket on a new startup airline, CorsairAir. Frequent flyer miles are charged for a free ticket depending on the class of service (more for first class, less for coach), depending on the day flying (more if flying on Friday, Saturday or Monday, less for other days of the week), depending on the distance traveled, and a surcharge if flying to Canada, Mexico or the Carribean. Tickets start with a cost of 10,000 frequent flyer miles. Then, you should calculate the distance charge which is 1,000 frequent flyer miles for each 250 miles flown. Then, you should charge an additional 40% charge of frequent flyer miles if the passenger wants to fly first class. If flying on a Friday, Saturday or Monday, the ticket will cost an additional 5,000 frequent flyer miles. Travel to Canada, Mexico or the Carribean needs to cost an additional 7,500 frequent flyer miles. Be sure your program does not allow for negative miles flown or incorrect answers to the yes/no questions asked.
The sample program dialogs below should help you to see how to perform this calculation.

CorsairAir Calculator
How far are your flying:-20
Sorry Charlie!

Continue(y/n)? y

How far are you flying (in miles):500
Want first class (y/n):y
Flying on a Friday, Saturday or Monday (y/n):n
Flying to Canada, Mexico or the Carribean (y/n):n
10000 base cost
2000 distance charge
4800 First class charge
You will need 16800 frequent flyer miles for this ticket. Enjoy your trip!

Continue(y/n)? y

How far are you flying (in miles):500
Want first class (y/n):n
Flying on a Friday, Saturday or Monday (y/n):y
Flying to Canada, Mexico or the Carribean (y/n):n
10000 base cost
2000 distance charge
5000 day of the week charge
You will need 17000 frequent flyer miles for this ticket. Enjoy your trip!

Continue(y/n)? y

How far are you flying (in miles):500
Want first class (y/n):n
Flying on a Friday, Saturday or Monday (y/n):y
Flying to Canada, Mexico or the Carribean (y/n):foobar
Sorry Charlie!

Continue(y/n)? y

How far are you flying (in miles):500
Want first class (y/n):n
Flying on a Friday, Saturday or Monday (y/n):n
Flying to Canada, Mexico or the Carribean (y/n):n
10000 base cost
2000 distance charge
You will need 12000 frequent flyer miles for this ticket. Enjoy your trip!

Continue(y/n)? n

In: Computer Science

the average annual miles driven per vehicle in the United States is 11.1 thousand miles, with...

the average annual miles driven per vehicle in the United States is 11.1 thousand miles, with σ ≈ 600 miles. Suppose that a random sample of 36 vehicles owned by residents of Chicago showed that the average mileage driven last year was 10.8 thousand miles. Does this indicate that the average miles driven per vehicle in Chicago is different from the national average? Use a 5% level of significance.

a. State the null and alternative hypotheses ?0: ?1:

b.What calculator test will you use? List the requirements that must be met to use this test, and indicate whether the conditions are met in this problem.

c. Run the calculator test and obtain the P-value.

d. Based on your P-value, will you reject or fail to reject the null hypothesis?

e. Interpret your conclusion from part d in the context of this problem.

In: Statistics and Probability

A fishing boat had to travel 4 miles east and 9 miles south to avoid a...

A fishing boat had to travel 4 miles east and 9 miles south to avoid a storm. How much further did they travel than their original route?

In: Math

A tugboat goes 24 miles upstream and 28 miles downstream in a total of 8 hours...

A tugboat goes 24 miles upstream and 28 miles downstream in a total of 8 hours on a river that has a current of 3 mph. Find the speed of the tugboat in still water.

In: Math