Questions
The client connects to the server. The server accepts the connection. The client sends a line...

  • The client connects to the server.
  • The server accepts the connection.
  • The client sends a line of text containing only SHAKESPEARE_COUNTS.
  • The server sends back a sequence of integers. The number of integers in that list specifies the number of words in each insult; the numbers themselves specify how many possible words there are in each position. So, for example, if you received the output 15 20 30, it would indicate that insults are three words long, with 15 possible choices for the first word, 20 possible choices for the second, and 30 for the third.
  • The client sends a line of text containing SHAKESPEARE_INSULT, followed by a space, followed by a sequence of integers separated by spaces. Each of the integers chooses a word in one of the available positions, so if SHAKESPEARE_COUNTS returned 15 20 30, the client would need to send exactly three integers along with SHAKESPEARE_INSULT, with the first being between 1 and 15 (inclusive), the second being between 1 and 20 (inclusive), and the third being between 1 and 30 (inclusive).
  • The server sends back one line of text, which is the insult generated from the chosen words.
  • The client sends a line of text containing only SHAKESPEARE_GOODBYE.
  • The server sends one line of text, a goodbye message of sorts, and then both sides close the connection; that's it.

(Before you try writing code to solve this problem, I'd suggest experimenting with the server a bit, using PuTTY on Windows, or using telnet or nc on macOS.)

What your program should do is hide all of these details, which means it would do the following:

  • Connect to the server.
  • Send the SHAKESPEARE_COUNTS message, to find out the length of the insult and how many possible words there are in each position.
  • Choose numbers randomly and send them in a SHAKESPEARE_INSULT message.
  • Print the random insult sent back by the server.
  • Send the SHAKESPEARE_GOODBYE message.
  • Print the goodbye message sent back by the server.

In: Computer Science

Jamya and Manu are the shareholders of Buffalo Corporation an S Corporation. They each own 50%...

Jamya and Manu are the shareholders of Buffalo Corporation an S Corporation. They each own 50% of Buffalo Corporation. In Year 1, Jamya and Manu each received distributions of $30,000 from Buffalo Corporation. In Year 2, they received distributions each of $50,000.

Buffalo Corporation (an S Corporation)

Income Statement, Dec. 31, 20x8 and 20X9

20X8(Year 1)

20X9(Year 2)

Sales revenue

$600,000

$860,000

Cost of goods sold

(80,000)

(120,000)

Salary to shareholders Manu and Jamya

(80,000)

(160,000)

Employee wages

(50,000)

(100,000)

Depreciation expense

(40,000)

(80,000)

Section 179 expense

(60,000)

(100,000)

Interest income (related to business)

24,000

45,000

Municipal bond income

3,000

8,000

Government fines

0

(4000)

Overall net income

317,000

349,000

Distributions

$60,000

$100,000

Requirements:

  1. Determine and explain the amount of ordinary income and separately stated items allocated to them for Year 1 based on the information given in the table above. Assume that Buffalo Corporation has qualified property with an unadjusted basis of $400,000.
  2. Using ProConnect and/or fill in forms, complete the S Corporation Form 1120S, Schedule K for Year 1 and Schedule K-1 for Jamya.
  3. Determine and explain the amount of ordinary income and separately stated items are allocated to them for Year 2 based on the information given in the table above, assuming Buffalo Corp has qualified property with an unadjusted basis of $400,000.
  4. Using ProConnect and/or fill in forms, complete the S Corporation Form 1120S, Schedule K for Year 2 and Schedule K-1 for Manu.

Submit a Schedule K, and one Schedule K-1 for Jamya and one for Manu and a Word document for questions a), and b), or one Word document with embedded Schedule K, and Schedule K-1 in the document.

In: Finance

Sonia Inc. entered into a contract with Lala Inc. on July 1, 2018 to construct an...

Sonia Inc. entered into a contract with Lala Inc. on July 1, 2018 to construct an office building. The total contract price for construction of the building is $400,000. The building was completed on December 31, 2020. Sonia’s fiscal year end is December 31.

Below is related information of Sonia Inc. regarding this construction:

2018

2019

2020

Actual cost incurred during the year

$35,000

$215,000

$175,000

Estimated costs to complete

315,000

170,000

0

Billings to Lala Inc. to date

72,000

217,000

400,000

Please answer each of the following questions and clearly label which question you are answering. You can prepare it in Word, in Excel, or handwrite it. Once completed, upload the completed Word or Excel document or a picture of the handwritten work (22 points).

Please use the percentage-of-completion method for items 1-5.

  1. Prepare journal entries for the actual construction costs incurred and billings made in 2018. (4 points)
  1. Calculate the amount of revenue and gross profit or loss to be recognized in 2018. Please show supporting calculations. (5 points)
  1. Prepare the adjusting journal entry for 2018 to record revenue recognition and gross profit/loss. (3 points)
  1. Prepare a partial balance sheet for 2018 relating to the contract. You do NOT need to include Cash and Accounts Receivable in your answer. Be sure to indicate whether an item is an asset or liability. Please show supporting calculations. (3 points)
  1. Calculate the amount of revenue and gross profit or loss to be recognized in 2019. Please show supporting calculations. If needed, round the percentage calculation to the fourth decimal (e.g. 22.36%) and round the dollar amount to the whole dollar. (5 points)

Please use the completed contract method for item 6.

  1. Using the completed contract method, how much revenue would be recognized in 2018? (2 points)

In: Accounting

MGMT-6088 Employee Relations Health and Safety Case Study Paper (10%) – Summary Paper Over the last...

MGMT-6088 Employee Relations

Health and Safety Case Study Paper (10%) –

Summary Paper

Over the last four weeks (weeks 9 – 12) we have explored many important Health and Safety topics. We started the Health and Safety section of this course with Ministry of Labour training to introduce you to the Occupational Health and Safety Act with a focus on the health and safety rights and responsibilities of workers, supervisors and employers. We also explored additional Health and Safety topics: health and safety legislation, hazard recognition and control, motivation and safety management systems, incident investigation and finally disability management.  

The final assignment for the Health and Safety section is a Summary Paper. Specifically I want you to write about what you learned and how this will influence you as an operations manager in the future. This is to be completed on your own; it is your summary of concepts and your reflection on how the concepts will influence you in the future.

Below are some useful tips to keep in mind when writing the summary paper:

  • Discuss key concepts from weeks 9 to 12 outlining what you see as the most important Health and Safety concepts you need to be mindful of when in the workplace.  

  • Discuss how what you have learned about Health and Safety will influence you as an operations manager in the future.
  • Keep it professional and have properly structured sentences. Avoid slang and abbreviations.
  • Spelling, punctuation, and grammar will be graded.

Submission Requirement:

  • Submit a Word document with your response.  

  • You must submit a 750 - 850 (maximum three pages) word response.

  • Double Spaced, Arial or Calibri Size 12 Font

  • Include a title page with your submission.

  • Students must submit their paper to the submission folder called Case Study Summary Paper

In: Operations Management

Done in C++ please. And use #include iostream, string, and fstream. do not use #include algorithm....

Done in C++ please. And use #include iostream, string, and fstream. do not use #include algorithm.

Question 1 In this question, you will read words from a file and place them into an array of type string.

1- Make a data text file “words.txt” – that contains one word on each line. Use at least 20 words.

2- Now write a program that reads the words in the file into an array of strings (a repeated word should not be inserted into the array – your program should not allow that and you should make sure your data file has duplicate words to test this functionality). Make your array size enough to hold 1000 words. To read the words into the array, you should make a function that takes a string array, a data size integer (dsize) by reference and an ifstream – please look at the example we did in class.

3- Declare your array and file streams in main and call the function that reads the data into the array.

4- Write a printArray function that takes a string array, the dsize and an ostream object so that you could print to the console or to an output file.

5- Print your array from main by calling the printArray function – once to the console and once to a file “wordsoutput.txt”.

6- Use the selectionSort Algorithm that we covered in class to sort the array.

7- Repeat #5 and make sure the array is sorted.

8- Find the maximum string and the minimum string in the array (remember arrays are compared based on the ASCII value).

9- Write a function that takes a string and converts every character of it to uppercase. Now call that function from a function that you pass the array and dsize to, to uppercase all words in the array (convert all words in the array to uppercase letter) and call that from main passing your array to that function. Print the array.

In: Computer Science

Complete this vocabulary exercise relating to the three types of enzyme inhibitors

Complete this vocabulary exercise relating to the three types of enzyme inhibitors. Drag the words on the left to the appropriate blanks in the sentences on the right. Each word is used only once. WORDS: active site, substrate, irreversible, noncompetitive, competitive, enzyme.

1. A            inhibitor has a structure that is so similar to the substrate that it can bond to the enzyme just like the substrate.

2. A           inhibitor binds to a site on the enzyme that is not the active site.

3. Usually, a            inhibitor forms a covalent bond with an amino acid side group within the active site, which prevents the substrate from entering the active site or prevents catalytic activity.

4. The competitive inhibitor competes with the substrate for the          on the enzyme.

5. When the noncompetitive inhibitor is bonded to the enzyme, the shape of the            is distorted.

6. Enzyme inhibitors disrupt normal interactions between an enzyme and its           .

In: Biology

If you were told that each project’s cost of capital was 12%, which project should be selected using the NPV criteria? What is each project’s IRR?

Corporate Finance

1. ABC Pvt. Ltd. is considering two mutually exclusive capital investments. The project’s expected net cash flows are as follows:

Expected Cash Flows

Year

Project A

Project B

0

-375

-575

1

-300

190

2

-200

190

3

-100

190

4

600

190

5

600

190

6

926

190

7

-200

0

If you were told that each project’s cost of capital was 12%, which project should be selected using the NPV criteria? What is each project’s IRR? What is the regular payback period for these two projects? What is the profitability index for each project if the cost of capital is 12%? The answer should be a min of 800 words in Computerized word format

In: Finance

1. How the Internet has affected the buying process for many products?

1. How the Internet has affected the buying process for many products?
2. McKinsey used funnel analogy. Explain it in your word
3. McKinsey described “consumer decision journey” . Explain it in your words.
4. The McKinsey research examined how many consumers in how many industries, and in how many
continents.
5. What were the four critical stages of the decision buying process? _
6. McKinsey study found that the decision process is more circular than linear. What does this mean? _
7. Describe the first step in the buying decision.
8. How web has affected the second step in the buying decision?
9. Explain how internet has made the consumer empowered than before in decision process.
 

In: Economics

1- Lewis's two-sector model is said to be a good description of industrialization in East Asia....

1- Lewis's two-sector model is said to be a good description of industrialization in East Asia. What is the essence of this model? Use the graphs to represent the two sectors and explain in detail the dynamics of the labor movement between the two sectors. What is the model’s relevance to understanding economic growth in Asia? Discuss the long-term implications of economic growth in East Asian economics systems.

2- According to Hayek’s article “The Use of Knowledge in Society,” what is the fundamental role of prices in the economy? Why does Hayek use the word marvel when he describes the price mechanism? What happens when prices are determined by the state rather than by the interaction of many buyers and many sellers in the marketplace? Discuss the differences in allocative efficiency between a capitalist and a socialist economic system as they relate to the price mechanism in each system.

In: Economics

1. Recently, the COVID-19 crisis has hit the businesses very hard and New Zealand is not...

1. Recently, the COVID-19 crisis has hit the businesses very hard and New Zealand is not an exception. Few of the businesses in New Zealand disappeared, while some of them are managing by lowering their costs through job-cuts or reducing the working hours and so on. You are asked to write a report describing the reasons for why these businesses disappeared (had to shut down completely) inspite of the financial support given by the NZ-Government. Choose any two businesses-NZ. You might have personally seen some businesses’ that you visited do not exist anymore.

(Hint: Develop your report based on your personal observations and experiences, the topics learnt in FINAN200, where-ever it is relevant- cost of capital, nature of the business, investments, sales-revenues and so on.) (Word limit-not to exceed 1000 words).

In: Economics