Questions
This text is justified, meaning that the words are arranged so that both the left and...

This text is justified, meaning that the words are arranged so that both the left and right margins form straight lines. This is accomplished by varying the amount of space between words and characters in the text. Unfortunately, there are limits to this technique since uneven spacing eventually becomes noticeable to the human reader. Your job in this problem is going to be determining where to put line breaks in a sequence of words to make the most visually-pleasing justified paragraph.

You are given an array of word lengths (the lengths include space needed for whitespace and punctua- tion). We are assuming the every character occupies the same amount of space and that lines have room for 80 characters. You need to determine the number of words to put onto each line. Your selection must limit the number of characters per line to 80 or less. For example, consider the sequence 20, 20, 20, 10, 10, 10, 20, 15, 40. One possible solution would be 5, 3, 1 (i.e. 5 words on the first line, 3 on the second, and 1 on the third), which puts 80 characters on line 1, 45 on line 2, and 40 on line 3. A second solution would be 4, 4, 1, which puts 70 characters on line 1, 55 on line 2, and 40 on line 3.

The quality of your line breaks will be judged based on all lines except the last, which is ignored since the last line of a paragraph can be of any length. Every other line contributes the square of the number of unused characters on that line. You are asked to minimize the sum of these squares. For example, the first solution above has cost 02 + 252 = 1, 225 while the second has cost 102 + 252 = 725.

Give a fast dynamic programming algorithm to find the optimal set of line breaks. Be sure to explain how to get the actual locations of the line breaks (not just the optimal cost). Argue for your algorithm’s correctness and analyze its running time.

In: Computer Science

Write a C++ program for storing information on on a series of balls collected by a...

Write a C++ program for storing information on on a series of balls collected by a person. The balls should have these characteristics:

1. Diameter in mm

2. Color

3. if the texture of the surface is smooth or rough

4. an identification id/number

The program should allow the person to enter the values for the balls' attributes as they are entered in a database. The program should then offer the choice to save all new data into a file.

Next, the program should offer these operations:

1. List all balls with diameters above 10mm (Show all attribute values)

2. List all balls with less or equal to 10mm (Show all attribute values)

3. Show all balls that are smooth (Show all attribute values as a list)

4. Show all balls that are rough (Show all attribute values as a list)

5. Find a specific ball based on its id (Show all attributes)

6. How many balls of a specific color are in the database? (Show a total)

Program requirements:

1. The program must be OOP

2. Use of an array as temporary buffer to store ball objects

3. Move content of array to file

4. Retrieve all objects in file to an array at run time

5. Use of menus to direct user on the various available options for the program.

6. Use of header files for the classes need for this program (Use a project setup rather than a single app).

Delivery requirements:

1. Source code

2. Sample files generated by the program

3. A word document that summarizes your work with screenshots of your program running and generating outputs based on your menu selections. All menu options must be tested!

4. A conclusion within the above document about your performance in completing this task. This is going to be important for me to read and assess what needs to be done at the beginning of this course to bring each one of you to a level where CS230 will be performed without struggles.

In: Computer Science

Cash Flows from Operating Activities Net Income $        539,000 Adjustments to reconcile net income to net...

Cash Flows from Operating Activities
Net Income $        539,000
Adjustments to reconcile net income to net cash from operating activities:
Depreciation expense              63,400
Increase in net accounts receivable          (376,000)
Increase in inventory          (396,000)
Increase in accounts payable            102,000
Decrease in accrued liabilities            (79,000)
Increase in income taxes payable              24,000
Gain on sale of land            (53,000)
Loss on sale of investments                 6,000
Net cash provided(used) by operating activities $(169,600)
Cash Flows from Investing Activities
Purchase of machinery          (102,000)
Proceeds from sale of investments              91,000
Proceeds from sale of land            104,000
Net cash provided(used) by investing activities         93,000
Cash Flows from Financing Activities
Issuance of Preferred Stock              80,000
Issuance of Bonds Payable            175,000
Payment of cash dividends          (114,000)
Purchase of treasury stock            (80,000)
Net cash provided(used) by financing activities         61,000
Net change in cash       (15,600)
Cash, January 1, 2015         68,000
Cash, December 31, 2015 $     52,400

Analyze the Cash Flow Statement for the Big Corporation).    You obviously do not have access to all relevant information but you can identify potential concerns or areas of strength. Try to consider what these could mean for the company. Were they planned or unplanned? You do not know for sure but you can make reasonable assumptions and consider possible effects for the company. (You can type your analysis directly on this word document.)

Analyze the Cash Flows from Operating Activities identifying areas of strength and areas of concern:

Analyze the Cash Flows from Investing Activities identifying areas of strength and areas of concern :

Analyze the Cash Flows from Financing Activities identifying areas of strength and areas of concern:

Provide a summary analysis.Explain how strengths and concerns from operating activities could potentially relate to investing and financing decisions:

In: Accounting

Write a C++ program for storing information on on a series of balls collected by a...

Write a C++ program for storing information on on a series of balls collected by a person. The balls should have these characteristics:

1. Diameter in mm

2. Color

3. if the texture of the surface is smooth or rough

4. an identification id/number

The program should allow the person to enter the values for the balls' attributes as they are entered in a database. The program should then offer the choice to save all new data into a file.

Next, the program should offer these operations:

1. List all balls with diameters above 10mm (Show all attribute values)

2. List all balls with less or equal to 10mm (Show all attribute values)

3. Show all balls that are smooth (Show all attribute values as a list)

4. Show all balls that are rough (Show all attribute values as a list)

5. Find a specific ball based on its id (Show all attributes)

6. How many balls of a specific color are in the database? (Show a total)

Program requirements:

1. The program must be OOP

2. Use of an array as temporary buffer to store ball objects

3. Move content of array to file

4. Retrieve all objects in file to an array at run time

5. Use of menus to direct user on the various available options for the program.

6. Use of header files for the classes need for this program (Use a project setup rather than a single app).

Delivery requirements:

1. Source code

2. Sample files generated by the program

3. A word document that summarizes your work with screenshots of your program running and generating outputs based on your menu selections. All menu options must be tested!

4. A conclusion within the above document about your performance in completing this task. This is going to be important for me to read and assess what needs to be done at the beginning of this course to bring each one of you to a level where CS230 will be performed without struggles.

In: Computer Science

CS 238 – Assembly Language Programming Fall 2019 Assignment 1 (Due: September 10, 2019) Submission Instructions:...

CS 238 – Assembly Language Programming
Fall 2019
Assignment 1
(Due: September 10, 2019)
Submission Instructions: Online submissions on Blackboard are preferred. Feel free to edit this Word document to insert your answers. Multiple online submissions on Blackboard are allowed, but only the last online submission made by the midnight of September 10 will be graded. Alternatively, a paper submission is possible, but it needs to be done in class on September 10.
1. Data can be interpreted as required by the programmer. Depending upon context, a number can be interpreted as a signed integer or a positive unsigned integer.
a) [4 marks] Provide the result of the following sum using Hexadecimal addition
0xFEB + 0x00A =?
b) [2 marks each] In this problem 0xFEB can be interpreted as an unsigned positive integer, or the 16s complement representation of a signed integer.
i. Provide the unsigned decimal interpretation of 0xFEB:
ii. Provide the unsigned decimal interpretation of the result of 0xFEB + 0x00A:
iii. Provide the signed decimal interpretation of 0xFEB:
iiii. Provide the signed decimal interpretation of the result of 0xFEB + 0x00A:
2. [5 marks each] Subtracting a larger number from a smaller number can be formulated as adding the complement of the larger number to the smaller number. Provide solutions for the following problems and show your steps.
a) Perform 16s complement subtraction of the following problem. Convert the result back and provide the resultant signed hexadecimal value: (show your steps)
0x123 – 0xABC =?
b) Perform 10s complement subtraction of the following problem. Convert the result back and provide the resultant signed decimal value: (show your steps)
567 – 4071 =?
3. [7 marks each] Provide the results and show your steps for the following problems.
a) Provide the result of the following hexadecimal multiplication: (show your steps)
0x3FA * 0x77 =?
b) Provide the result of the following binary division: (show your steps)
=?

In: Computer Science

Morrow Enterprises Inc. manufactures bathroom fixtures. The stockholders’ equity accounts of Morrow Enterprises Inc., with balances...

Morrow Enterprises Inc. manufactures bathroom fixtures. The stockholders’ equity accounts of Morrow Enterprises Inc., with balances on January 1, 2016, are as follows: Common stock, $20 stated value; 500,000 shares authorized, 367,000 issued $7,340,000 Paid-In Capital in Excess of Stated Value—Common Stock 844,100 Retained Earnings 33,388,000 Treasury Stock (22,800 shares, at cost) 387,600 The following selected transactions occurred during the year: Jan. 22 Paid cash dividends of $0.09 per share on the common stock . The dividend had been properly recorded when declared on December 1 of the preceding fiscal year for $30,978. Apr. 10 Issued 71,000 shares of common stock for $23 per share. Jun. 6 Sold all of the treasury stock for $27 per share. Jul. 5 Declared a 3% stock dividend on common stock, to be capitalized at the market price of the stock, which is $26 per share. Aug. 15 Issued the certificates for the dividend declared on July 5. Nov. 23 Purchased 28,000 shares of treasury stock for $18 per share. Dec. 28 Declared a $0.09-per-share dividend on common stock. 31 Closed the credit balance of the income summary account, $1,131,500. 31 Closed the two dividends accounts to Retained Earnings. Required: A. Enter the January 1 balances in T accounts for the stockholders’ equity accounts listed. B. Journalize the entries to record the transactions, and post to the eight selected accounts. No post ref is required in the journal. Refer to the Chart of Accounts for exact wording of account titles. C. Prepare a retained earnings statement for the year ended December 31, 2016. Enter all amounts as positive numbers. The word “Less” is not required.* D. Prepare the Stockholders’ Equity section of the December 31, 2016, balance sheet. “Less” or “Deduct” will automatically appear if it is required. * * Refer to the list of Amount Descriptions provided for the exact wording of the answer choices for text entries.

In: Accounting

Magic 8 Ball(JAVA) A magic 8 ball is a popular fortune telling toy in which the...

Magic 8 Ball(JAVA)
A magic 8 ball is a popular fortune telling toy in which the user places the ball face down, asks a
yes-or-no question and turns the ball face up to reveal the answer.
The standard magic 8 ball has 20 standard answers shown below, where 10 are positive (green),
5 are non-committal (yellow), and 5 are negative (red) (credit: Wikipedia)
Write a program that does the following:
1. Stores all the responses in a String array using an initializer list.
2. Generates a random number for the responses using a random object (in the range 0 to 19)
3. Prompts the user to enter a question.
4. Uses the random number to access and display the corresponding response (example: if the
random number generates 4 it should display “You may rely on it.”)
5. Asks the user if they want to ask another question (using a do – while loop). The code should
repeat as long as the user says “yes”.
A sample of the output are shown below:
What is your question? Will John get me some Panera tomorrow?
Reply hazy, try again.
Would you like to ask another question? (Answer yes or no): yes
What is your question? Will my dog become an instagram star?
Yes.
Would you like to ask another question? (Answer yes or no): yes
What is your question? Will I pass this class if I study hard?
Without a doubt.
Would you like to ask another question? (Answer yes or no): no
Notes:
• Use the equalsIgnoreCase method to accept any version of the word yes. You can use it
like str.equalsIgnoreCase(“yes”) where str is a variable of type string.
• You may have to deal with the annoying problem of capturing the [Enter] that is pressed
between responses. Remember, you can capture it with an extra nextLine method – but
be sure to put it in the right place!

In: Computer Science

The Great Financial Crisis (GFC) in the United States: Causes and Policy Responses Goal Analyze the...

The Great Financial Crisis (GFC) in the United States: Causes and Policy Responses Goal Analyze the recent (2008-2009) episode in the United States – the Great Financial Crisis (or Great Contraction). Your job is to write a 500-word essay that will: (a) discuss the antecedents to the episode – seeds of the crisis that were previously sown. Then, using the IS-LM model, show both (b) the shocks to the economy which occurred and (c) the government policy response. Also, provide a short discussion of the implications for health care business/industry. Background Although it happened some time ago, the Great Financial Crisis (GFC) of 2008-2009 continues to be heavily discussed, including in the popular press. For this assignment, you should read the article “A warning from the almost-depression” by Robert Samuelson, Washington Post, September 16, 2018. For several reasons, this episode is well-suited to the IS-LM model. Your job is to discuss that episode using the model. PLEASE PROVIDE THE REFERENCES THAT YOU USED AND NO Plagiarism (DO NOT COPY FROM OTHER ANSWERS).

The answer should be in the following Format:

our final submission should include the following:

1.      You should have two graphs based on the IS-LM model:

a.       Graph #1: shows the shock(s) that initially took place during the crisis. In other words, how did the IS and/or LM curves move?

                                                              i.      You can approximate these shifts within reason, they do not need to be exact.

b.      Graph #2: shows the effects of the main policy responses by the U.S. government and the Fed.

2.      A discussion/memo that answers the following questions:

a.       What factors led to the GFC? Hint: the Samuelson article provides a good jumping off point.

b.      Why did Graph #1 shift the way it did? Were they big or small shifts?

c.       What are the policies shown in Graph #2 and what were their purposes?

d.      What are the cons of using the IS-LM model to describe the GFC?

In: Economics

Review the following passages for sentence fragments, comma splices, and run on sentences. Correct all errors...

Review the following passages for sentence fragments, comma splices, and run on sentences. Correct all errors where necessary, and bold each correction.

• “It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other way—in short, the period was so far like the present period, that some of the noisiest authorities insisted on its being received, for good or evil, in the superlative degree of comparison only.”

• “I believe that today more than ever a book should be sought after even if it has only one great page in it. We must search for fragments, splinters, toenails, anything that has ore in it, anything that is capable of resuscitating the body and the soul.”

• “I went to sleep with gum in my mouth and now there's gum in my hair and when I got out of bed this morning I tripped on the skateboard and by mistake I dropped my sweater in the sink while the water was running and I could tell it was going to be a terrible, horrible, no good, very bad day.”

• “We are such stuff as dreams are made on; and our little life is rounded with a sleep.”

• “For in a swift radiance of illumination he saw a glimpse of human struggle and of valor. Of the endless fluid passage of humanity through endless time. And of those who labor and of those who--one word--love. His soul expanded. But for a moment only.”

• “The lamp on the rocks on the side of the hill was little more than a mote of light and after a while they walked back. Everything too wet to make a fire.”

• “Then, slowly, the shining dwindled until it, too, was gone, and there was nothing but stars and starlight. No shadows. No fear. Only the stars and the clear darkness of space, quite different from the fearful darkness of the Thing.”

In: Operations Management

the company I chose is Amazon Use the same organization as in previous week's projects. Last...

the company I chose is Amazon

Use the same organization as in previous week's projects. Last week, you completed the strengths, weaknesses, opportunities, and threats (SWOT) analysis for your organization. Hopefully, you have begun researching potential social causes, issues, or nonprofits for your company to adopt.

As you consider your options, select three or four possible candidates (social causes) and evaluate whether the alternatives you come across fit with your company's mission, vision, and ethical framework, as well as any existing social responsibility efforts. Finally, select the new cause that will build upon your company's strengths. Will selecting this cause support the responsibility owed to your stockholders and stakeholders?

Tasks:
Propose your top three potential social causes for your organization and why your selected social cause or issue is a good match with your chosen corporation for creating a corporate social responsibility (CSR) campaign. You will want to be sure that you cover the following items in your report:

Evaluate how each of your top three social causes do or do not meet your company's mission, vision, and ethical framework, as well as, any on-going social responsibility efforts.

Defend why the social cause you chose is a good fit with your corporation.

Assess how Stockholder Theory and Stakeholder Theory impacted your final selection (Week 1 reading)

Justify which personal ethical framework impacted your final selection and how it impacted your selection (Week 2 reading)

Analyze the internal and the external ethical impacts of your selection (Week 3 reading)

Submission Details:

Submit your paper in a 5- to 7-page Microsoft Word document, using APA style.

Name the document SU_BUS3001_W3_ LastName_FirstInitial.doc.

Submit your document to the Submissions Area by the due date assigned.

In: Operations Management