Questions
You are currently negotiating a book publishing deal on behalf of your client, K.J. Howling, a...

You are currently negotiating a book publishing deal on behalf of your client, K.J. Howling, a writer of moderate repute who specializes in horror stories.

Your client is basically happy with the standard form contract offered by the publisher, Scattered House Press (SHP). There is, however, an important exception. Howling would like to have a clause removed from the contract under which SHP would have automatic rights to publish any sequel, on the same royalty terms as the contract now under negotiation. In response to this request, SHP has replied af rmatively, but only on the condition that Howling be willing to give SHP half the royalties from any sale of movie rights on the rst book. (The current standard form contract would let Howling keep all the movie rights.)

As you discuss this swap of contract terms with Howling, you come to agree on the following: First, none of this matters unless the rst book is a hit, which has a probability of 10%.

Second, if the book is a hit, there will de nitely be a sequel (which Howling has already outlined). If Howling is able to bargain freely on the sequel, she stands to make about $1,000,000 on the new book, but she would only make about $500,000 if she were bound by the current term. (The reason is that, if the rst book is a hit, she will be able to obtain better royalty terms than she can now.)

Third, if the book is a hit, then there is a 20% chance that a year or two later some movie studio will pick Howling’s book as the basis for preparing a movie script. In that event, the movie rights would be worth about $10,000,000.

Advise Howling on whether to accept the proposed swap of contract terms. In preparing your advice, be sure that you do each of the following:

  • Write down the decision tree for this problem.

  • Solve it. (Be sure brie y to explain your work in some fashion that will communicate to

    Howling how you reached your conclusion.)

    In addition, you should feel free to make any additional comments you think appropriate in advising Howling. (This is not required; if you do add remarks, be brief, e.g., a paragraph or so.)

In: Finance

Run Python code  List as Stack  and verify the following calculations; submit screen shots in a single file....

Run Python code  List as Stack  and verify the following calculations; submit screen shots in a single file.

Postfix Expression                Result

4 5 7 2 + - * = -16

3 4 + 2  * 7 / = 2

5 7 + 6 2 -  * = 48

4 2 3 5 1 - + * + = 18   

List as Stack

"""

File: pyStackPostfix.py

Author: JD

"""

# 5 7 + 6 2 -  * = 48

print("Postfix Calculator\n")

stack = []              # Empty stack

y = int(0)

z = int(0)

w = int(0)

while True:

   x = input("Enter a postfix expression one by one:")

   if x >= '0' and x<= '9':

      x = int(x)

      stack.append(x)      # Push on top of stack

   elif x == '+':          # Got an operator

      if len(stack) >= 2:

         y = stack.pop()   # Pop from top of stack

         z = stack.pop()

         w = y + z

         stack.append(w)   # Push result back

      else:

         print("Stack error") # Not enough operhand A + B

         break

   elif x == '-':

      if len(stack) >= 2:

         y = stack.pop()

         z = stack.pop()

         w = y - z

         stack.append(w)   

      else:

         print("Stack error")

         break

   elif x == '*':

      if len(stack) >= 2:

         y = stack.pop()

         z = stack.pop()

         w = y * z

         stack.append(w)   

      else:

         print("Stack error")

         break

   elif x == '/':

      if len(stack) >= 2:

         y = stack.pop()

         z = stack.pop()

         w = y / z

         stack.append(w)   

      else:

         print("Stack error")

         break

   elif x == '=':             # Equal operator

      if len(stack) == 1:

         z = stack.pop()      # Pop the result

         print (z)

         break

      else:

         print("Stack error")

         break

Postfix Calculator

Enter a postfix expression one by one:5

Enter a postfix expression one by one:7

Enter a postfix expression one by one:+

Enter a postfix expression one by one:6

Enter a postfix expression one by one:2

Enter a postfix expression one by one:-

Enter a postfix expression one by one:*

Enter a postfix expression one by one:=

48

Press any key to continue . . .

its python

In: Computer Science

Week 3 In-Class Exercise C++ Payroll Design a PayRoll class that is an abstract data type...

Week 3 In-Class Exercise C++


Payroll

Design a PayRoll class that is an abstract data type for payroll. It has data members for an employee’s hourly pay rate, number of hours worked, and total pay for the week.

Your class must include the following member functions:

  • a constructor to set the hours and pay rate as arguments,

  • a default constructor to set data members to 0,

  • member functions to set each of the member variables to values given as an argument(s) to the function,

  • member functions to retrieve the data from each of the member variables,

  • an input function that reads the values of number of hours and hourly pay rate,

  • an output function that outputs the value of all data members for an employee,

  • void function to calculate the total pay for a week.

The input and output functions will each have one formal parameter for the stream.

Write a program with an array of seven PayRoll objects. The program should ask the user for the number of hours each employee has worked and will then display the amount of gross pay each has earned.

Input Validation: Do not accept values greater than 60 for the number of hours

worked.


Sample Output:

Enter the hours worked and pay rate for 7 employees:

Employee #1 pay rate: 15

Employee #1 hours worked: 40

Employee #2 pay rate: 20

Employee #2 hours worked: 35

Employee #3 pay rate: 18

Employee #3 hours worked: 40

Employee #4 pay rate: 22

Employee #4 hours worked: 38

Employee #5 pay rate: 15

Employee #5 hours worked: 40

Employee #6 pay rate: 20

Employee #6 hours worked: 32

Employee #7 pay rate: 22

Employee #7 hours worked: 40

Total pay:

Employee #1: 600.00

Employee #2: 700.00

Employee #3: 720.00

Employee #4: 836.00

Employee #5: 600.00

Employee #6: 640.00

Employee #7: 880.00

Press any key to continue . . .

In: Computer Science

The following question must be answered in the C programming language and may not be written...

The following question must be answered in the C programming language and may not be written in C++ or any other variation.

Problem 5

This problem is designed to make sure you can write a program that swaps data passed into it such that the caller's data has been swapped. This is something that is done very frequently in manipulating Data Structures.

The Solution / Test Requirements

I want your program to demonstrate that you understand how to swap information passed into a function and have the calling routine print out the data before and after the call to verify the data has been swapped. Call your functions Swap and SwapStructs. Swap is a function that receives the information to swap. The information is two integers. How should Swap receive them? How should it process them? SwapStructs is a function that receives two structs to swap. How should SwapStructs receive them? How should it process them?

Your Test Main must:

1. Declare two integers and initialize them to the values 1 and -1.

2. Print out the integers.

3. Call Swap to swap the values.

4. Print out the values on return from the function.

5. Declare a struct that holds 2 integers using a typedef for the struct.

6. Dynamically allocate two separate variables using the typedef and fill the dynamically allocated structs, filling the first with the values 10 and 20 and the second with 30 and 40.

7. Print out the values in each of the structs

8. Call SwapStructs to swap the contents of the structs.

9. Print out the values in the structs on return.

10. Free the memory that was dynamically allocated.

For your convenience, here is an output of my program:

Before call..I= 1, J=-1 After call.. I=-1, J= 1

Before SwapStructs..ptr1 contains 10 and 20

Before SwapStructs..ptr2 contains 30 and 40

After SwapStructs..ptr1 contains 30 and 40

After SwapStructs..ptr2 contains 10 and 20

Process returned 0 (0x0) execution time : 0.034 s Press any key to continue.

In: Computer Science

QUESTION 2  ( 12 marks) The following situations refers to threats to the Auditor’s independence.You are...

QUESTION 2  ( 12 marks)

The following situations refers to threats to the Auditor’s independence.You are asked to state what  
the different threats to the Auditor’s independence are and explain how these threats impact on the  Auditor’s independence and any other implications for yourself and your firm.

SITUATION 1
Enid Blyton has been working as an auditor for the Anthony Don Chartered Accounting firm for the past four years and has just started an audit on the Green Thumbs environmental company, a small newly listed public company which has just listed as a public company one month ago.The 
Green Thumbs environmental company  has just started using a new contractor to dispose of its toxic waste .You know that this new contractor has won tenders in the past and there have been several unfavourable articles about this contractor in the local press.
Your Audit Manager ,Peter Don , has stated that it is your responsibility just to provide an opinion
on the financial statements with the emphasis being on providing an opinion on whether the financial statements are true and fair and whether there are any material misstatements.

SITUATION 2
Jean Douglas has just started to do the audit on the latest financial statements and has just made the following notes from your opening interview with John Dooley,CEO of Dooleys.
John has apologised for not making the final payment of 30% of the prior years audit fee but has explained that he will ensure the cheque is written once he is happy with the progress on the current audit. At this stage John Dooley has advised that the firm will be able to start deliberations 
about the selection of Auditor for the following year.The Dooleys audit comprises forty percent of the annual audit fees for the firm .
John has advised that they will be providing a free trip to Europe for an Auditor from the Audit firm and his partner once the audit is successfully completed.
Jean is concerned with several aspects of the current audit as Dooleys do not appear to be following the accounting standards in their valuation of inventory  as they are not taking into account the reductions in fair value of inventory and the impact on the financial statements is material.    

In: Accounting

What is a Media Pitch? A media pitch or a pitch is what we refer to...

What is a Media Pitch?


A media pitch or a pitch is what we refer to as the email you send out to a journalist, editors, or an influencer when pitching your client or brand to secure press interest. It’s also a critical part of the marketing and PR process that involves creative thinking and writing!

The pitch is similar to an elevator pitch in length, but the message of the pitch is altered from general to more specific to the journalist or influencer’s interests.

Nailing your pitch is the best way to ensure PR campaign success that yields impressive results for your clients.


THESE SUCCESSFUL MEDIA PLACEMENTS NOT ONLY INCREASE BRAND AWARENESS, BUT ALSO HELP TO BUILD A POSITIVE REPUTATION FOR YOUR BRAND.


While we can all agree on the importance of media relations, sometimes securing a media coverage placement isn’t as easy as it sounds. With editor inboxes being flooded with a barrage of email pitches, you need to figure out how to get their attention quickly and effectively get your point across.

This means media pitches require personalized outreach and research beforehand in order to understand what a journalist or influencer cares about, writes on, and how you can help contribute to their beat.

Remember: great media pitches play on the idea of reciprocity. By covering your brand or including you in a story, the journalist is doing you a favor and helping to drive increased awareness for you (for free).

Reciprocity here indicates that you owe that journalist or influencer. In order to even the playing field here, it is best that your pitch or product helps to advance the journalist or influencer’s own goals.

Those could be:


Increasing page views and personal brand visibility through breaking news


Contributing to the person’s expertise on a particular topic


Earning the person accolades for their ability to find and source the best of the best stories, products, and goods.


Required: Choose a company that is using two social media platforms, and develop a list of effective and ineffective uses of the two Social Media platforms. Provide your rationale. Make sure your response is at least 1-2 pages.

In: Economics

Summary Wal-Mart’s stock tumbled on the news that the company was investigating possible violations of the...

Summary

Wal-Mart’s stock tumbled on the news that the company was investigating possible violations of the Foreign Corrupt Practices Act. According to information leaked to the press, Wal-Mart may have been bribing Mexican government officials in order to gain the zoning approvals it needed to build stores in the country. What makes the story especially interesting was the fact that the company appears to have known about the violations for several years, yet seemingly chose to do nothing.

While Wal-Mart had no legal obligation to disclose the fact that it was looking into the situation some years ago, analysts agree that the company had an ethical responsibility to make some disclosure, particularly given that the retail giant seems to have done little with the knowledge of a potential violation. Investigators will be looking to see whether the company gained an unfair competitive advantage as a result of its illegal activity.

If the company is found to have violated the Foreign Corrupt Practices Act it could face fines, and possibly have to return some of the profits it earned as a result. In addition, because it seems that top level executives were aware of the bribes when they occurred, there could be further penalties. Wal-Mart’s current CEO, Mike Duke, was head of Wal-Mart International at the time of the bribes.  

Discussion Questions

1. If the allegations against Wal-Mart prove to be true, the company will certainly be penalized for its illegal behavior. Consider, though whether the Foreign Corrupt Practices Act puts U.S. firms at a competitive disadvantage in foreign markets. Does it actually encourage unethical behavior by firms?

2. Is it ethical for U.S. lawmakers to prohibit bribery in foreign markets? What are the implications of the Foreign Corrupt Practices Act on employment and economic development in countries like India and Mexico?

3. Suppose you are a U.S. supplier to Wal-Mart Mexico. Do you agree with the Foreign Corrupt Practices Act? How does it affect you? Do you feel that U.S. lawmakers have the right to limit the activities of U.S. firms in foreign markets?

Please answer it in your own words .

In: Economics

You are the HR director at Springtime Manufacturing, which employs 75 people. The VP of Human...

You are the HR director at Springtime Manufacturing, which employs 75 people. The VP of Human Resources has asked that you evaluate the following situations. Please provide in the format of a memorandum to the VP with captions labeling each issue and addressing the questions posed. (See template at end)

  1. Springtime decides to create a new Director of Marketing and Communications position. This position is responsible for overseeing all marketing for the company as well as communicating directly with the press and other major customers about the company, its news and initiatives. Thus, Springtime includes a requirement that the “ideal candidate will be able to communicate clearly and present a positive image of Springtime Manufacturing”. Both May Flower and June Bug apply for the position and are interviewed by the President of the Company, April Showers. Both May and June have appropriate degrees in Marketing and about the same level of experience. May is a practicing Muslim and so wears a headscarf to the interview, as she always does to comply with her religious beliefs. April asks May the same questions as she has asked June, but adds a question about the headscarf. In particular, she asks May whether she always has to wear the headscarf and whether she has encountered “negative reactions” to the scarf. May answers that she does have to wear the scarf and she occasionally has negative reactions. April also asks several other questions about May’s religion. After the interview, April announces that she is hiring June Bug for the position and cites the “Very positive image” that June will present for the company. May sues for discrimination under Title VII. Will she succeed? Why or why not?

Assessment Rubric for Assignment 4-     20 points total

Identification of Legal Issues (Clarity) 5 points Is the legal issue correctly identified for each situation presented?

Analysis Explanation (Content) 5 points Does the memorandum use the correct analysis for each identified issue and thoroughly explain the analysis?

Application of Analysis to Facts (Evidence Evaluation) 5 points Does each analysis include all applicable facts?

Conclusion (Are conclusions appropriate based on evaluation and appropriate use of terminology) 5 points

In: Operations Management

Write a C++ program, all the answers so far on this site have been wrong when...

Write a C++ program, all the answers so far on this site have been wrong when I compiled them.. Desired outputs at the end.

--In this exercise, you are to modify the Classified Numbers programming example in this chapter. As written, the program inputs the data from the standard input device (keyboard) and outputs the results on the standard output device (terminal screen). The program can process only 20 numbers. Rewrite the program to incorporate the following requirements:

a) Data to the program is input from a file of an unspecified length named Ch06_Ex20Data.txt; that is , the program does not know in advance how many numbers are in the file.

b) Save the output of the program in a file named Ch06_Ex20Out.txt.

c) Modify the void function getNumber so that it reads a number from the input file (opened in the function main), outputs the number to the output file (opened in the function main), and sends the number read to the function main. Print only 10 numbers per line. Assume all numbers are between -9999 and 9999.

d) Have the program find the sum and average of the numbers.

e) Modify the function printResult so that it outputs the final results to the output file (opened in the function main). Other than outputting the appropriate counts, this new definition of the function printResult should also output the sum of the numbers

Outputs in the program should look like this:

Processing Data

There are 27 evens, which includes 12 zeros

Total number of odds are: 16

The sum of numbers = 558

The average is 12

press any key to exit.

The OutFile should look like this

E:\FolderName\Lab\Ch06_Ex20> type Ch06_Ex20Out.txt

43 67 82 0 35 28 -64 7 -87 0

0 0 0 12 23 45 7 -2 -8 -3

-9 4  0 1 0  -7 23 -24 0 0

12 62 100 101 -203 -340 500 0 23 0

54 0 76

There are 27 evens, which includes 12 zeros

Total number of odds are: 16

The sum of numbers = 558

The average is 12

E:\FolderName\Lab\Ch06_Ex20>

In: Computer Science

Japan and Germany are two success stories of economic growth. Although today they are economic superpowers,...

Japan and Germany are two success stories of economic growth. Although today they are economic superpowers, in 1945 the economies of both countries were in shambles. World

War II had destroyed much of their capital stocks. In the decades after the war, however, these two countries experienced some of the most rapid growth rates on record. Between

1948 and 1972, output per person grew at 8.2 percent per year in Japan and 5.7 percent per year in Germany, compared to only 2.2 percent per year in the United States. Are the

postwar experiences of Japan and Germany so surprising from the standpoint of the Solow growth model? Consider an economy in steady state. Now suppose that a war

destroys some of the capital stock. (That is, suppose the capital stock drops from k* to k1).

Not surprisingly, the level of output falls immediately. But if the saving rate the fraction of output devoted to saving and investment is unchanged, the economy will then

experience a period of high growth. Output grows because, at the lower capital stock, more capital is added by investment than is removed by depreciation. This high growth

continues until the economy approaches its former steady state. Hence, although destroying part of the capital stock immediately reduces output, it is followed by higher than

normal growth. The “miracle’’ of rapid growth in Japan and Germany, as it is often described in the business press, is what the Solow model predicts for countries in which

war has greatly reduced the capital stock. In this discussion of German and Japanese postwar growth, capital stock is destroyed in a war. By contrast, suppose that a war does not affect

the capital stock, but that casualties reduce the labor force.

a) What is the immediate impact on total output and on output per person? Compare how the effect would be different from the above case.

b) Assuming that the savings rate is unchanged, and that the economy was in a steady state before the war, what happens subsequently to output per worker in the postwar

economy? Is the growth rate of output per worker after the war smaller or greater than normal?

no

rmal?

In: Economics