Write a program that prompts the user for their first and last name. Display the first initial of their first name and their last name to the user.
Ask the user to input a phone number.
The program checks which part of Colorado a phone number is from using the values below.
If the second digit of the phone number is one of the below digits, print the phone number and which part of Colorado it is from. If none of the digits are entered, display the phone number and state it is not in Colorado.
If the number is in Estes Park, the user should see: phone number + “is in Estes Park, it is time to go pick up your new Corgi puppy!”
If the second digit of a phone number is:
0 = Boulder
1 = Colorado Springs
2 = Denver
7 = Estes Park
Sample output:
Please enter your first and last name: Ollie Biscuit
Hello, O Biscuit! //displays first initial and last name
Please enter a phone number:
Your phone number is: xxx-xxx-xxxx. Your number is not in Colorado.
OR
Your phone number is: xxx-xxx-xxxx. Your number is in Denver.
OR
Your phone number is: xxx-xxx-xxxx is in Estes Park, it is time to go pick up your new Corgi puppy!
In: Computer Science
8. A hotel manager is looking to enhance the initial impression that hotel guests have when they check in. Believed to contribute to initial impressions is the time it takes to deliver a guest’s luggage to his or her room after check-in. A random sample of 20 deliveries on a particular day were selected from Wing A of the hotel, and a random sample of 20 deliveries were selected in Wing B (i.e., the Excel tab LUGGAGE). (a) Identify which type of test is most appropriate for you to use, justify your answer. (b) Determine whether or not the mean delivery time differs for the two wings of the hotel (use α = .05). (c) If faster luggage delivery time is positively related to guests’ initial impression, which wing(s) should receive the highest impression ratings? (3 points)
| Wing A | Wing B |
| 10.20 | 13.70 |
| 12.68 | 12.89 |
| 12.29 | 14.83 |
| 11.95 | 12.23 |
| 9.61 | 11.56 |
| 11.53 | 16.05 |
| 11.92 | 15.20 |
| 14.92 | 16.86 |
| 13.69 | 13.26 |
| 14.00 | 10.09 |
| 15.35 | 13.74 |
| 9.05 | 13.85 |
| 15.01 | 13.57 |
| 8.28 | 14.06 |
| 12.23 | 11.91 |
| 14.25 | 14.79 |
| 11.44 | 13.59 |
| 9.57 | 12.13 |
| 13.61 | 14.37 |
| 9.77 | 12.91 |
In: Statistics and Probability
In: Accounting
Emma has noticed a small red fox living in the park near her apartment. She takes a walk at the same time every day and has observed the fox in three different areas: in the woods, in the meadow, and by the pond.
If it is in the woods on one observation, then it is twice as likely to be in the woods as in the meadow on the next observation but not by the pond.
If it is in the meadow on one observation, then it is equally likely to be in any of the three locations on the next observation.
If it is by the pond on one observation, there is a 0.5 probability it will be by the pond on the next observation and will otherwise be in the woods.
When Emma went for a walk today, the red fox was in the woods.
a. Define the states and construct the transition matrix for this Markov chain.
b. Find the initial distribution vector for this Markov Chain.
c. Determine the probability that the red fox is in each of the three areas tomorrow.
If this trend continues, what is the probability the red fox will be in the meadow in the long run?
Show all work to support your answer. Correct answers without supporting work will not receive credit.
In: Statistics and Probability
Twenty-three (24) states have made laws to allow medical marijuana usage and now more states (Colorado, New Jersey, Washington. Etc.) have legalized the recreational use of marijuana by adults. The legalization of Marijuana has been an ongoing debate in the United States. Many perspectives (some positive, some negative) have been presented in the press about the reasons for or against marijuana. The most pervasive argument against is that marijuana is a considered. Others concerns include potential drug addictions, increased crime rates, negative effects to the brain, etc... The American Psychological Association (APA) has posted a position paper titled, Medicine or Menace, which problematizes marijuana usage and legalization. For this weeks discussion, I want you to answer the following questions.
1. Should marijuana be legal or is its legalization a devastating mistake? Explain your stance with facts that are backed up by the book or other sources.
2. Do you think American culture is ready to effectively handle having marijuana legalization? Why or why not?
In: Psychology
Application: Elasticity and hotel rooms.
The following graph input tool shows the daily demand for hotel rooms at the Big Winner Hotel and Casino in Las Vegas, Nevada. To help the hotel management better understand the market, an economist identified three primary factors that affect the demand for rooms each night. These demand factors, along with the values corresponding to the initial demand curve, are shown in the following table and alongside the graph input tool.
| Demand Factor | Initial Value |
|---|---|
| Average American household income | $50,000 per year |
| Roundtrip airfare from Los Angeles (LAX) to Las Vegas (LAS) | $250 per roundtrip |
| Room rate at the Lucky Hotel and Casino, which is near the Big Winner | $200 per night |
Use the graph input tool to help you answer the following questions. You will not be graded on any changes you make to this graph.
Note: Once you enter a value in a white field, the graph and any corresponding amounts in each grey field will change accordingly.

For each of the following scenarios, begin by assuming that all demand factors are set to their original values and Big Winner is charging $350 per room per night.
If average household income increases by 20%, from $50,000 to $60,000 per year, the quantity of rooms demanded at the Big Winner (Falls or Rises ) from ( ) rooms per night to ( ) rooms per night. Therefore, the income elasticity of demand is (Negative or Positive) , meaning that hotel rooms at the Big Winner are ( A normal good or An inferior good ).
If the price of an airline ticket from LAX to LAS were to increase by 20%, from $250 to $300 roundtrip, while all other demand factors remain at their initial values, the quantity of rooms demanded at the Big Winner (Falls or Rises) from ( ) rooms per night to ( ) rooms per night. Because the cross-price elasticity of demand is (Negative or Positive), hotel rooms at the Big Winner and airline trips between LAX and LAS are (Substitutes or Complements).
Big Winner is debating decreasing the price of its rooms to $325 per night. Under the initial demand conditions, you can see that this would cause its total revenue to (Decrease or Increase) . Decreasing the price will always have this effect on revenue when Big Winner is operating on the (Elastic or Inelastic) portion of its demand curve.
In: Economics
Lab Text Manipulation
Inside the main method, do the following:
The output depends on the information provided by the user.
Please enter your favorite National Park or DONE to stop: mesa
verde
Please enter your favorite National Park or DONE to stop: black
CANYON of ThE gunnisON
Please enter your favorite National Park or DONE to stop:
DENALI
Please enter your favorite National Park or DONE to stop:
yellowStone
Please enter your favorite National Park or DONE to stop:
Done
Favorite National Parks: Mesa Verde | Black Canyon Of The Gunnison
| Denali | Yellowstone
In: Computer Science
In baseball, League A allows a designated hitter (DH) to bat for the pitcher, who is typically a weak hitter. In League B, the pitcher must bat. The common belief is that this results in League A teams scoring more runs. In interleague play, when League A teams visit League B teams, the League A pitcher must bat. So, if the DH does result in more runs, it would be expected that league A teams will score more runs in League A park than when visiting League B parks. To test this claim, a random sample of runs scored by league A teams with and without their DH is given in the accompanying table. Complete parts a) through d) below.
| legue a park (with DH) | Legue b park (without DH) |
| 7 | 0 |
| 2 | 1 |
| 4 | 6 |
| 6 | 3 |
| 2 | 5 |
| 3 | 6 |
| 12 | 8 |
| 9 | 3 |
| 3 | 5 |
| 14 | 5 |
| 3 | 5 |
| 7 | 2 |
| 5 | 2 |
| 5 | 4 |
| 2 | 1 |
| 14 | 2 |
| 6 | 4 |
| 6 | 9 |
| 6 | 10 |
| 6 | 1 |
| 5 | 3 |
| 7 | 7 |
| 8 | 7 |
| 4 | 2 |
| 13 | 4 |
| 7 | 9 |
| 5 | 3 |
| 0 | 2 |
a) Draw side-by-side boxplots of the number of runs scored by League A teams with and without their DH. Choose the correct graph below.
A.
051015AB
Two boxplots, one above the other, share a horizontal axis labeled from 0 to 15 in increments of 1. The bottom boxplot is labeled A and has vertical line segments drawn at 4, 6, and 7. A box encloses the vertical line segments, and horizontal line segments extend from both sides of the box to 0 and 13. An x is plotted at 14. The top boxplot is labeled B and has vertical line segments at 3, 4.5, and 7. A box encloses the vertical line segments, and horizontal line segments extend from both sides of the box to 0 and 11.
B.
051015AB
Two boxplots, one above the other, share a horizontal axis labeled from 0 to 15 in increments of 1. The bottom boxplot is labeled A and has vertical line segments drawn at 4, 6, and 7. A box encloses the vertical line segments, and horizontal line segments extend from both sides of the box to 0 and 9. Three x's are plotted at 12, 13, and 14. The top boxplot is labeled B and has vertical line segments at 2, 3.5, and 6. A box encloses the vertical line segments, and horizontal line segments extend from both sides of the box to 0 and 10.
C.
051015AB
Two boxplots, one above the other, share a horizontal axis labeled from 0 to 15 in increments of 1. The bottom boxplot is labeled A and has vertical line segments drawn at 3, 5, and 6. A box encloses the vertical line segments, and horizontal line segments extend from both sides of the box to 0 and 12. Two x's are plotted at 13 and 14. The top boxplot is labeled B and has vertical line segments at 2, 3.5, and 6. A box encloses the vertical line segments, and horizontal line segments extend from both sides of the box to 0 and 12.
D.
051015AB
Two boxplots, one above the other, share a horizontal axis labeled from 0 to 15 in increments of 1. The bottom boxplot is labeled A and has vertical line segments drawn at 4, 6, and 7. A box encloses the vertical line segments, and horizontal line segments extend from both sides of the box to 1 and 14. The top boxplot is labeled B and has vertical line segments at 2, 3.5, and 6. A box encloses the vertical line segments, and horizontal line segments extend from both sides of the box to 0 and 12.
Does there appear to be a difference in the number of runs between these situations?
A. No but the number of runs scored in a League A park appear to be slightly higher than the number of runs scored in a League B park.
B. Yes because the number of runs scored in a League B park appear to have a higher median than the number of runs scored in a League A park.
C.Yes because the number of runs scored in a League A park appear to have a higher median than the number of runs scored in a League B park.
D.No because the number of runs scored in a League A park is about the same as the number of runs scored in a League B park.
b) Explain why a hypothesis test may be used to test whether the mean number of runs scored for the two types of ballparks differ.
Select all that apply.
A.Each sample has the same sample size.
B.Each sample is obtained independently of the other.
C.Each sample size is small relative to the size of its population.
D.Each sample is a simple random sample.
E.Each sample size is large.
c) Test whether the mean number of runs scored in a League A park is greater than the mean number of runs scored in a League B park at the
alphaα=0.05 level of significance.
Determine the null and alternative hypotheses for this test. Let mu Subscript Upper AμA
represent the mean number of runs scored by a League A team in a League A park and let
mu Subscript Upper BμB represent the mean number of runs scored by a League A team in a League B park.
Upper H 0H0:
▼
sigma Subscript Upper AσA
pp mu Subscript Upper AμA
▼
greater than>
equals=
less than<
not equals≠
▼
sigma Subscript Upper BσB
mu Subscript Upper BμB
p 0p0
versus
Upper H 1H1:
▼
mu Subscript Upper AμA
pp
sigma Subscript Upper AσA
▼
greater than>
equals=
less than<
not equals≠
▼
p0 mu Subscript Upper BμB sigma Subscript Upper BσB Find t0,the test statistic for this hypothesis test. t0=nothing
(Round to two decimal places as needed.)
Determine the P-value for this test.
P-value=
(Round to three decimal places as needed.)
State the appropriate conclusion. Choose the correct answer below.
A.Do not reject Upper H0. There is not sufficient evidenceThere is not sufficient evidence at the level of significance to conclude that games played with a designated hitter result in more runs.
B.Reject Upper H 0H0.There is not sufficient evidence at the level of significance to conclude that games played with a designated hitter result in more runs.
C.Do not reject Upper H0.There is sufficient evidenceat the level of significance to conclude that games played with a designated hitter result in more runs.
D.Reject Upper H0. There is sufficient evidenceThere is sufficient evidence at the level of significance to conclude that games played with a designated hitter result in more runs.
d) Construct a 95% confidence interval for the mean difference in the number of runs scored by League A teams in a League A park and the number of runs scored by League A teams in a League B park. Interpret the interval.
Lower bound:
Upper bound:
(Round to three decimal places as needed.)
Interpret the confidence interval. Select the correct choice below and fill in the answer boxes to complete your choice.
(Round to three decimal places as needed. Use ascending order)
A. We are 95%confident the difference between the mean number of runs scored in a League A park and the mean number of runs scored in a League B park is between nothing and nothing.The confidence interval does not containdoes not contain zero, so there is sufficient evidence to conclude there is a difference in the mean number of runs scored with or without the DH.
B. We are 95% confident the difference between the mean number of runs scored in a League A park and the mean number of runs scored in a League B park is between nothing and nothing.The confidence interval contains zero, so there is notis not sufficient evidence to conclude there is a difference in the mean number of runs scored with or without the DH.
In: Math
On January 1, Park Corporation and Strand Corporation had condensed balance sheets as follows:
| Park | Strand | ||||||
| Current assets | $ | 70,000 | $ | 20,000 | |||
| Noncurrent assets | 90,000 | 40,000 | |||||
| Total assets | $ | 160,000 | $ | 60,000 | |||
| Current liabilities | $ | 30,000 | $ | 10,000 | |||
| Long-term debt | 50,000 | 0 | |||||
| Stockholders’ equity | 80,000 | 50,000 | |||||
| Total liabilities and equities | $ | 160,000 | $ | 60,000 | |||
On January 2, Park borrowed $60,000 and used the proceeds to obtain 80 percent of the outstanding common shares of Strand. The acquisition price was considered proportionate to Strand’s total fair value. The $60,000 debt is payable in 10 equal annual principal payments, plus interest, beginning December 31. The excess fair value of the investment over the underlying book value of the acquired net assets is allocated to inventory (60 percent) and to goodwill (40 percent).
On a consolidated balance sheet as of January 2, what should be the amount for current assets?
On a consolidated balance sheet as of January 2, what should be the amount for noncurrent assets?
In: Accounting
Teton Village, Wyoming, near Grand Teton Park and Yellowstone Park, contains shops, restaurants, and motels. The village has two peak seasons---winter, for skiing on the 10,000-foot slopes, and summer, for tourists visiting the parks. The number of visitors(in thousands) by quarter for five years can be found in Data Table Two below
1.Develop the typical seasonal pattern for Teton Village
2. Determine the seasonally adjusted number of visitors for winter 2011.
Data Table Two
| Year | Quarter | Number of Visitors(in thousands) |
| 2005 | Winter | 117 |
| Spring | 80.7 | |
| Summer | 129.6 | |
| Fall | 76.1 | |
| 2006 | Winter | 118.6 |
| Spring | 82.5 | |
| Summer | 121.4 | |
| Fall | 77 | |
| 2007 | Winter | 114 |
| Spring | 84.3 | |
| Summer | 119.9 | |
| Fall | 75 | |
| 2008 | Winter | 120.7 |
| Spring | 79.6 | |
| Summer | 130.7 | |
| Fall | 69.6 | |
| 2009 | Winter | 125.2 |
| Spring | 80.2 | |
| Summer | 127.6 | |
| Fall | 72 |
Please post the answer with the work performed in excel and not just the answer, need to show work as I don't understand how to do this and would like the steps so that I can also learn it and it shows all work. You can add screenshots of the steps to find the answer in excel.
In: Economics