Questions
1. The demand and supply schedules for hot dogs are: Price Quantity demanded (millions per week)...

1. The demand and supply schedules for hot dogs are:

Price

Quantity demanded

(millions per week)

Quantity supplied

(millions per week)

40 170 90
50 160 100
60 150 110
70 140 120
80 130 130
90 120 140
100 110 150
110 100 160

a. What are the equilibrium price and equilibrium quantity of hot dogs?

b. If the price for hot dogs were 90 cents, describe the situation in the market for hot dogs and explain what would happen next in the market.

c. Assume a new breed of “lipless” pigs is bred, resulting in a decrease in supply of 40 million hot dogs per week. What is the new equilibrium price and quantity in the market?

d. Assume that, at the same time that part c. occurs, a Canadian news magazine prints a story regarding the cancer-reducing effects of hot dog consumption. The result is an increase to demand of 20 million hot dogs per week. What is the new equilibrium price and quantity in the market?

In: Economics

The cost of weddings in the United States has skyrocketed in recent years. As a result,...

The cost of weddings in the United States has skyrocketed in recent years. As a result, many couples are opting to have their weddings in the Caribbean. A Caribbean vacation resort recently advertised in Bride Magazine that the cost of a Caribbean wedding was less than $10,000. Listed below is a total cost in $000 for a sample of 8 Caribbean weddings. At the .01 significance level is it reasonable to conclude the mean wedding cost is less than $10,000 as advertised?

9.0

9.1

8.5

9.1

10.8

9.7

8.5

9.4

(a)

State the null hypothesis and the alternate hypothesis. Use a .01 level of significance. (Enter your answers in thousands of dollars.)

  H0: μ   
  H1: μ <   
(b)

State the decision rule for .01 significance level. (Negative amount should be indicated by a minus sign. Round your answer to 3 decimal places.)

  Reject H0 if t <   
(c)

Compute the value of the test statistic. (Negative amount should be indicated by a minus sign. Round your answer to 3 decimal places.)

  Value of the test statistic   
(d)

At the .01 significance level is it reasonable to conclude the mean wedding cost is less than $10,000 as advertised?

  (Click to select)RejectDo not reject H0. The cost is (Click to select)lessnot less than $10,000.

In: Statistics and Probability

This is my coded "multipath adventure" that I created. Now I have to modify it to...

This is my coded "multipath adventure" that I created. Now I have to modify it to include loops but I am really struggling to do so. Below are the instructions and my current code that needs to be modified. Thank you in advance!

  • You must have at least 1 for loop in your code
    • The for loop must actually be used as a loop, and it must have real effect in your program (it is theoretically possible to use the for loop syntax without actually using it as a loop or creating any real effect, but if you do this you will lose points)
  • You must have at least 1 while loop in your code
    • The note on for loops above applies equally to this deduction regarding while loops
  • You must have at least 1 instance of rand() in your code
    • Your use of rand() must have real effect in your program (it is possible to use rand() to generate a random number without actually using the random number, but if you do this you will lose points
  • The above are REQUIREMENTS and below are just some SUGGESTIONS
    • Use a while loop to enable the player to play your game multiple times
    • Create an input function that utilizes a loop to prompt for and validate user input
      • Takes a prompt (string) as the argument
      • Returns the valid input (string)
    • For the requirement to use at least 1 for loop:
      • Consider using for loop(s) to draw box or stars around prompt in your input function (see above)
    • For the requirement to use at least 1 instance of rand():
      • Consider including a randomized process in your game, such as rolling a die, and using rand() to simulate the process
      • Consider including a point where the game randomly selects between multiple possible descriptions. For example, you could have the game randomly decide whether to describe the weather as "sunny" or "rainy".

#include<iostream>
#include<string>
using namespace std;

string getChoice1()
{

string choice1;

cout << "You wake up on the weekend and you don't know what to do. Do you..." << endl;
cout << "a. Be responsible and get some homework done" << endl;
cout << "b. Start watching some TV" << endl;

cin >> choice1;

return choice1;

}

string getChoice4()
{

string choice4;

cout << "Good job! Now you must choose which homework to do! Do you want..." << endl;
cout << "a. Computer Science" << endl;
cout << "b. Work on another subject" << endl;

cin >> choice4;

return choice4;

}

void getChoice5(string choice4, string &choice5)
{

if (choice4 == "b")
{

cout << "That's alright. But what other subject do you want to do?" << endl;
cout << "a) Research design and analysis" << endl;
cout << "b) IT&C" << endl;

cin >> choice5;

}

}

void getChoice2(string &choice2)
{

cout << "That's okay! What should you watch?"; cout << "a) Reality TV" << endl;
cout << "b) a movie" << endl;

cin >> choice2;

}

void getChoice3(string &choice3)
{

cout << "Cool. Now you must choose which show to watch. Do you want to watch..." << endl;
cout << "a) The Real Housewives of Salt Lake City" << endl;
cout << "b) Criminal Minds" << endl;

cin >> choice3;

}

int main ()
{

string choice1,choice2,choice3,choice4,choice5;

choice1 = getChoice1();

if (choice1 == "a")
{

choice4 = getChoice4();

}

if (choice4 == "a")
{

cout << "Perfect. You sit down and begin your main lab 4 for CS 142. THE END" << endl;

return 0;

}

getChoice5(choice4,choice5);

if (choice5 == "a")
{

cout << "Sounds good. You sit down and begin module 3. THE END." << endl;

return 0;

}

else if(choice5=="b")
{

cout << "Ok. You begin your quiz for IT&C. THE END." << endl;

return 0;

}

if (choice1 == "b")
{

getChoice2(choice2);

}

if (choice2 == "b")
{

cout << "Great choice! You decide to stay in bed and watch a movie. THE END" << endl;

return 0;

}

else
{

getChoice3(choice3);

}

if (choice3 == "b")
{

cout << "Great! You end up watching Criminal Minds! THE END" << endl;

}

else
{

cout << "You end up trying to watch RHSL but find out it has not come out yet so you end up going with option b anyways. THE END" << endl;

}

}

In: Computer Science

Explain why each of the following statements is True, False, or Uncertain according to economic principles....

Explain why each of the following statements is True, False, or Uncertain according to economic principles. Use diagrams where appropriate.

112-A1-1. Suppose high-speed rail links between two pairs of cities cost a total $1B each. The first pair of cities has already spent $200M (that cannot be recovered) on the preliminary surveying work, while the second pair has not yet begun work. It is more likely that the first pair of cities will complete the project than that the second pair will undertake the project.

112-A1-2. In an economy that produces only guns and butter, if the economy is currently producing only butter, then the opportunity cost of guns is zero.

112-A1-3. Suppose that Ontario can produce wheat at $1/bushel and corn at $3/bushel and Quebec can produce wheat at $4/bushel and corn at $4/bushel. Ontario has an absolute advantage in corn production, but Quebec has a comparative advantage in corn production.

112-A1-4. The data in 112A1-3 tells us that trading corn from Quebec to Ontario at a price of 2 bushels of corn per bushel of wheat will make both provinces better off.

112-A1-5. If the demand curve for a good is given by Qd=100-P and the supply curve for the good is given by Qs=-100+19P, the equilibrium in the market {P, Q} is {10, 90}

In: Economics

[The following information applies to the questions displayed below.] Allied Merchandisers was organized on May 1....

[The following information applies to the questions displayed below.]

Allied Merchandisers was organized on May 1. Macy Co. is a major customer (buyer) of Allied (seller) products.

May 3 Allied made its first and only purchase of inventory for the period on May 3 for 2,000 units at a price of $7 cash per unit (for a total cost of $14,000).
5 Allied sold 1,000 of the units in inventory for $11 per unit (invoice total: $11,000) to Macy Co. under credit terms 2/10, n/60. The goods cost Allied $7,000.
7 Macy returns 100 units because they did not fit the customer’s needs (invoice amount: $1,100). Allied restores the units, which cost $700, to its inventory.
8 Macy discovers that 100 units are scuffed but are still of use and, therefore, keeps the units. Allied sends Macy a credit memorandum for $300 toward the original invoice amount to compensate for the damage.
15 Allied receives payment from Macy for the amount owed on the May 5 purchase; payment is net of returns, allowances, and any cash discount.

Prepare the appropriate journal entries for Macy Co. to record each of the May transactions. Macy is a retailer that uses the gross method and a perpetual inventory system, and purchases these units for resale. (If no entry is required for a transaction/event, select "No journal entry required" in the first account field.)

In: Accounting

ASAP PLEASE!!!! USING JAVA /* 1. When should you use a do-while loop? ** Write your...

ASAP PLEASE!!!! USING JAVA

/*

1. When should you use a do-while loop?

** Write your answer as a multi-line Java comment **

*/

/*

2. Identify the algorithm that matches this code snippet. Your choices are:

  sum and average, counting matches, first match, prompt until match, and

  comparing adjacent values.  Write your answer below the coded.     

  int firstNum = 0;

  int number = scnr.nextInt();

  while (scnr.hasNextInt())

  {

  int input = scnr.nextInt();

  if (input == number)

  {

  firstNum++;

  }

  }

  My answer is:

*/

/*

3.

  Write a Java code snippet with a do-while loop to validate user input. Prompt the

  user to enter a value less than 100. If the user doesn't enter a value less than 100,

ask again until they provide a valid number. Print the valid number to the console.

*/

/*

4. Write a Java code snippet with a nested for loop to

  print five rows of six random integers between 5 and 10 inclusive.

*/

/*

5. Currency conversion: Write a snippet that first asks the user to type

  today's US dollar price for one  Euro. Then use a loop to:

-- prompt the user to enter a Euro amount. (allow decimals)

-- convert that amount to US dollars. (allow decimals)

-- print the amount to the screen, formatted to two decimal places

Use 0 as a sentinel to stop the loop.

*/

In: Computer Science

Required information Allied Merchandisers was organized on May 1. Macy Co. is a major customer (buyer)...

Required information

Allied Merchandisers was organized on May 1. Macy Co. is a major customer (buyer) of Allied (seller) products.

May 3 Allied made its first and only purchase of inventory for the period on May 3 for 2,000 units at a price of $7 cash per unit (for a total cost of $14,000).
5 Allied sold 1,000 of the units in inventory for $11 per unit (invoice total: $11,000) to Macy Co. under credit terms 2/10, n/60. The goods cost $7,000 to Allied.
7 Macy returns 100 units because they did not fit the customer’s needs (invoice amount: $1,100). Allied restores the units, which cost $700, to its inventory.
8 Macy discovers that 100 units are scuffed but are still of use and, therefore, keeps the units. Allied sends Macy a credit memorandum for $300 toward the original invoice amount to compensate for the damage.
15 Allied receives payment from Macy for the amount owed on the May 5 purchase; payment is net of returns, allowances, and any cash discount.

Prepare the appropriate journal entries for Macy Co. to record each of the May transactions. Macy is a retailer that uses the gross method and a perpetual inventory system, and purchases these units for resale. (If no entry is required for a transaction/event, select "No journal entry required" in the first account field.)

In: Accounting

For each of the problems below solve for monopoly quantity, monopoly price, total revenue, total cost,...

For each of the problems below solve for monopoly quantity, monopoly price, total revenue, total cost, profit, and dead weight loss.

Qd = 100 – 0.5p                            TC = 2Q2

Qd = 500 – 0.2p                            TC = Q2 + 100Q        

Qd = 30 – 0.6p                              TC = Q2 + 10Q +100

QD = 1000 – 0.25p                       TC = 2Q2 + 25Q + 100

In: Economics

Edie died last month owning a whole life insurance policy on her husband Rob’s life. The...

Edie died last month owning a whole life insurance policy on her husband Rob’s life. The death benefit amount was $500,000 and the insurance company valued the policy at $80,000. Edie was the beneficiary of the policy and her son Manny was the contingent owner.

What amount is included in Edie’s estate? Is the policy part of Edie’s probate estate? Explain your answers.

In: Accounting

Nellie Fox maintains her home in which she and her daughter reside. The daughter does not...

Nellie Fox maintains her home in which she and her daughter reside. The daughter does not qualify as Nellie's dependent. Nellie's husband died the previous year. What is Nellie's filing status for the year? Question 13 options: 1) Married filing jointly 2) None of these 3) Head of household 4) Single 5) Surviving spouse.

In: Accounting