Questions
A bond has annual coupon rate of 7%, with interest paid semiannually. The bond matures in...

A bond has annual coupon rate of 7%, with interest paid semiannually. The bond matures in seven years. At a market discount rate of 5%, the price of this bond per 100 of par value is closest to:

Round your answer to 2 decimal places.

In: Finance

What will be the nominal rate of return on a perpetual preferred stock with a $100...

What will be the nominal rate of return on a perpetual preferred stock with a $100 par value, a stated dividend of 10% of par, and a current market price of (a) $54.00, (b) $82.00, (c) $101.00, and (d) $148.00? Round your answers to two decimal places.

  1. %
  2. %
  3. %
  4. %

In: Finance

The inverse demand equation for the output of a monopolist is P = 50 − 2Q....

The inverse demand equation for the output of a monopolist is P = 50 − 2Q. The monopolist's total cost equation is C(Q) = 100 + 2Q + Q2. What is the deadweight loss at the profit-maximizing output and price?

  • $48

  • $64

  • $16

  • $32

  • None of the options.

In: Economics

My code does not compile, I am using vim on terminal and got several compiling errors...

My code does not compile, I am using vim on terminal and got several compiling errors this is C++ language I need help fixing my code below is the example expected run and my code.

Example run (User inputs are highlighted):

Enter your monthly salary: 5000
Enter number of months you worked in the past year: 10 Enter the cost of the car: 36000
Enter number of cars you’ve sold in the past year: 30 Enter number of misconducts observed in the past year: 4 Which tax year are you in, enter 1 for 2018, 2 for 2019: 1 Which state are you in, enter A, B, or C: C

The average selling price, generated randomly, is $38000, you will earn 2% of the profit, which is $1200.

The gross income is: $50400
The tax you need to pay is: $4286 Remaining: $46114

BELOW IS MY CODE.

#include <iostream>

#include <cmath>

using namespace std;

int main() {

float salary,cost,tax;

int months,cars,misconducts,year;

float annual_salary,profit,rand_price,deduction,gross_income=0,income;

char state;

/* Take monthly slary from user. */

cout<<”Enter your monthly salary: ";

   cin>>salary;

  cout<<endl;

/* takes  the number of months you worked in the past year from the user. */

cout<<”Enter the number of months you worked in the past year: ";

cin>>months;

cout<<endl;

/* take the cost of car from the user. */

  cout<<”Enter the cost of the car: ";

cin>>cost;

cout<<endl;

   /* take  the number of cars sold in the past year from user. */

     cout<<Enter number of car’s that you’ve sold in the past year: ";

     cin>>cars;

     cout<<endl;

     /* takes number of misconducts observed in the past year. */

         cout<<”Enter number of misconducts observed in the past year: ";

               cin>>misconducts;

               cout<<endl;

               /* take tax year from user */

                cout<<”Which tax year are you in enter 1 for 2018, 2 for 2019: ";

                 cin>>tax_year;

                 cout<<endl;

                  /* take state from the user */

                  cout<<”Which state are you in, enter A, B or C: ";

                  cin>>state;

                  cout<<endl<<endl;

                annual_salary=salary*months;

                 rand_price=((rand()%5+6)+100)*0.01*cost; /* generate random number between 5 and 10 */

                 profit=cars*(rand_price-cost);

                 if(misconduct==0)

                 {

                   deduction=0;

                     }

     else

{

                      deduction=100*(pow(2,misconducts-1));

                       }

                      /* calculate the gross income */

                       gross_income=annual_salary+0.02*(profit)-deduction;

                       income=gross_income;

                      /* calculate the tax based on state and tax_year */

                     /* check if tax_year=1 */

                     if(tax_year=1)

                      {

                           /* check  state is A */

                        if(state==’A')

                          {

                                tax=0.06*income;

                                 }

/* check state is B */

else if(state=='B')

{

if(income<2000)

{

   tax=0;

}

else if(income>2000 && income<10000)

{

   tax=100;

}

else

{

  tax=0.1*income+100;

        }

}

/* state is C */

  else if(state=='C')

{

  if(income>0 && income<3500)

{

  tax=0.05*income;

}

  else if(income>3500 && income<9000)

{

  tax=0.07*income+175;

}

else if(income>9000 && income<125000)

{

   tax=0.09*income+560;

}

else

{

   tax=0.099*income+11000;

}

}

else

{

tax=0;

}

}

/* check tax_year if it equals to 2 */

else if(tax_year==2)

{ //check state is A

if(state=='A')

{

  tax=0.08*income;

}

/* check state is B */

else if(state=='B')

{

  if(income<2500)

{

   tax=0;

}

  else if(income>2500 && income<10000)

{

   tax=115;

}

  Else

{

   tax=0.105*income+115;

}

}

/* check state is C */

else if(state=='C')

{

  if(income>0 && income<3450)

{

   tax=0.05*income;

}

    else if(income>3450 && income<8700)

{

   tax=0.07*income+172.5;

}

else if(income>3450 && income 8700)

{

   tax=0.07*income+172.5;

}

  else if(income>8700 && income<125000)

{

  tax=0.09*income+540;

}

else

{

  tax=0.099*income+11007;

}

}

else

{

    tax=0;

}

}

else

{

   tax=0;

}

/* print gross_income and the tax */

cout<<"The average selling price, generated randomly, is $"<<rand_price<<", you will earn 2% of the profit, which is $"<<profit*0.02<<endl;

cout<<endl;

cout<<"The gross income is: $"<<gross_income<<endl;

cout<<"The tax you need to pay is: $"<<tax<<endl;

cout<<"Remaining: $"<<gross_income-tax<<endl;

return 0;

}

In: Computer Science

1. Plastic First is engaged in the manufacturing of plastic materials. It is an allequity firm...

1. Plastic First is engaged in the manufacturing of plastic materials. It is an allequity firm with 80 million shares outstanding, currently trade at $20 per share. It is considering acquiring My Toys to expand its business into the final products. My Toys currently has 30 million shares outstanding with a market price of $22 per share. The merger is expected to generate synergistic gains of $35 million in the first year. These gains are expected to grow at rate of 4% per year thereafter forever. Cash flows can be discounted at a nominal rate of 12.0%.

a). If Plastic First make a cash offer for the shares of My Toys with a premium of 40% on the prevailing market price of My Toys, what is the NPV of the merger to MMG shareholders?

b). If, instead a stock offer is made such that the NPV of the merger to Plastic First shareholders is the same as in (a), what is the appropriate exchange ratio for the acquisition of the acquirer after the acquisition?

c). What is the maximum exchange ratio that the management of Plastic First can pay (on a per share basis) for a share of My Toys without hurting its own shareholders?

In: Finance

Write a C program that allows users to enter three runners name (up to 20 characters)...

Write a C program that allows users to enter three runners name (up to 20 characters) and their runtime (2 decimals)

(1) First and Last name

(2) Running time for 100 m ex. 9.96 seconds

your program should rank them in ascending order of their runtime. example:

usian Bolt - 9.96 sec - First Place

John doe - 9.99 sec - second Place

Pete Urel -10.11 sec - third place

BUT they fan tie for first place and no second place awarded

usian Bolt - 9.96 sec - First Place

John doe - 9.96 sec -First Place

Pete Urel -10.11 sec - third place

OR they can tie for second place and no third place awarded

usian Bolt - 9.96 sec - First Place

John doe - 10.11sec - second Place

Pete Urel -10.11 sec - second place

YOU CANNOT USE AN ARRAY DATA STRUCTURE TO STORE DATA FOR EACH RUNNER

In: Computer Science

The market price of cheeseburgers in a university town increased recently, and the students in an economics class are debating the cause of the price Increase.

13. Another supply and demand puzzle

 The market price of cheeseburgers in a university town increased recently, and the students in an economics class are debating the cause of the price Increase. Some students suggest that the price increased because the price of beef, an important ingredient for making cheeseburgers, has increased. Other students attribute the increase in the price of cheeseburgers to a recent increase in the price of calzones at local pizza parlours.

 Everyone agrees that the increase in the price of calzones was caused by a recent increase In the price of pizza dough, which is not generally used in making cheeseburgers. Assume that burger joints and pizza parlours are entirely separate entities-that is, there aren't places that serve both cheeseburgers and calzones.

 The first group of students thinks the increase in the price of cheeseburgers is due to the fact that the price of beef, an important ingredient for making cheeseburgers, has increased.

 On the following graph, adjust the supply and demand curves to illustrate the first group's explanation for the increase in the price of cheeseburgers.

 Note: Select and drag one or both of the curves to the desired position. Curves will snap into position, so if you try to move a curve and it snaps back to its original position, just drag it a little farther.

 

 The second group of students attributes the increase in the price of cheeseburgers to the increase in the price of calzones at local pizza parlours. On the following graph, adjust the supply and demand curves to illustrate the second group's explanation for the increase in the price of cheeseburgers.

 Note: Select and drag one or both of the curves to the desired position. Curves will snap into position, so if you try to move a curve and it snaps back to its original position, just drag it a little farther.

 

 Suppose that both of the events you have just analyzed are partly responsible for the increase in the price of cheeseburgers. Based on your analysis of the explanations offered by the two groups of students, how would you figure out which of the possible causes was the dominant cause of the

 increase in the price of cheeseburgers?

 Whichever change occurred first must have been the primary cause of the change in the price of cheeseburgers.

 If the equilibrium quantity of cheeseburgers decreases, then the demand shift in the market for cheeseburgers must have been larger than the supply shift.

 If the equilibrium quantity of cheeseburgers decreases, then the supply shift in the market for cheeseburgers must have been larger than the demand shift.

 If the price increase was large, then the supply shift in the market for cheeseburgers must have been larger than the demand shift.

 

 

 

 

 

 

 

In: Economics

Demand estimation Early in 1993, the Southeastern Transportation Authority (STA), a public agency responsible for serving...

Demand estimation Early in 1993, the Southeastern Transportation Authority (STA), a public agency responsible for serving the commuter rail transportation needs of a large Eastern city, was faced with rising operating deficits on its system. Also, because of a fiscal austerity program at both the federal and state levels, the hope of receiving additional subsidy support was slim. The board of directors of STA asked the system manager to explore alternatives to alleviate the financial plight of the system. The first suggestion made by the manager was to institute a major cutback in service. This cutback would result in no service after 7:00 pm, no service on weekends, and a reduced schedule of service during the midday period Monday through Friday. The board of STA indicated that this alternative was not likely to be politically acceptable and could only be considered as a last resort. The board suggested that because it had been over five years since the last basic fare increase, a fare increase from the current level of $1 to a new level of $1.50 should be considered. Accordingly, the board ordered the manager to conduct a study of the likely impact of this proposed fare hike. The system manager has collected data on important variables thought to have a significant impact on the demand for rides on STA. These data have been collected over the past 24 years and include the following variables. Price per ride (in cents) - This variable is designated P in Table 1. Price is expected to have a negative impact on the demand for rides on the system. Population in the metropolitan area serviced by STA - It is expected that this variable has a positive impact on the demand for rides on the System. This variable is designated T in Table 1. Disposable per capita income - This variable was initially thought to have a positive impact on the demand for rides on STA This variable is designated I in Table 1. Parking rate per hour in the downtown area (in cents) this variable is expected to have a positive impact on demand for rides on the STA. It is designated H in Table Below

Year Weekly Riders (Y) Price (P) Per Population Income (I) Parking Rate
(X1,000) Ride (Cents) (T)(x1,000) (H) (Cents)
1966 1200 15 1800 2900 50
1967 1190 15 1790 3100 50
1968 1195 15 1780 3200 60
1969 1110 25 1778 3250 60
1970 1105 25 1750 3275 60
1971 1115 25 1740 3290 70
1972 1130 25 1725 4100 75
1973 1095 30 1725 4300 75
1974 1090 30 1720 4400 75
1975 1087 30 1705 4600 80
1976 1080 30 1710 4815 80
1977 1020 40 1700 5285 80
1978 1010 40 1695 5665 85
1979 1010 40 1695 5800 100
1980 1005 40 1690 5900 105
1981 995 40 1630 5915 105
1982 930 75 1640 6325 105
1983 915 75 1635 6500 110
1984 920 75 1630 6612 125
1985 940 75 1620 5883 130
1986 950 75 1615 7005 150
1987 910 100 1605 7234 155
1988 930 100 1590 7500 165
1989 933 100 1595 7600 175
1990 940 100 1590 7800 175
1991 948 100 1600 8000 190
1992 955 100 1610 8100 200

9. If the fare is increased to $1.50, what is the expected impact on weekly revenues to the transit system if all other variables remain at their 1992 levels?

In: Economics

The solubility of benzoic acid in water is 6.80g per 100 mL at 100 ℃, and 0.34g per 100 mL at 25 ℃.

The solubility of benzoic acid in water is 6.80g per 100 mL at 100 ℃, and 0.34g per 100 mL at 25 ℃.

(a) Calculate the min. volume of water needed to dissolve 1.00g of benzoic acid at 100 ℃. 

(b) Calculate the maximum theoretical percent recovery from the recrystallization of 1.00g benzoic acid from 15 mL of water assuming the solution is filtered at 25 ℃?

In: Chemistry

Assignment – 1 1- The DISTINCT(X) operator is used to return only distinct (unique) values for...

Assignment – 1

1- The DISTINCT(X) operator is used to return only distinct (unique) values for datatype (or column) X in the entire dataset .

As an example, for the following table A:

A.ID

A.ZIPCODE

A.AGE

1

12345

30

2

12345

40

3

78910

10

4

78910

10

5

78910

20

DISTINCT(A.ID) = (1, 2, 3, 4, 5)

DISTINCT(A.ZIPCODE) = (12345, 78910)

DISTINCT(A.AGE) = (30, 40, 10, 20)

Implement the DISTINCT(X) operator using Map-Reduce. Provide the algo-

rithm pseudocode. You should use only one Map-Reduce stage, i.e. the algorithm should

make only one pass over the data.

2-The SHUFFLE operator takes a dataset as input and randomly re-orders it.

Hint: Assume that we have a function rand(m) that is capable of outputting a random integer between [1, m].

Implement the SHUFFLE operator using Map-Reduce. Provide the algorithm pseudocode.

3-What is the communication cost (in terms of total data flow on the network between mappers and reducers) for following query using Map-Reduce:

Get DISTINCT(A.ID from A WHERE A.AGE > 30 )

The dataset A has 1000M rows, and 400M of these rows have A.AGE <= 30. DISTINCT(A.ID) has 1M elements. A tuple emitted from any mapper is 1 KB in size.

4-Consider the checkout counter at a large supermarket chain. For each item sold, it generates a record of the form [ProductId, Supplier, Price]. Here, ProductId is the unique identifier of a product, Supplier is the supplier name of the product and Price is the sales price for the item. Assume that the supermarket chain has accumulated many terabytes of data over a period of several months.

The CEO wants a list of suppliers, listing for each supplier the average sales price of items provided by the supplier. How would you organize the computation using the Map-Reduce computation model?

For the following questions give short explanations of your answers.

5-True or False: Each mapper/reducer must generate the same number of output key/value pairs as it receives on the input.

6-True or False: The output type of keys/values of mappers/reducers must be of the same type as their input.

7-True or False: The input to reducers is grouped by key.

8-True or False: It is possible to start reducers while some mappers are still running.

In: Computer Science