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
Some chronic conditions involve severe flare-ups (“active”
stage) between healthy periods (“inactive” stage). The active stage
often necessitates immediate medical treatment. Researchers looked
for biomarkers that might help identify these active stages. Here
are data on the relative abundance of the protein BPG0235 in two
simple random samples of men with the same chronic condition, 7 in
the active phase and 9 in the inactive phase:
Active Inactive
1.0 1.1
1.0 0.9
1.0 0.5
1.2 0.9
1.2 1.0
1.3 1.0
1.0 0.8
0.7
1.1
We want to know if there is a significant difference in the mean
abundance of the protein BPG0235 between men in the active stage
and men in the inactive phase. What is the test statistic of the
appropriate hypothesis test? Assume any necessary assumptions are
reasonable.
SHOW ALL WORK EVEN HOW TO CALCULATE STANDARD DEVIATION
In: Statistics and Probability
I actually did question 1-7, but I do have some problems in 8 and 9.
part I: Project Rescue (25 points) The Park Rangers protecting
our national forests typically carry communication and sighting
equipment that is used to help locate lost hikers, forest fires,
airplanes crashes and other such like. In one instance, a light
plane P crashed in a dense part of the forest, with the crash
occurring to the northeast of a ranger R who witnessed the event.
The witness was located 12 miles due east of the ranger station S.
The bearing from the witness to the crash site was 20º, while the
bearing from the Ranger Station, based on the smoke plume from the
wreckage, was 52º. Answer the questions that follow, showing work
to support your answers and rounding answers to nearest tenth,
unless otherwise indicated. Answer the “Why?” questions in complete
sentences.
1) Use the information given to draw RSP. Draw the triangle large
enough to fit the box below, labeling all given information and
measurements appropriately.
2) What is the measure of ∠ PSR? Why?
3) What is the measure of ∠ PRS?
4) What is the measure of ∠ RPS? Why
5) Can we use the Law of Sines to find the distances SP and RP?
Why/why not?
6) What is the distance SP from the ranger station to the crash
site?
7) What is the distance RP from the ranger who witnessed the crash
to the crash site?
part II: Project Rescue (15 points) Redraw the figure in Part I
in the box below. A search and rescue team T is assembling at a
point that is 7 miles due east of the ranger station S, directly
between the ranger station and the witness. Draw a line connecting
point T and point P.
8) How far is the rescue team T from the crash site?
9) What direction should they head to reach the crash site? Answer
in terms of a bearing.
In: Advanced Math
The market and Stock J have the following probability distributions. Calculate the standard deviations for the Stock J.
| Probability | r M | r J |
| 0.3 | -10% | 10% |
| 0.4 | 20% | 18% |
| 0.3 | 25% | 30% |
|
6.22% |
||
|
14.87% |
||
|
12.50% |
||
|
3.85% |
||
|
7.81% |
In: Finance
Would a person traveling at a constant 500 miles an hour feel a greater amount of force than a person traveling at a constant 50 miles an hour? Why or why not?
In: Physics
In: Statistics and Probability
| A particular brand of tires claims that its deluxe tire averages at least 50,000 miles before it needs to be replaced. From past studies of this tire, the standard deviation is known to be 8,000. A survey of owners of that tire design is conducted. From the 28 tires surveyed, the mean lifespan was 46,500 miles with a standard deviation of 9,800 miles. Using a confidence level of 95%, is the data highly inconsistent with the claim? |
In: Statistics and Probability
The epicenter of an earthquake is the point on Earth's surface directly above the earthquakes origin. A seismograph can be used to determine the distance to the epicenter of an earthquake. Seismographs are needed in three different places to locate an earthquake's epicenter. Find the location of the earthquake's epicenter if it is 3 miles away from A(2,3), 4 miles away from B(-5,3), and 5 miles away from C(-1,-2).
In: Math
The EPA sticker for a particular model of automobile claims the car has average highway mileage of 35 miles per gallon. A consumer advocacy group takes a random sample of 30 of these cars and finds that they have an average mileage of 33.6 miles per gallon with a standard deviation of 3 miles per gallon. Do the results of this test provide sufficient evidence to conclude that the actual mileage of this model is less than 35 miles per gallon? Translate this into a statistical hypothesis and carry out the test of hypothesis. Be sure to specify the null and alternative hypotheses, the value of the test statistic, the p-value, and your conclusion.
In: Statistics and Probability
A company purchases a salesman a car for $40,000; the salesman pays $2,000 for an upgraded sound system to make his time on the road more pleasant. The car has an expected salvage value of $2,000 and an expected life of 4 years or 200,000 miles.
During the first year the car was driven 45,000 miles, during the second year 40,000 miles and 50,000 miles the 3rd year
Please show the annual depreciation expense for years 1, 2, 3 using straight line depreciation, double declining balance method, and units of production method. For each method, show the car's book value at the end of year 3.
In: Accounting