You and your closest friends have decided to go to see a private screening of a movie at a local movie theater where you can be socially distant. Friends will be added to the queue after their names are input by the user. Because of current restrictions, the queue (line) for tickets can only have a capacity of 7 people.
Write a Java program using a Queue (of size 7) that will display a menu:
1) add person to line
2) remove person from line
When (1) is chosen the user will be prompted to input the friend's name. Note that you must not add another person to the queue until there is an available space for them (you will need to check if the queue is full before adding people.) If there are already 7 people in the queue the program will output that "the line is full please try again later."
When (2) is chosen the person at the head/front of the queue is removed.
After each person is added or removed from the queue, output the contents of the queue and the name of the person at the head of the queue. The program will end after the removal of a person leaves the queue empty.
MUST BE JAVA. please include menu for queue operations.
In: Computer Science
Customers arrive at a movie theater at the advertised movie time only to find that they have to sit through several previews and pre-preview ads before the movie starts. Many complain that the time devoted to previews is too long.† A preliminary sample conducted by The Wall Street Journal showed that the standard deviation of the amount of time devoted to previews was 6 minutes. Use that as a planning value for the standard deviation in answering the following questions. (Round your answers up to the nearest whole number.)
(a)
If we want to estimate the population mean time for previews at movie theaters with a margin of error of 105 seconds, what sample size should be used? Assume 95% confidence.
(b)
If we want to estimate the population mean time for previews at movie theaters with a margin of error of 1 minute, what sample size should be used? Assume 95% confidence.
-You may need to use the appropriate appendix table or technology to answer this question.
How large a sample should be selected to provide a 95% confidence interval with a margin of error of 10? Assume that the population standard deviation is 50. (Round your answer up to the nearest whole number.)
In: Statistics and Probability
Companies can use three strategies to lower their breakeven point: 1. Increase selling price; 2. Decrease variable costs; 3. Decrease fixed costs. Thinking in terms of cost structure and breakeven point, explain how a movie theater might respond to a negative demand shock (a sudden significant drop in demand as a result of external events) such as happened after the September 11th attack on the World Trade Center, Superstorm Sandy, etc.
In: Accounting
a) The 10 members of the committee have to choose one president and two vice presidents (these have to be three different people). In how many ways can they choose these officers? (Note: here is no distinction between the two vice presidents; there is not a “first” VP and a “second” VP).
b) Three couples go to a movie theater. They sit in consecutive seats such that each couple is seating together, that is each person is seating next to his/her partner. If there are 6 seats available, in how many ways can they sit?
c) A university wants to assign a three digit number to each classroom of a new building. They can use the digits {1,2,3,4,5} but they cannot use any digit more than once. How many classroom numbers can they assign if the numbers have to be less than 250?
d) The University wants to select 4 students for a feedback survey. They want all four students from either Prof. X’s section or Prof. Y’s section. Prof. X has 40 students in his class and Prof. Y has 30 students in his class. How many selections are possible?
In: Advanced Math
You are given the sample mean and the population standard deviation. Use this information to construct the 90% and 95% confidence intervals for the population mean. Interpret the results and compare the widths of the confidence intervals. If convenient, use technology to construct the confidence intervals. A random sample of 40 home theater systems has a mean price of $129.00. Assume the population standard deviation is $16.60.
Interpret the results. Choose the correct answer below.
A. With 90% confidence, it can be said that the population mean price lies in the first interval. With 95% confidence, it can be said that the population mean price lies in the second interval. The 95% confidence interval is narrower than the 90%.
B. With 90% confidence, it can be said that the sample mean price lies in the first interval. With 95% confidence, it can be said that the sample mean price lies in the second interval. The 95% confidence interval is wider than the 90%.
C. With 90% confidence, it can be said that the population mean price lies in the first interval. With 95% confidence, it can be said that the population mean price lies in the second interval. The 95% confidence interval is wider than the 90%.
In: Statistics and Probability
1 What is the GOVERNMENT FAILURE for some workers resulting from this legislation, i.e. which workers end up being WORSE off as a result of this legislation? Use a carefully labeled graph, and assuming any logical numbers, to support your answer to the question above.
2 Some government officials decide it is a market failure that the price of renting an apartment is too high for some people. The government then passes legislation INTENDED to help those wanting to rent apartments. What is the GOVERNMENT FAILURE for some people resulting from this legislation, i.e. which people end up being WORSE off that were intended to be better off as a result of this legislation? Use a carefully labeled graph, and assuming any logical numbers, to support your answer.
3 Assume there is a significant negative externality in supplying a good or service. Using a carefully labeled graph, show the supply curve that does NOT reflect the negative externalities and the supply curve that does reflect these externalities. Make sure each is carefully labeled.
4 Explain, using a carefully labeled graph, why the price of oil has PLUMMETED recently. EXPLAIN the movement from one equilibrium to another.
5 Assume the President of the United States states “we will no longer put much resources into enforcing our immigration laws.” Explain how the predictable increase in illegal immigration will harm some American low-skilled workers. Use a carefully labeled graph to support your answer. Besides the illegal immigrants and employers benefitting, who else benefits from illegal immigration?
6 GDP in the year 2010 was $300,000,000,000 when the population was 10,000,000. GDP in 2020 in that same country was $550,000,000,000 and the population was 12,000,000. Calculate the annual growth rate in GDP PER CAPITA. Show your math.
7 Using a carefully labeled graph, show and explain how licensing requirements can harm CONSUMERS.
8A basket of goods and services cost $200 in the year 2000. That same basket of goods costs $438.22. What has been the annual inflation rate? SHOW YOUR MATH.
In: Economics
Background Information: Rights of Grandparents
As family structures have changed due to increases in divorce and single parenting, the role of grandparents has also changed. As a result, more decisions about grandparents’ visitation rights are being made by courts and state legislatures. Since the mid-1970s, all 50 states have passed laws granting grandparents the right to petition the courts for legally enforced visitation privileges. Before this time period, grandparents had no rights to their grandchildren except by consent of the children’s parents.
Early court decisions (e.g., Odell v. Lutz, 1947) emphasized parental autonomy and ruled that grandparent visitation rights would undermine parental authority. In fact, it was stated that grandparent visitation rights could subject children to intergenerational conflict (e.g., Noll v. Noll, 1950). These rulings also went along with the long tradition that the legal system should only intervene in the family in extreme circumstances. Early granting of grandparent visitation rights (e.g., Benner v. Benner, 1952) came in cases in which the grandchildren had lived with the grandparents for extended periods, or in cases in which the parents were deemed “unfit,” and the grandparents were given custody.
Consider the landmark case of Troxel v. Granville (2000). In 2000, based on this case, the United States Supreme Court placed limits on the grandparent visitation laws. The court concluded that parents who provide adequate care for their children must be able to decide with whom their children will associate. To leave such decisions up to a judge, in the view of the Supreme Court, would conflict with parents’ basic constitutional rights.
Discussion Question:
Discuss the pros and cons of regulated and enforced grandparent visitation rights. Part of your answer and discussion should involve the roles that grandparents play in grandchildren’s lives (e.g., alternative caregivers, playmates, family historians and transmitters of family values and traditions, advice-givers to parents). Also consider how to resolve intergenerational conflict, how to determine the “children’s best interests,” the consequences of grandparent visitation rights on family functioning, and how to resolve the grandparent policy.
In: Psychology
In: Finance
Building the Supply and Demand Model Homework
A change in quantity demanded refers to a movement along the demand curve, which is caused only by a chance in price. A change in demand means that the entire demand curve shifts either left or right.
A change in quantity supplied will imply a movement along the supply curve, while a change in supply refers to a shift in the supply curve. A change in quantity supplied is usually caused by a change in the unit price while a change in supply is caused by new methods of production.
3.
|
Broccoli Soup (per month) |
||||
|
Price |
Kwame |
Maria |
Elsa |
Market Demand |
|
$2 |
4 |
18 |
22 |
|
|
4 |
3 |
14 |
21 |
|
|
6 |
0 |
11 |
20 |
|
|
8 |
0 |
5 |
15 |
|
|
10 |
0 |
2 |
7 |
|
|
12 |
0 |
1 |
4 |
|
|
14 |
0 |
0 |
2 |
|
|
16 |
0 |
0 |
1 |
|
A. Using the individual demand data in the table above, determine the market demand for broccoli soup – fill in the market demand column of the table.
B. Graph the market demand curve.
C. The broccoli growers industry group launches a successful national marketing campaign highlighting the positive health effects of broccoli consumption. What will likely happen to the market demand for broccoli? Demonstrate your answer in the graph you drew for B.
4. Give 3 real world scenarios that would likely increase the demand for chickpeas.
5. Give 3 real work scenarios that would likely decrease the supply of Atlantic salmon.
6. Draw hypothetical supply and demand curves for coffee. Show how the equilibrium price and quantity will be affected by the following events. Use a separate graph to demonstrate each event. Show the equilibrium price and quantity before, and after, the event.
A. The New England Journal of Medicine publishes an article highlighting a direct correlation between coffee consumption and liver cancer.
B. The coffee growing regions of South and Central America experience optimal coffee growing weather.
C. A regional war breaks out in the coffee growing countries of East Africa.
D. Widespread media reports highlight major labor abuses in coffee growing regions around the world, including child labor, slave labor, and the widespread sexual assault of coffee plantation workers.
7. President Trump signs a law that imposes a 30% tax on oil exports from the United States.
A. Demonstrate the likely effect on the domestic oil market using supply and demand curves.
B. What we will be the likely effect on oil prices in the US?
8. Assume the individual demand and supply below represent the entire market. Answer the questions based on the following tables.
|
Tasting Menus Michelin Star Restaurants, Chicago (Demand Schedule - per month) |
||||
|
Price |
Omar |
Shelia |
Aliyah |
Market Demand |
|
100 |
9 |
14 |
23 |
|
|
150 |
5 |
10 |
18 |
|
|
200 |
4 |
8 |
16 |
|
|
250 |
0 |
3 |
10 |
|
|
Tasting Menus Michelin Star Restaurants, Chicago (Supply Schedule - per month) |
||||
|
Price |
Grace |
Alinea |
Acadia |
Market Supply |
|
100 |
0 |
2 |
9 |
|
|
150 |
4 |
4 |
10 |
|
|
200 |
7 |
10 |
11 |
|
|
250 |
13 |
15 |
24 |
|
A. Draw the market demand and market supply curves.
B. Label the market equilibrium price and quantity.
C. What is the excess quantity supplied at a price of $250?
D. What is the excess quantity demanded at a price of $150?
9. Explain the likely affect of the following events on the market equilibrium price and quantity:
A. Global soybean market: An infestation of the Helicoverpa armigera worm in Brazil’s soybean growing regions. Brazil is the world’s largest producer of soybeans.
B. Global toy market: A 105% increase in the minimum wage in China. China is the world’s largest manufacturer of toys.
C. Global pineapple market: Both PepsiCo and the Coca Cola company develop blockbuster pineapple flavored sodas.
D. US energy drink market: Congress imposes a 25% excise tax on energy drinks due to the adverse health effects of excessive caffeine consumption. The excise tax will be paid by the manufacturers of the drinks.
E. Local Sinha Stout (popular Sri Lankan beer) market in Poughkeepsie: Four thousand Sri Lankan immigrants settle in the city of Poughkeepsie.
F. Horn rimmed glasses local market Hyde Park: Hyde Park becomes a popular location for weekend homes for Brooklyn hipsters.
G. Fuji apple market: The price of red delicious apples increases by 67%.
H. Chef’s knife market: The demand for culinary education increases dramatically.
J. Kiwi market: Kiwi sellers raise the price of kiwis by 29%. There are no other changes in the market.
K. Wheat market: A new technology significantly increases planting productivity.
In: Economics
Compute the deductions, net pay, and accumulated gross earnings for each weekly pay period. Assume that Joseph is single and that $28.25 was withheld for medical insurance (pre-tax) and $20 for his United Way contribution. Use the wage bracket method to determine federal income tax. Round answers to the nearest hundredth. Gross Earnings(650.95) Allow.(1) Fed. Inc. Tax Social Security (6.2%)Medicare (1.45%) Medical Insurance Pre-tax United Way Total Deductions Net Pay Accum. Gross Earnings ($1,558.90)
In: Accounting