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 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 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 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 |
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 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 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
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 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 on a river that has a current of 3 mph. Find the speed of the tugboat in still water.
In: Math
Write a program to calculate the time to run 5 miles, 10 miles, half marathon, and full marathon if you can run at a constant speed. The distance of a half marathon is 13.1 miles and that of a full marathon is 26.2 miles. Report the time in the format of hours and minutes. Your program will prompt for your running speed (mph) as an integer.
Write a program that displays the Olympic rings. Color the rings in the Olympic colors
Both questions are in python
In: Computer Science