Consider the following supply and demand equations for rice: Qd = 100 – 8P + 0.1Y Qs = 50 + 2.4P – 2W Where Qd is quantity demanded, P is price, Y is income in thousands of dollars, Qs is quantity supplied, and W is the wage rate for labor ($/hour). Assume the following: Y = 50 W = 25 1. Compute the equilibrium price and quantity for this problem. 2. Assume that the income has increased by 10 thousand dollars. What are the equilibrium price and quantity now? 3. Compare the equilibrium price and quantity for the two equilibriums. What is the intuition behind the observed change (e.g. why did the equilibrium quantity/price increase/decrease? Why does this make sense)? Without solving mathematically, what would be the impact of a wage increase on the market outcomes? Why?
In: Economics
In: Economics
2. Consider an economy that produces and consumes bread and automobiles. In the following table are data for two different years.
|
2000 |
2010 |
|||
|
Quantity |
Price |
Quantity |
Price |
|
|
Automobiles |
100 |
$50000 |
120 |
$60000 |
|
Bread |
500000 |
$10 |
400000 |
$20 |
(a) Using 2000 as the base year, compute the following statistics for each year: nominal GDP, real GDP, the implicit price deflator for GDP, and a fixed-weight price index such as the CPI.
(b) How much did prices rise between 2000 and 2010? Compare the answers given by the Laspeyres and Paasche price indexes. Explain the difference.
(c) Suppose you are a senator writing a bill to index Social Security and federal pensions. That is, your bill will adjust these benefits to offset changes in the cost of living. Will you use the GDP deflator or the CPI? Why?
In: Economics
Suppose one market has a demand curve ?(?) = 100 − ??
(1)If this market has many firms supplying the identical products to the consumers, and the industry has a cost function ?(?) = 2? ^2. What are the market equilibrium price and quantity?
(2)What is the price elasticity of demand at the market equilibrium in (1)?
(3)If this market has only one firm supplying the products, with cost function ?(?) = 2?^2. What are the market equilibrium price and quantity now
(4)What is the price elasticity of demand at the market equilibrium in (3)? What can we conclude about the monopoly's profit-maximizing behavior regarding the price elasticity of demand?
(5)Illustrate consumer surplus, producer surplus and the total social welfare (total surplus) for the two cases. Based on your comparison, discuss the arguments for and/or against the monopoly.
In: Economics
You will write a single class named WordsXX- replace the XX's with your initials.
The program will have 2 overloaded methods named wordMaker. They will have to be declared as static. Both methods will not have a return type but they will print some text.
The first method wordMaker signature will not accept any parameters and when invoked will simply print out the line "lower case words".
The second overloaded wordMaker method will accept an integer and print "Words in UPPER CASE" . The method will print the phrase as many times as the parameter indicates with each new iteration printed on a new line.
Write a main method that prompts users to enter either the word
"lower" or "upper". (Make sure you allow for all varieties of
capitalization.)
If they enter "upper" then generate a random number from 3-9 and call wordMaker to print the upper case phrase that many times.
If they enter "lower" it will use the other version of the method.
Part 2
1a. Write a program that randomly generates an integer between 0 AND 50 inclusive. The program should then prompt the user to enter a number until the user input number matches the randomly generated number. For each user input the program tells the user if the number that is input by the user is too high or too low, so the user can make the next guess intelligently. Repeat until match is found
1b. Once the the number is guessed print on the screen whether the number is odd or even.
(Hint to generate Random numbers)
import java.util.Random;
Random rand = new Random();
int n = rand.nextInt(50) + 1;
Please this is urgent do please Java
In: Computer Science
Modify the included program to implement the strict alternation solution to achieve mutual exclusion. It does not matter whether Thread 0 goes first or Thread 1, but it is important that the thread strictly alternate.
PROGRAM:
#include <iostream>
#include <pthread.h>
#include <stdlib.h>
int count;
int turn = 0; // Shared variable used to implement strict
alternation
void* myFunction(void* arg)
{
int actual_arg = *((int*) arg);
for(unsigned int i = 0; i < 10; ++i) {
// TODO:
// Make sure that the thread waits for its turn
// before it enters the critical region.
//
// HINT: The thread ID is stored in actual_arg
while(turn != actual_arg);
// Beginning of the critical region
count++;
std::cout << "Thread #" << actual_arg << " count
= " << count << std::endl;
// End of the critical region
// TODO:
// Make sure that the other thread gets a turn
//
// HINT: There are only two threads: 0 and 1
// You can use the C++ NOT operator (!)
// to toggle back and forth.
// Random wait - This code is just to ensure that the threads
// show data sharing problems
int max = rand() % 100000;
for (int x = 0; x < max; x++);
// End of random wait code
}
pthread_exit(NULL);
}
// HINT: It is not necessary to make any changes in main()
int main()
{
int rc[2];
pthread_t ids[2];
int args[2];
count = 0;
for(unsigned int i = 0; i < 2; ++i) {
args[i] = i;
rc[i] = pthread_create(&ids[i], NULL, myFunction, (void*)
&args[i]);
}
for(unsigned int i = 0; i < 2; ++i) {
pthread_join(ids[i], NULL);
}
std::cout << "Final count = " << count <<
std::endl;
pthread_exit(NULL);
}
In: Computer Science
15.
Maria Lorenzi owns an ice cream stand that she operates during the summer months in West Yellowstone, Montana. She is unsure how to price her ice cream cones and has experimented with two prices in successive weeks during the busy August season. The number of people who entered the store was roughly the same each week. During the first week, she priced the cones at $3.60 and 1,855 cones were sold. During the second week, she priced the cones at $4.10 and 1,450 cones were sold. The variable cost of a cone is $.40 and consists solely of the costs of the ice cream and the cone itself. The fixed expenses of the ice cream stand are $2,000 per week.
Required:
a. What profit did Maria earn during the first week when her price was $3.60?
b. At the start of the second week, Maria increased her selling price by what percentage? What percentage did unit sales decrease? (Round your percentage answers to 2 decimal place.)
c. What profit did Maria earn during the second week when her price was $4.10?
d. What was Maria's increase (decrease) in profits from the first week to the second week?
In: Accounting
Maria Lorenzi owns an ice cream stand that she operates during the summer months in West Yellowstone, Montana. She is unsure how to price her ice cream cones and has experimented with two prices in successive weeks during the busy August season. The number of people who entered the store was roughly the same each week. During the first week, she priced the cones at $5.80 and 2,460 cones were sold. During the second week, she priced the cones at $6.30 and 2,000 cones were sold. The variable cost of a cone is $1.50 and consists solely of the costs of the ice cream and the cone itself. The fixed expenses of the ice cream stand are $2,055 per week.
Required:
1. What profit did Maria earn during the first week when her price was $5.80?
2. At the start of the second week, Maria increased her selling price by what percentage? What percentage did unit sales decrease? (Round your percentage answers to 2 decimal place.)
3. What profit did Maria earn during the second week when her price was $6.30?
4. What was Maria's increase (decrease) in profits from the first week to the second week?
In: Accounting
1. BJ’s Wholesale Club Holdings went through IPO on 6/28/2018. Approximately 37.5 million shares were offered at a price of $17/share. A total of $36,656,250 was paid as underwriting fees. The price rose to roughly $21 on the first day of trading. What was BJ’s loss (at best) in this IPO? (0.5)
In: Finance
Given the following Java source code fragment double price[]; price = new double[16]; What's the name of the array? How many elements are in the array? What's the index of the first element in the array? What's the index of the last element in the array? What's the value of the element at index 3 after the last statement executes?
In: Computer Science