Questions
1 – Create a webpage that contains a table with exactly three rows and two columns....

  1. 1 – Create a webpage that contains a table with exactly three rows and two columns.
  1. The first row will contain a table heading containing the name of a US National Park, that spans across all columns. Hint: use the colspan attribute inside the opening th tag
  2. Give the table heading an onmouseover that will change the text of the heading when it is moused over to read My Favorites Park! (Hint: use innerHTML). Use onmouseout to change it back.
  3. The second and third rows will contain 2 thumbnail(small) images each. (See Creating Square Thumbnails section below).
  • These are images from the National Park that you selected
  • Remember your code, pages, images will not be like anyone else’s. When they are compared you do not want your file to be flagged.
  1. Use the anchor element on the thumbnail images, so that each thumbnail image opens a larger version of the same image in a new tab. (Hint: if you give the target a name, you can have them all open in the same tab rather than using _blank and having a new tab open each time one is clicked. This avoids opening too many tabs.)
  2. Apply style to the table. Again, your table will not be like anyone else’s. Your work is to be your own work.
  3. Write the JavaScript code so that each thumbnail image in the table opens the larger original image in the large cell in row four/five of the table when the thumbnail is clicked.
    1. E.g., clicking on dog_small.png should cause dog.png to open in the large cell of the table as a 300px by 300px image replacing the image that was previously there.
    2. Note: Write a function to replace the large image with the new image.
    3. Hint: The onclick will just call the function.

In: Computer Science

(1) a. sentence generation The sentence you need to generate is shown below: Sentence: John fed...

(1) a. sentence generation

The sentence you need to generate is shown below:

Sentence: John fed a bear in the park.

In this question, you should start from the target structure, a sentence (= S). Then you expand S by applying the rule S --> S PP. There is another rule that can expand S, namely S --> NP VP. However, if you apply S --> NP VP before S --> S PP, you will not be able to include PP. Therefore, S --> S PP is the correct rule to apply first, as has been given in the table below (together with two other steps). Remember to insert the lexical items when you get to a leaf node like D or N where no rule can be further applied. If your answers are correct, then all the 14 blanks should be filled.

The rules and lexicon that you need to generate the sentence are given as below:

Rules:

S --> NP VP
NP --> D NP
VP --> V PP
VP --> V NP
S --> S PP
PP --> P NP
AdjP --> Adv Adj
NP --> N
CP --> C S
Lexicon:

V --> saw, kicked, fed

P --> in, at

D --> a, the

N --> John, bear, park

You will need only a subset of the rules for this question.

Step

Sentence generating process

0 S

1 S --> S PP

2 S --> NP VP

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

Done!

(1)   b. Expand the rules and lexicon

What do you need to add to the previous rules and lexicon if you want to generate the following sentence:

The boy saw a brown bear in the park.

New rule(s) that needs to be added:

____________________

New lexical item(s) that needs to be added:
_____________________
______________________

In: Computer Science

The data below is the mileage (thousands of miles) and age of your cars . Year...

The data below is the mileage (thousands of miles) and age of your cars .

Year Miles Age

2017    8.5    1

2009 100.3    9

2014   32.7    4

2004 125.0   14

2003 115.0   15

2011   85.5    7

2012   23.1    6

2012   45.0    6

2004 123.0   14

2013   51.2    5

2013 116.0    5

2009 110.0    9

2003 143.0   15

2017   12.0    1

2005 180.0   13

2008 270.0   10

Please include appropriate Minitab Results when important

a. Identify terms in the simple linear regression population model in this context.

b. Obtain a scatter diagram for the sample data. Interpret the scatter diagram.

c. Obtain a scatter diagram with the least squares regression line included. Interpret the intercept and slope in the context of this problem.

d. In theory what ought to be the value of the population model intercept? Explain.

e. What is the informal prediction for what the mileage should be on your car? What is the error in the prediction of the mileage for your car?

f .Use some statistical reasoning to assess whether or not the prediction for the mileage on your car was “accurate”?

g. How would you respond if someone asks “about” how many miles do students drive per year?

In: Statistics and Probability

The U.S. Department of Transportation provides the number of miles that residents of the 75 largest...

The U.S. Department of Transportation provides the number of miles that residents of the 75 largest metropolitan areas travel per day in a car. Independent simple random samples for both Buffalo and Boston are located in the Excel Online file below. Construct a spreadsheet to answer the following questions.

Open spreadsheet

Round your answers to one decimal place.

  1. What is the point estimate of the difference between the mean number of miles that Buffalo residents travel per day and the mean number of miles that Boston residents travel per day?

  2. What is the 95% confidence interval for the difference between the two population means?

Buffalo Boston
24 23
27 14
39 11
23 19
16 22
16 4
21 9
31 12
1 12
22 10
32 32
32 26
24 21
42 16
37 17
29 18
16 16
12 20
29 20
16 11
18 10
27 18
2 11
21 17
35 20
21 20
29 25
24 16
17 17
21 8
38
21
9
24
31
26
16
27
24
18
24
17
13
15
21
21
21
32
27
35

In: Statistics and Probability

It is advertised that the average braking distance for a small car traveling at 65 miles...

  1. It is advertised that the average braking distance for a small car traveling at 65 miles per hour equals 120 feet. A transportation researcher wants to determine if the statement made in the advertisement is false. She randomly test drives 36 small cars at 65 miles per hour and records the braking distance. The sample average braking distance is computed as 114 feet. Assume that the population standard deviation is 22 feet.

a. Set up the null and the alternative hypotheses for the test.

b. Calculate the value of the test statistic.

c. Find the p-value.

d. Calculate the critical value using α = 0.01

e. Use α = 0.01 to determine if the average breaking distance differs from 120 feet.

2. Consider the following hypotheses:
H0: μ ≤ 12.6
HA: μ > 12.6
A sample of 25 observations yields a sample mean of 13.4. Assume that the sample is drawn from a normal population with a population standard deviation of 3.2.

a. Calculate the value of the test statistic.

b. Find the p-value.

c. Calculate the critical value using α = 0.05

d. What is the conclusion if α = 0.05? Interpret the results at α = 0.05.

e. Calculate the p-value if the above sample mean was based on a sample of 100 observations.

f. Based on a sample of 100 observations, what is the conclusion if α = 0.10? Interpret the results at α = 0.10.

In: Statistics and Probability

The data below is the mileage (thousands of miles) and age of your cars as sample....

The data below is the mileage (thousands of miles) and age of your cars as sample.

Year Miles Age

2017    8.5    1

2009 100.3    9

2014   32.7    4

2004 125.0   14

2003 115.0   15

2011   85.5    7

2012   23.1    6

2012   45.0    6

2004 123.0   14

2013   51.2    5

2013 116.0    5

2009 110.0    9

2003 143.0   15

2017   12.0    1

2005 180.0   13

2008 270.0   10

Please include appropriate Minitab Results when important

a. Identify terms in the simple linear regression population model in this context.

b. Obtain a scatter diagram for the sample data. Interpret the scatter diagram.

c. Obtain a scatter diagram with the least squares regression line included. Interpret the intercept and slope in the context of this problem.

d. In theory what ought to be the value of the population model intercept? Explain.

e. What is the informal prediction for what the mileage should be on your car? What is the error in the prediction of the mileage for your car?

f. Use some statistical reasoning to assess whether or not the prediction for the mileage on your car was “accurate”?

g. How would you respond if someone asks “about” how many miles do students drive per year?

In: Statistics and Probability

It is necessary for an automobile producer to estimate the number of miles per gallon (mpg)...

It is necessary for an automobile producer to estimate the number of miles per gallon (mpg) achieved by its cars. Suppose that the sample mean for a random sample of 5050 cars is 30.630.6 mpg and assume the standard deviation is 3.63.6 mpg. Now suppose the car producer wants to test the hypothesis that μμ, the mean number of miles per gallon, is 31.631.6 against the alternative hypothesis that it is not 31.631.6. Conduct a test using a significance level of α=.05α=.05 by giving the following:

(a) The test statistic (give to 3 decimal places) is

(b) The P -value (give to 4 decimal places) is

(c) The final conclusion is

A. We can reject the null hypothesis that μ=31.6μ=31.6 and accept that μ≠31.6μ≠31.6.
B. There is not sufficient evidence to reject the null hypothesis that μ=31.6μ=31.6.


In: Statistics and Probability

It is necessary for an automobile producer to estimate the number of miles per gallon (mpg)...

It is necessary for an automobile producer to estimate the number of miles per gallon (mpg) achieved by its cars. Suppose that the sample mean for a random sample of 5050 cars is 30.630.6 mpg and assume the standard deviation is 3.63.6 mpg. Now suppose the car producer wants to test the hypothesis that μμ, the mean number of miles per gallon, is 31.631.6 against the alternative hypothesis that it is not 31.631.6. Conduct a test using a significance level of α=.05α=.05 by giving the following:

(a) The test statistic (give to 3 decimal places) is

(b) The P -value (give to 4 decimal places) is

(c) The final conclusion is

A. We can reject the null hypothesis that μ=31.6μ=31.6 and accept that μ≠31.6μ≠31.6.
B. There is not sufficient evidence to reject the null hypothesis that μ=31.6μ=31.6.


In: Statistics and Probability

The data below is the mileage (thousands of miles) and age of your cars . Year...

The data below is the mileage (thousands of miles) and age of your cars .

Year Miles Age

2017    8.5    1

2009 100.3    9

2014   32.7    4

2004 125.0   14

2003 115.0   15

2011   85.5    7

2012   23.1    6

2012   45.0    6

2004 123.0   14

2013   51.2    5

2013 116.0    5

2009 110.0    9

2003 143.0   15

2017   12.0    1

2005 180.0   13

2008 270.0   10

Please include appropriate Minitab Results when important

a. Identify terms in the simple linear regression population model in this context.

b. Obtain a scatter diagram for the sample data. Interpret the scatter diagram.

c. Obtain a scatter diagram with the least squares regression line included. Interpret the intercept and slope in the context of this problem.

d. In theory what ought to be the value of the population model intercept? Explain.

e. What is the informal prediction for what the mileage should be on your car? What is the error in the prediction of the mileage for your car?

f .Use some statistical reasoning to assess whether or not the prediction for the mileage on your car was “accurate”?

g. How would you respond if someone asks “about” how many miles do students drive per year?

In: Statistics and Probability

In a hypothetical island that is 5,000 miles away from humanity and includes no frictions in...

In a hypothetical island that is 5,000 miles away from humanity and includes no frictions in the market other than human nature, there are many shipping companies going back and forth that carry goods produced in the island to the world outside the island. There is also a dock to load these goods to the ships. The shipping industry is perfectly competitive.

In the island, there is a cement factory. The price per unit of cement at the door of the factory is $200 and the world price of same cement per unit is $350. But cement should be carried to the dock to be loaded in the ships. There are two means for transporting cement to the dock: i) a pipeline that pumps the cement to the dock (Company P) and ii) truck companies. There are many truck companies in the island and this industry is also perfectly competitive. Both the pipeline and the truck companies have identical services both in terms of price, speed, and amount carried each time. Truck companies can carry any item produced in the island, but the pipeline can only carry cement.

10 years ago, Company C and Company P signed a contract that set the price per unit of cement carried through the pipeline as $25 (10 years from that date, which is today, the price per unit of cement carried is also $25 for truck companies). This contact will expire tomorrow at 8 am and the companies met to negotiate the new terms of the contract.

1. What should be the new price for this new contract, if the two companies can agree on it? Why? Explain your rationale behind this prediction.

2. What can Company P do to maximize its benefits or survive? (Hint: since this is a hypothetical world, the capital markets are efficient)

Will rate for correct answers! :)

In: Economics