Government is considering building a public park in a small town ìBelleî. The cost of building this park is 120. There are three people in this town, Arnold, Ben, and Carrol. Each personís valuation of the park is 20, 30, and 80 respectively. But, government does not know these valuations.
(a) The government decides whether to build this park by majority voting. If majority supports building the park, then cost will be equally shared. What will be the outcome of majority voting?
(b) Government suggests that the cost of building the park will be financed through the government revenue in other towns. But government will only take this project when the benefit is higher than the cost. Government want survey these three to know the benefit of the park. Do you think this is the right plan to get the benefit of the park? Explain why or why not.
(c) Government suggests another plan. Government will survey these three to get the valuation of the park. If the sum of benefit is greater than the cost, cost will proportionately shared among three according to the reported valuation. For example, the reported valuation is 50, 60, and 70, then each cost share will be 50/(50+60+70), 60/(50+60+70), and 70/(50+60+70). Do you think this is the right plan to get the true valuation? Explain why or why not.
In: Economics
Implement these methods (adjust DoubleList.java only for errors if you think needed):
getNode – take in one int parameter indicating the index of the node to retrieve (index 0 is the front). If that index is out of the bounds of the list, throw a DoubleListException with an appropriate message. Otherwise, determine which half of the list the index is in, and traverse to it using the shortest traversal to get there, by calling either traverseForwards or traverseBackwards with the number of steps to get to the index from the corresponding end (if it's the very middle, you can decide which way to go). For example, consider a list with 5 nodes. Calling getNode(1) should retrieve the node immediately after front using traverseForwards. Calling getNode(3) should retrieve the node immediately after rear using traverseBackwards. Return the found node.
setElement – take in two input parameters: index (int) and element (generic type). Call the getNode method described below to find the node to be updated, and then called setElement on that node with the given element
getElement – take in one input parameter: index (int). Call the getNode method with the given index and return the data element of the node at that position.
toString – returns the string representing the list from the front to the rear with a space between each node. If the list is empty, then return the string "Empty list".
DoubleNode.java
public class DoubleNode{
private DoubleNode next;
private DoubleNode previous;
private T element;
/**
* Constructor with no input parameters.
*/
public DoubleNode(){
next = null;
previous = null;
element = null;
}
/**
* Constructor with one input parameter representing the node's data element.
* @param elem
*/
public DoubleNode (T elem){
next = null;
previous = null;
element = elem;
}
/**
* Get the next node.
* @return next node
*/
public DoubleNode getNext(){
return next;
}
/**
* Get the previous node.
* @return previous node
*/
public DoubleNode getPrevious(){
return previous;
}
/**
* Set the next node.
* @param node
*/
public void setNext (DoubleNode node){
next = node;
}
/**
* Set the previous node.
* @param node
*/
public void setPrevious (DoubleNode node){
previous = node;
}
/**
* Get the data element.
* @return data element.
*/
public T getElement(){
return element;
}
/**
* Set the data element.
* @param elem
*/
public void setElement (T elem){
element = elem;
}
/**
* Return the node's data element for printing purposes.
* @return string of node's data element
*/
public String toString () {
return element.toString();
}
}
DoubleList.java
public class DoubleList{
DoubleNode front,rear;
private T count;
public DoubleList () {
front = null;
rear = null;
count = 0;
}
public void addToRear(T elem){
DoubleNode new_node = new DoubleNode(elem);
if (front.getElement() == null){
front.setElement(new_node);
rear.setElement(new_node);
} else if (front.getElement() != null){
new_node.setPrevious(rear);
rear.setNext(new_node);
rear = new_node;
}
count = count + 1;
}
public void traverseForwards(T elem){
DoubleNode numNode = new DoubleNode(elem);
curNode = front.getElement();
for (i = 0; i = numNode; ++i){
System.out.println(curNode);
curNode = curNode.getNext();
} if (front.getElement == null){
System.out.println(null);
}
}
public void traverseBackwards(T elem){
DoubleNode numNode = new DoubleNode(elem);
curNode = rear.getElement();
for (i = 0; i = numNode; ++i){
System.out.println(curNode);
curNode = curNode.getPrevious();
} if (rear.getElement == null){
System.out.println(null);
}
}
In: Computer Science
Based on each of the following scenarios below, draft an effective finding for the Management Letter. Five Components of an effective finding:
Write one paragraph.
scenario:
During an operational audit of a University department, it was discovered that four new vehicles had been purchased in January, but had not yet been insured by the time the audit occurred in April. The vehicles had been driven approximately 3,000 miles during that time.
In: Accounting
In: Operations Management
Possible Duplicate:
Black hole formation as seen by a distant observer
Given that matter can never cross the event horizon of a black hole (from an external observer point of view), if a black hole is "fed" with a large amount of matter then the new matter will eventually become extremely compressed, and presumably would be compressed below its Schwarzchild radius.
Would secondary black holes eventually form near the original black hole?
As an alternative one could also imagine that the combined mass of the original black hole and the new mass around the event horizon becomes contained within the Schwarzchild radius of both masses, and so a new event horizon forms, "swallowing" the new mass around the edge of the original black hole.
This mechanism would allow black holes to swallow mass in a
finite time.
Would this contradict GR predictions?
In: Physics
Problem 10-1 Acquisition costs [LO10-1, 10-2, 10-3, 10-4]
Tristar Production Company began operations on September 1,
2018. Listed below are a number of transactions that occurred
during its first four months of operations. (FV of $1, PV of $1,
FVA of $1, PVA of $1, FVAD of $1 and PVAD of $1) (Use
appropriate factor(s) from the tables provided.)
Required:
Prepare journal entries to record each of the above transactions.
(If no entry is required for a transaction/event, select
"No journal entry required" in the first account field. Round final
answers to the nearest whole dollars.)
In: Accounting
Four masses are at the corners of a square of length ℓ = 20.0 cm and a fifth mass is at the center of the square. The masses are m1 = 5.00 g, m2 = 3.00 g, m3 = 1.00 g, m4 = 5.00 g, and m5 = 1.50 g.
a-Draw the free body diagram for fifth mass.
b-Determine the net gravitational force on the fifth mass in unit vector notation.
In: Physics
Explain how the optimal combination of work and consumption changes after a decline in the wage rate. (It would be helpful for you to practice graphing this in the consumer’s problem)
In: Economics
For the following reaction: NiO2(s) + 4 H+(aq) + 2 Ag(s) → Ni2+(aq) + 2 H2O(l) + 2 Ag+(aq) script E° = 2.48 V Calculate the pH of the solution if script E = 2.32 V and [Ag+] = [Ni2+] = 0.012 M. Use the Standard Reduction Table.
In: Chemistry
Use the “Golden Rules of probability distributions” to prove that all coordination games have a mixed strategy Nash equilibrium.
In: Economics
Explain what information is embedded into the yield curve. How can we use it to learn market-level expectations for the short-term interest rates?
In: Economics
Answer the following questions about one-dimensional motion.
In: Physics
Part 1. A catcher “gives” with the ball when he catches a 0.113 kg baseball moving at 22.4 m/s.
If he moves his glove a distance of 6.1 cm, what is the average force acting on his hand?
Answer in units of kN.
Part 2.
Repeat for the case in which his glove and hand move 10.5 cm.
Answer in units of N.
In: Physics
In the essay, “The Walls of Thebes,” what is the significance of the title of this essay? How is the title related to the central theme or argument present in the essay?
In: Psychology
A spherically-symmetric planet is made of an empty inner core of
radius a surrounded by a thick shell of radius 2a, which is
surrounded by another thick shell of radius 3a. The inner shell has
a volume density that only depends on radius and is given by s1(r)
= br^3, where b is a known positive constant. The outer shell also
has a volume density that only depends on radius and is given by
s2(r) = y/(r^2), where y is a known positive constant.
[Planet 2]
b=alpha
s= rho
y=gamma
Find the gravitational field in the following regions in terms of
G, b, y, a, and r.
r < a:
a < r < 2a:
2a < r < 3a:
r > 3a:
In: Physics