Problem #4 Mike Dreskin manages a large Los Angeles movie theater complex called Cinema I, II, III, and IV. Each of the four auditoriums plays a different film; the schedule is set so that starting times are staggered 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 movie patrons per hour. Service times are assumed to follow an exponential distribution. Arrivals on a typically active day are Poisson distributed and average 210 per hour.
To determine the efficiency of the current ticket operation, Mike wishes to examine several queue operating characteristics.
(a) Find the average number of moviegoers waiting in line to purchase a ticket.
(b) What percentage of the time is the cashier busy?
(c) What is the average time that a customer spends in the system?
(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?
In: Math
In: Finance
Summary
Lewis wants you to write another script that shows a table of events at the Lyman Hall Theater over the next two weeks from the current date. He has already created three arrays for use with the script:
Lewis has already written the page content and provided style sheets for use with the page. Your job will be to write a script that selects the events that occur in the two-week window from the current date and display them in the web page.
A preview of the home page is shown above.
The style sheets and graphic files have already been created for you. Your job is to write the HTML markup.
Instructions
This Review Assignment contains interactive instructions that you can complete to ensure you've completed the instruction correctly.
After reading each instruction thoroughly, perform the requested change in the code editor to the right. You can use the Build Website button to refresh your website preview at any point and view a full-page version of your website by clicking the arrow in the top right corner of your website preview.
After you've completed an instruction, click the corresponding check box in your list of instructions. This will trigger simulated tests of your website to ensure that you successfully completed the instruction.
Click Next Step to get started!
Setup
Enter your name and the date in the comment section of lht_events.html and lht_table.js.
Link JS Files
Open the lht_events.html file and directly above the closing </head> tag, insert script elements that link the page to the lht_list.js and lht_table.js files in that order. Defer the loading and running of both script files until after the page has loaded.
You will not be tested on this instruction, but you should still complete this step.
Event List
Scroll down the document and directly after the closing
</article> tag insert a div element with the ID
eventList. It is within this element that you will
write the HTML code for the table of upcoming theater events.
(Hint : Be sure to review this file and all the support files,
noting especially the names of variables that you will be using in
the code you create.)
Variables
Go to the lht_table.js file and below the comment section, declare a variable named thisDay containing the date August 30, 2018. You will use this date to test your script.
Create a variable named tableHTML that will contain the HTML code of the events table. Add the text of the following HTML code to the initial value of the variable:
<table id='eventTable'> <caption>Upcoming Events</caption> <tr><th>Date</th><th>Event</th><th>Price</th></tr>
Lewis only wants the page to list events occurring within 14 days after the current date. Declare a variable named endDate that contains a Date object that is 14 days after the date stored in the thisDay variable.
(Hint : Use the new Date() object constructor and insert a time value that is equal to thisDay.getTime() + 14 x 24 x 60 x 60 x 1000.)
For Loop
Create a for loop that loops through the length of the eventDates array. Use i as the counter variable.
Within the for loop insert the following commands in a command block:
<tr> <td> eventDay @ eventTime </td> <td> description </td> <td> price </td> </tr>
HTML Table Code
After the for loop, add the text of the HTML code </table> to the value of the tableHTML variable.
Insert the value of the tableHTML variable into the inner HTML of the page element with the ID eventList.
<!DOCTYPE html>
<html>
<head>
<!--
New Perspectives on HTML5 and CSS3, 7th Edition
Tutorial 10
Review Assignment
Lyman Hall Theater Upcoming Events
Author:
Date:
Filename: lht_events.html
-->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Upcoming Events at the Lyman Hall Theater</title>
<link href="lht_reset.css" rel="stylesheet" />
<link href="lht_styles.css" rel="stylesheet" />
<link href="lht_events.css" rel="stylesheet" />
</head>
<body>
<header>
<img src="lht_logo2.png" alt="The Lyman Hall Theater" id="logoimg" />
<nav> <a id="navicon" href="#"><img src="lht_navicon2.png" alt="" /></a>
<ul>
<li><a href="#">home</a></li>
<li><a href="#">events</a></li>
<li><a href="#">box office</a></li>
<li><a href="#">facilities</a></li>
<li><a href="#">directions</a></li>
<li><a href="#">contact</a></li>
</ul>
</nav>
</header>
<section>
<article>
<h1>At the Theater</h1>
<p>Great shows are coming to the Lyman Hall Theater in the upcoming weeks.
The Broadway Touring Company of <a href="#">Cabaret</a> arrives for four
performances, featuring Tony-award winning actress Kayla
James. Tickets are limited, so be sure to <a href="#">order
online</a> and by calling the LHT boxoffice.
</p>
<p>Enjoy a stunning multimedia event with Edward Lee's <a href="#">Visions
of Light and Dreams</a> featuring sound, video, and interactive
demonstrations of the latest innovations in film and theater.
</p>
<p>If music is more your passion, LHT welcomes the popular group
<a href="#">San Diego Blues</a>. Want an evening of laughs?
Get your tickets now for <a href="#">Gerry Jones</a> and his
one-person show, <a href="#">Exit Stage Left</a>.
</p>
<p>For an inexpensive night out, be sure to check out LHT's
<a href="#">Classic Cinema</a> and for a delicious Sunday
brunch, join us for <a href="#">Classics Brunch</a>.
</p>
</article>
</section>
<footer>
<nav>
<ul>
<li><a href="#">Staff</a></li>
<li><a href="#">Employment Info</a></li>
<li><a href="#">Directions & Parking</a></li>
</ul>
<ul>
<li><a href="#">Box Office</a></li>
<li><a href="#">Group Rates</a></li>
<li><a href="#">Events</a></li>
</ul>
</nav>
<section>
The Lyman Hall Theater<br />
414 Leeward Drive<br />
Brookhaven, GA 30319<br />
Office: (404) 555 - 4140
</section>
</footer>
</body>
</html>
In: Computer Science
Let X have a binomial distribution with parameters
n = 25
and p. Calculate each of the following probabilities using the normal approximation (with the continuity correction) for the cases
p = 0.5, 0.6, and 0.8
and compare to the exact binomial probabilities calculated directly from the formula for
b(x; n, p).
(Round your answers to four decimal places.)
(a)
P(15 ≤ X ≤ 20)
| p |
P(15 ≤ X ≤ 20) |
P(14.5 ≤ Normal ≤ 20.5) |
|---|---|---|
| 0.5 | 1 | 2 |
| 0.6 | 3 | 4 |
| 0.8 | 5 | 6 |
(b)
P(X ≤ 15)
| p |
P(X ≤ 15) |
P(Normal ≤ 15.5) |
|---|---|---|
| 0.5 | 10 | 11 |
| 0.6 | 12 | 13 |
| 0.8 | 14 | 15 |
(c)
P(20 ≤ X)
| p |
P(20 ≤ X) |
P(19.5 ≤ Normal) |
|---|---|---|
| 0.5 | 19 | 20 |
| 0.6 | 21 | 22 |
| 0.8 | 23 | 24 |
In: Math
The equivalent synchronous impedance of a 25kVA,
400V
three-phase Y-connected synchronous generator is 0.05 + j1.6
ohm.
When the rated voltage was output under no load, the rated current
flowed by connecting the load.
Part a)
If the load power factor is 0.8, 1.0 lagging, and 0.8
lagging,
calculate the pull-up voltage, load angle, and voltage fluctuation
rate for each.
Ignore the magnetic saturation.
Part b)
If the power factor is 0.8, 1.0 lagging and 0.8 leading,
when the rated current flows through the generator at the rated
output voltage,
calculate the internal induced power, load angle, and voltage
dynamic for each.
Answer
Part a)
190.4V, 11.26 deg, 21.3%
221.8V, 14.47 deg, 4.1%
259.2V, 11.82 deg, -11.3%
Part b)
270.8V, 9.59 deg, 17.5%
239.8V, 13.93 deg, 3.8%
203.3V, 13.45 deg -12.0%
In: Electrical Engineering
2) When the real wage is above the level that equilibrates supply and demand:
Select one:
a. It creates a deadweight loss in the labor market.
b. the quantity of labor demanded exceeds the quantity supplied.
c. GDP definitely rises.
d. Interest rate rises.
3) If Central Bank A cares only about keeping the price level stable and Central Bank B cares only about keeping output at its natural level, then in response to an exogenous increase in the price of oil:
Select one:
a. both Central Bank A and Central Bank B should increase the quantity of money.
b. Central Bank A should increase the quantity of money, whereas Central Bank B should keep it stable.
c. Central Bank A should decrease the quantity of money, whereas Central Bank B should increase it.
d. both Central Bank A and Central Bank B should keep the quantity of money stable.
4) In a Keynesian Cross economy without the foreign sector, the marginal propensity to save is 0.2. Investment is 100; government expenditure is also 100. Taxes are 100. How much does total savings change if marginal propensity to save goes up from 0.2 to 0.3?
a. goes up by 90
b. goes up by 100
c. does not change
d. None of the above or cannot be determined without more information
5) Using the simple Keynesian Cross analysis, assume that the consumption function is given by C = 100 + 0.6(Y-T). If planned investment is 200 and T is 300, the level of G needed to make equilibrium Y equal 1,000 is (assume that net exports are zero):
Select one:
a. 60
b. 240
c. 250
d. 280
e. None of the above.
In: Economics
Hartman Company is trying to determine how much of each of two
products should be produced over the coming planning period. The
only serious constraints involve labor availability in three
departments. Shown below is information concerning labor
availability, labor utilization, overtime, and product
profitability.
|
Product 1 |
Product 2 |
Regular Hours Available |
Overtime Hours Available |
Cost of Overtime per Hour |
|
|
Profit per Unit |
27 |
19 |
|||
|
Dept A hours/Unit |
1 |
0.35 |
94 |
17 |
$15 |
|
Dept B hours/Unit |
0.3 |
0.2 |
46 |
11 |
$17 |
|
Dept C hours/Unit |
0.2 |
0.5 |
51 |
11 |
$11 |
If all production is done in a standard workweek, then Profit per
Unit includes the cost to pay for the workforce. But, if overtime
is needed in each department, then the Profit Function needs to be
reduced by the Cost per Hour of Overtime in Each Department
multiplied by the Number of Overtime Hours Used in Each Department.
For example, if we used 5 hours of Overtime in Department A, we
would need to Subtract $15*5 from our Profit equation.
Setup and Solve the Linear Programming Problem and determine the
number of units of Product 1 and Product 2 to produce to Maximize
Profit. Add an Additional Constraint to your LP to make sure that
ALL of the Variables are
INTEGERS
Hint: You will need 5 Decision Variables, 2 of them to determine
the production quantities, and 3 of them to determine how much
overtime to use in each of the departments.
Max Profit = $
(Do Not Use Commas) Hint: Max Profit is Between $3328 and
$3578
Number of Units of Product 1 to Produce =
Number of Units of Product 2 to Produce =
Overtime in Department A =
hours
Overtime in Department B =
hours
Overtime in Department C =
hours
In: Operations Management
Question 6 options:
Hartman Company is trying to determine how much of each of two
products should be produced over the coming planning period. The
only serious constraints involve labor availability in three
departments. Shown below is information concerning labor
availability, labor utilization, overtime, and product
profitability.
|
Product 1 |
Product 2 |
Regular Hours Available |
Overtime Hours Available |
Cost of Overtime per Hour |
|
|
Profit per Unit |
32 |
16 |
|||
|
Dept A hours/Unit |
1 |
0.35 |
90 |
19 |
$13 |
|
Dept B hours/Unit |
0.3 |
0.2 |
41 |
11 |
$21 |
|
Dept C hours/Unit |
0.2 |
0.5 |
59 |
17 |
$14 |
If all production is done in a standard workweek, then Profit per
Unit includes the cost to pay for the workforce. But, if overtime
is needed in each department, then the Profit Function needs to be
reduced by the Cost per Hour of Overtime in Each Department
multiplied by the Number of Overtime Hours Used in Each Department.
For example, if we used 5 hours of Overtime in Department A, we
would need to Subtract $13*5 from our Profit equation.
Setup and Solve the Linear Programming Problem and determine the
number of units of Product 1 and Product 2 to produce to Maximize
Profit. Add an Additional Constraint to your LP to make sure that
ALL of the Variables are
INTEGERS
Hint: You will need 5 Decision Variables, 2 of them to determine
the production quantities, and 3 of them to determine how much
overtime to use in each of the departments.
Max Profit = $
(Do Not Use Commas) Hint: Max Profit is Between $3393 and
$3743
Number of Units of Product 1 to Produce =
Number of Units of Product 2 to Produce =
Overtime in Department A =
hours
Overtime in Department B =
hours
Overtime in Department C =
hours
In: Operations Management
Question 9 options:
Hartman Company is trying to determine how much of each of two
products should be produced over the coming planning period. The
only serious constraints involve labor availability in three
departments. Shown below is information concerning labor
availability, labor utilization, overtime, and product
profitability.
|
Product 1 |
Product 2 |
Regular Hours Available |
Overtime Hours Available |
Cost of Overtime per Hour |
|
|
Profit per Unit |
34 |
18 |
|||
|
Dept A hours/Unit |
1 |
0.35 |
107 |
18 |
$17 |
|
Dept B hours/Unit |
0.3 |
0.2 |
48 |
10 |
$26 |
|
Dept C hours/Unit |
0.2 |
0.5 |
55 |
11 |
$7 |
If all production is done in a standard workweek, then Profit per
Unit includes the cost to pay for the workforce. But, if overtime
is needed in each department, then the Profit Function needs to be
reduced by the Cost per Hour of Overtime in Each Department
multiplied by the Number of Overtime Hours Used in Each Department.
For example, if we used 5 hours of Overtime in Department A, we
would need to Subtract $17*5 from our Profit equation.
Setup and Solve the Linear Programming Problem and determine the
number of units of Product 1 and Product 2 to produce to Maximize
Profit. Add an Additional Constraint to your LP to make sure that
ALL of the Variables are
INTEGERS
Hint: You will need 5 Decision Variables, 2 of them to determine
the production quantities, and 3 of them to determine how much
overtime to use in each of the departments.
Max Profit = $
(Do Not Use Commas) Hint: Max Profit is Between $4237 and
$4537
Number of Units of Product 1 to Produce =
Number of Units of Product 2 to Produce =
Overtime in Department A =
hours
Overtime in Department B =
hours
Overtime in Department C =
In: Operations Management
Hartman Company is trying to determine how much of each of two
products should be produced over the coming planning period. The
only serious constraints involve labor availability in three
departments. Shown below is information concerning labor
availability, labor utilization, overtime, and product
profitability.
|
Product 1 |
Product 2 |
Regular Hours Available |
Overtime Hours Available |
Cost of Overtime per Hour |
|
|
Profit per Unit |
29 |
17 |
|||
|
Dept A hours/Unit |
1 |
0.35 |
95 |
12 |
$22 |
|
Dept B hours/Unit |
0.3 |
0.2 |
49 |
10 |
$17 |
|
Dept C hours/Unit |
0.2 |
0.5 |
58 |
9 |
$15 |
If all production is done in a standard workweek, then Profit
per Unit includes the cost to pay for the workforce. But, if
overtime is needed in each department, then the Profit Function
needs to be reduced by the Cost per Hour of Overtime in Each
Department multiplied by the Number of Overtime Hours Used in Each
Department. For example, if we used 5 hours of Overtime in
Department A, we would need to Subtract $22*5 from our Profit
equation.
Setup and Solve the Linear Programming Problem and determine the
number of units of Product 1 and Product 2 to produce to Maximize
Profit. Add an Additional Constraint to your LP to make sure that
ALL of the Variables are
INTEGERS
Hint: You will need 5 Decision Variables, 2 of them to determine
the production quantities, and 3 of them to determine how much
overtime to use in each of the departments.
Max Profit = $
(Do Not Use Commas) Hint: Max Profit is Between $3169 and
$3569
Number of Units of Product 1 to Produce =
Number of Units of Product 2 to Produce =
Overtime in Department A =
Overtime in Department B =
Overtime in Department C =
(hours)
In: Operations Management