The average resident has a demand for fresh oranges which is a linear function of the...

The average resident has a demand for fresh oranges which is a linear function of the prices of the three goods.

Q=4000 - 200 f + 100 c + 400 p

The subscript ‘f’ denoted fresh oranges, the subscript “c” OJ(orange juice) concentrate, and the subscript “p” peanuts.

Question: Assuming the price of OJ concentrate is fixed at $1 and fresh oranges’ price is fixed at $6, find the cross-price elasticity of demand for fresh oranges relative to peanuts for the average consumer when the price of peanuts is at $2, $8, and $10. What does that tell you about how the average consumer’s views fresh oranges compared to peanuts?

In: Economics

Fundamentals Of Analytical Chemistry 9th Edition - Skoog Balance the net ionic equation of the following...

Fundamentals Of Analytical Chemistry 9th Edition - Skoog

Balance the net ionic equation of the following redox reaction using half-reaction method. Show the steps.

Cr(OH)3 + ClO3- --------> CrO42- + Cl- (basic medium)

In: Chemistry

Please use Java only. Write the class TopResult, which keeps track of the best (highest numbered...

Please use Java only.

Write the class TopResult, which keeps track of the best (highest numbered or highest ordered) result it has seen so far. The class will be a generic type, so the type of results it sees depends on how it is declared.

TopResult Task:

There are a number of situations in which we want to keep track of the highest value we've seen so far - a highest score, a most recent entry, a name which is closest to the end (or the front) of a list, etc. We can imagine writing a simple class which will do this: a class which will let us enter new results one by one, and at any point will let us stop and ask for the highest value.

So far, so good, right? But what if we have a number of different applications for this sort of class - for example, we want to find the top (integer) score on a test, or the highest (decimal) temperature reading, or the GUI window which is closest to the top, etc. Subclassing isn't quite the way to go here, because a TopResult which holds Integers isn't an instance of a TopResult which holds Doubles, and vice versa. But simply writing a class for every possible type we may need may seem like overkill, since the structure of the code is essentially the same from class to class.

In situations such as these, generics come to our rescue. When we define a generic class, the data type we use is essentially represented as a wildcard - a generic type parameter, which we can call T for instance. We write the class assuming that we have a type T in mind, with the idea that we will fill in the type once we know what it is. This is how an ArrayList is implemented, for example. It is a dynamic array of some generic type T, and the exact type is decided (specialized) when we declare the ArrayList variable, for example ArrayList<String> a. If we write our entire class in terms of this unkown type parameter, we will be able to simply name the type later when we want to use it.

In this exercise, we will write the class TopResult. It will have a generic type parameter (you can call it T or something else). Type T must be a Comparable type (thus, the full generic type parameter would be <T extends Comparable<T>>).

A Comparable is an interface which is implemented by classes such as Integer, Double, Character, and String, which allow two members of the same type to be compared to one another to see which is larger. The interface has one method, compareTo, which returns a negative, zero, or positive result indicating whether the object is less than, equal to, or greater than the object it is being compared against:

> Integer three = 3, four = 4;
> three.compareTo(four)
-1
> four.compareTo(three)
1
> four.compareTo(four)
0

The TopResult task should implement the following public methods:

  • TopResult, a default constructor. Initially there should be no top result since no results have been seen yet.
  • newResult, which takes an object of type T, representing a new result, as a parameter, but does not return anything. This method will check whether the new result is better than the current top result, and if so, replace it, otherwise it will ignore it. If there is currently no top result (because no results had been seen yet), then the current result automatically becomes the top result.
  • getTopResult, which does not take any parameters but returns the current top result. If there is currently no top result (because no results have been seen yet), then this method should return null.
  • toString, which will return the toString value of the current top result, or a null if there have been no results yet.

The following shows an example use of this class:

> TopResult<Integer> tr = new TopResult<Integer>();
> tr.getTopResult() // no results seen yet, should be null
null
> tr.newResult(7);
> tr.getTopResult()
7
> tr.newResult(3);
> tr.getTopResult()
7
> tr.newResult(4);
> tr.getTopResult()
7
> tr.newResult(9);
> tr.getTopResult()
9
> tr.newResult(20);
> tr.getTopResult()
20
> tr.toString() // this will print the toString() of the current top result
"20"

Please make sure that it passes the following: https://repl.it/@micky123/SweetEmotionalExtraction

Please be sure that the work is your own, not a duplicate of somebody else's. Thank you.

In: Computer Science

Define the equivalence point of an acid-base titration. Describe it for a weak acid-strong base titration...

Define the equivalence point of an acid-base titration. Describe it for a weak acid-strong base titration (will the pH be >,<, or = 7).

In: Chemistry

In the following problem, check that it is appropriate to use the normal approximation to the...

In the following problem, check that it is appropriate to use the normal approximation to the binomial. Then use the normal distribution to estimate the requested probabilities.

Do you take the free samples offered in supermarkets? About 64% of all customers will take free samples. Furthermore, of those who take the free samples, about 41% will buy what they have sampled. Suppose you set up a counter in a supermarket offering free samples of a new product. The day you were offering free samples, 309 customers passed by your counter. (Round your answers to four decimal places.)

(a) What is the probability that more than 180 will take your free sample?
  

(b) What is the probability that fewer than 200 will take your free sample?


(c) What is the probability that a customer will take a free sample and buy the product? Hint: Use the multiplication rule for dependent events. Notice that we are given the conditional probability P(buy|sample) = 0.41, while P(sample) = 0.64.


(d) What is the probability that between 60 and 80 customers will take the free sample and buy the product? Hint: Use the probability of success calculated in part (c).

In: Math

Van Rushing Hunting Goods’ fiscal year ends on December 31. At the end of the 2021...

Van Rushing Hunting Goods’ fiscal year ends on December 31. At the end of the 2021 fiscal year, the company had notes payable of $20.0 million due on February 8, 2022. Rushing sold 5.5 million shares of its $0.25 par, common stock on February 3, 2022, for $16.5 million. The proceeds from that sale along with $3.5 million from the maturation of some 3-month CDs were used to pay the notes payable on February 8. Through his attorney, one of Rushing’s construction workers notified management on January 5, 2022, that he planned to sue the company for $1 million related to a work-site injury on December 20, 2021. As of December 31, 2021, management had been unaware of the injury, but reached an agreement on February 23, 2022, to settle the matter by paying the employee’s medical bills of $84,500. Rushing’s financial statements were finalized on March 3, 2022. Required:

1. What amount(s) if any, related to the situations described should Rushing report among current liabilities in its balance sheet at December 31, 2021?

2. What amount(s) if any, related to the situations described should Rushing report among long-term liabilities in its balance sheet at December 31, 2021?

3. What amount(s) if any, related to the situations described should Rushing report among current liabilities and long-term liabilities in its balance sheet at December 31, 2021 if the settlement agreement had occurred on March 15, 2022, instead?

4. What amount(s) if any, related to the situations described should Rushing report among current liabilities and long-term liabilities in its balance sheet at December 31, 2021 if the work-site injury had occurred on January 3, 2022, instead? (For all requirements, enter your answers in whole dollars.)

1 Current liability

2 Long-term liability

3 Current liability

Long term liability

4 Current liability

Long-term liability

In: Accounting

A business has 10 employees. Their annual wages (to the nearest thousands of dollars) are as...

A business has 10 employees. Their annual wages (to the nearest thousands of dollars) are as follows:

42, 33, 27, 47, 60, 36, 45, 66, 47, 31

A. Calculate the following, showing all calculations:

mean

median

mode

range

Variance

Standard Deviation

Coefficient of variation

B. Assume that the data values shown above represent "x". Compute the following:

1. (∑x)^2

2. ∑x^2

C. What would change in part A if the numbers represented a sample?

In: Economics

A number of restaurants feature a device that allows credit card users to swipe their cards...

A number of restaurants feature a device that allows credit card users to swipe their cards at the table. It allows the user to specify a percentage or a dollar amount to leave as a tip. In an experiment to see how it works, a random sample of credit card users was drawn. Some paid the usual way, and some used the new device. The percent left as a tip was recorded and listed below. Using a = 0.05, what can we infer regarding users of the device?

Usual Device
12.4 12.0
14.2 15.2
11.7 9.9
11.4 12.2
11.9 14.9
11.4 13.4
10.6 12.1
12.1 13.0
14.2 10.3
15.9 13.2
13.9
a.

There is statistically significant evidence to conclude that users of the device leave larger tips than customers who pay in the usual manner.

b.

There is statistically significant evidence to conclude that users of the device leave smaller tips than customers who pay in the usual manner.

c.

There is statistically significant evidence to conclude that users of the device and customers who pay in the usual manner do not differ in the percentage value of their tips.

d.

There is insufficient statistical evidence to make any conclusions from this data.

In: Math

13. (6 point) when a downcast is necessary what would be the problem if the downcast...

13. (6 point) when a downcast is necessary what would be the problem if the downcast was not done? Use an example in your explanation.

14. (6 point) The following code is from the ColorViews in-class example. what is the purpose of the function ? what the base class for the type the function is found in? How is it called?

override func draw(_ rect: CGRect)

{

// Get the context being draw upon

let context = UIGraphicsGetCurrentContext( )

//Create layer, if necessary

checkDrawLayer (context)

In: Computer Science

I have this projegt I will use asp.net wHAT PART CAN USE TO COMPLETE THE PROGET...

I have this projegt I will use asp.net wHAT PART CAN USE TO COMPLETE THE PROGET

For this project in the (Advanced Computer Networks) course, you may pick a system/language you like, design the project, implement it, and write a project report about it.

This project is related with the Readers and writers. Two types of users, Readers and Writers, can access a shared file. The file is allowed to be read by many readers simultaneously, but to be written by a single writer at a time when no reader is reading.

In this project, you are asked to solve the readers and writers problem by using the clientserver model and a kind of communication facility. Your program consists of several clients (readers and writers), a file access authorization server, and a shared file bank server. Clients may read/write different files or share a single file.

Before a client being able to access a file from the shared file bank server, it must first communicate with the authorization server to get a ticket (an encrypted permission which can be decrypted only by the shared file bank server). The file access authorization server receives requests from clients and manipulates up to N different files. The request message involves the following fields: the ID of the client, the type of the request (R/W), and the name of the file that the client wants to access. A transaction of accessing a file from a client is as follows:

• send REQ Message: request to the authorization server

• block_receive: waiting for a ticket

• send read/write (data) and ticket: request to the file bank server

• block_receive: waiting for data or ACK

• send REL Message: release to authorization server

• loop for certain times

You should test your program by different cases. For example, suppose your system manipulate five files A, B, C, D and E. One possible test case is to start with 30 clients that randomly access (with 30 percent of writers) a randomly selected file. Each client repeat 100 times. You should design at least 5 different test cases and you should use at least 3 computers to run your project.

Project Report: the report is a short report (2-4 pages) for what your project will be. It should contain a problem description and motivation, a description of the design of your solution, a description of your implementation, and an evaluation of how well your system solved the original problem.

In: Computer Science

Suppose that over a year the daily percent change (+ or -) for the S&P 500...

Suppose that over a year the daily percent change (+ or -) for the S&P 500 adjusted closing value is approximately normally distributed with a mean of +0.03% and a standard deviation of 0.97%. Use this model to answer the following questions. Show all calculations. Show the standardization calculations.
a) For a randomly selected trading day, what the is probability that the percent change is less than +1.50%?

b) For what proportion of the trading days is the percent change between -2.00% and +2.00%?

c) What is the 3rd quartile of the percent change?

d) The 80th percentile?

In: Math

Explain why there might be discrepancies for the different types of radiation if graphed in the...

Explain why there might be discrepancies for the different types of radiation if graphed in the same manner as your count rate versusinverse square of the distance graph. What type of radiation would you imagine having the most discrepancy?

In: Physics

CASE STUDY 3 : SMOKING AT IKE’S BAR-B-Q PIT By 2013, only 10 states in the...

CASE STUDY 3 : SMOKING AT IKE’S BAR-B-Q PIT

By 2013, only 10 states in the U.S. had not issued statewide bans on smoking in any nongovernment-owned spaces. Ike’s Bar-B-Q Pit is located in a state that allows smoking in restaurants and bars. Some of Ike’s nonsmoking customers, including some who suffer from asthma, have petitioned Ike to adopt a no-smoking rule for his restaurant. Upon hearing of the petition, some of Ike’s other customers complained that they have smoked in Ike’s restaurant for years and would not patronize the restaurant if the no-smoking rule were adopted. Ike is greatly concerned because he does not wish to lose business from either his smoking or nonsmoking customers.

Private Solutions to Externalities: The Coase Theorem

Learning Objective: Discuss the Coase theorem and explain how private bargaining can lead to economic efficiency in a market with an externality.

Although government intervention may increase economic efficiency in markets where externalities are present, it is possible for people to find private solutions to the problem of externalities. Ronald Coase made this argument in a 1960 article. To understand Coase’s argument, it is important to understand that completely eliminating an externality is usually not economically efficient.

A.   The Economically Efficient Level of Pollution Reduction

The optimal decision is to continue any activity up to the point where the marginal benefit equals the marginal cost. This applies to reducing pollution just as much as other activities. As pollution declines, society benefits, but the marginal benefit from eliminating another unit of pollution declines as emissions are reduced. As pollution declines, the marginal cost of further reductions rises. The net benefit to society from reducing pollution is equal to the difference between the benefit of reducing pollution and the cost. To maximize the net benefit to society, any type of pollution should be reduced to the point where the marginal benefit from another ton of reduction is equal to the marginal cost.

B.   The Basis for Private Solutions to Externalities

In arguing that private solutions to the problem of externalities were possible, Ronald Coase emphasized that when more than the optimal level of pollution is occurring, the benefits from reducing the pollution to the optimal level are greater than the costs.

C.   Do Property Rights Matter?

Ronald Coase pointed out that the amount of pollution reduction will be the same whether polluters or the victims of pollution are legally liable for damages. Bargaining between the parties will result in the same reduction in pollution, where the marginal benefit of the last unit of reduction is equal to the marginal cost.

D. The Problem of Transactions Costs

There are frequently practical difficulties in the way of a private solution to the problem of externalities. For example, if many people suffer from the negative effects of pollution, bringing all the victims together with all the producers of the pollution to negotiate an agreement often fails due to high transactions costs. Transactions costs are the costs in time and other resources that parties incur in the process of agreeing to and carrying out an exchange of goods or services.

E. The Coase Theorem

The Coase theorem is the argument of economist Ronald Coase that if transactions costs are low, private bargaining will result in an efficient solution to the problem of externalities. Private bargaining is most likely to reach an efficient outcome when the number of bargaining parties is small and all parties are willing to accept a reasonable agreement.

Because Ike’s restaurant is not in a state that regulates smoking in public places, Ike decides to meet with his smoking and nonsmoking customers to accommodate both of their wishes regarding his smoking policy.

  1. Draw a graph illustrating the externality associated with smoking in Ike’s Bar-B-Q Pit
  2. Explain how this externality causes a deviation from economic efficiency in this market.
  3. Do you think the Coase Theorem applies to this case?
  4. Suggest a solution that would be consistent with the Coase theorem, that is a solution that would enhance the well-being of Ike’s customers and increase economic efficiency.

In: Economics

Two frictionless “hoverpucks” (puck 1 and puck 2) with mass 0.20 kg are travelling on a...

Two frictionless “hoverpucks” (puck 1 and puck 2) with mass 0.20 kg are travelling on a collision course with a third hoverpuck which is at rest and has mass 0.40 kg. Before they collide, puck 1 has velocity (1.0 m/s) î – (1.0 m/s) ĵ. After the collision they all stick together and have velocity (2.0 m/s) î + (0.5 m/s) ĵ. Friction is negligible.

a) What is the velocity of puck 2 before the collision?

b) What is the total impulse on puck 1 during the collision?

c) If the duration of the collision was 0.15 s what was the average force exerted by puck 3 on puck 1?

d) How much kinetic energy is gained or lost by the three-puck system?

In: Physics

A block of mass m = 2.00 kg is released from rest at h = 0.400...

A block of mass m = 2.00 kg is released from rest at h = 0.400 m above the surface of a table, at the top of a ? = 40.0

In: Physics