Questions
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

Case 1 – Cost-Volume-Profit Analysis (Assignment 1 – 20% of final grade) Janet Jennings is the...

Case 1 – Cost-Volume-Profit Analysis (Assignment 1 – 20% of final grade) Janet Jennings is the general manager for Mercashoe Store. She is currently working on a major promotional campaign. Her ideas include the installation of a new lighting system and increased display space that will add $24,000 in fixed costs to the existing fixed costs. In addition, Janet is proposing a 5% price decrease ($40 to $38) that will produce a 20% increase in sales volume (20,000 to 24,000). Variable costs will remain at $24 per pair of shoes. Management is impressed with Janet’s ideas but concerned about the effects theses changes will have on the break-even point and the margin of safety. Information provided: A. Rental expenses for the store: $5,000 per month. B. Janet has a salary assigned of $60,000 per year. C. The store has a sales manager who earns $45,000 per year. D. There are three salesclerks who have a salary assigned of $25,000 each per year. E. Social security expenses for each the employees represent 30% of their salary. F. Utilities expense: $600 per month. Instructions: 1. Compute the current break-even point in units and compare it to the break-even point in units if Janet’s ideas are implemented. 2. Compute the contribution margin ratio under current operations and after Janet’s changes are introduced. (Round to the nearest full percent). 3. Compute the margin of safety under the two proposals. 4. What is the operating income under each scenario? 5. Prepare a CVP (Cost-Volume-Profit) income statement for current operations and after Janet’s changes are introduced. 6. Prepare a Cost-Volume-Profit graph under the two scenarios. 7. Prepare a report explaining and justifying whether Janet’s changes should be adopted or not and provide suggestions supported by the information provided above. Show your work in Word of Excel

In: Accounting

Use Packet Tracer to complete the following labs. Answer the questions and record screenshots in a...

Use Packet Tracer to complete the following labs. Answer the questions and record screenshots in a Word document labeled firstInitial+LastName+Communications.

In this lab, students will explore how ping, traceroute, and the default gateway setting affect device communication.

Execute this lab according to the following guidelines:

  1. Configure all devices on the network with the following IP addresses:

Device

IP Address

Wrk1

192.168.15.1

Wrk2

192.168.15.2

Sidon1

192.168.15.250

Eden Fa0/0

192.168.15.254

Eden Fa0/1

192.168.16.254

Sidon2

192.168.16.2

Wrk12

192.168.16.1

  1. Open the command prompt for the Wrk1 device. Verify that you can ping the Wrk2 device.
  2. Use the tracert command on Wrk1 and trace the route to Wrk2.
  3. On the Sidon1 switch, use the show ip interface brief command.
  4. From the Sidon1 switch, try to ping Wrk1.
  5. Configure the Sidon1 switch with the following IP address: 192.168.1.9 with a mask of 255.255.255.0
  6. From the Sidon1 switch, try to ping Wrk1.
  7. On Wrk1, try to ping Wrk2.
  8. Change the IP address on Sidon1 to the correct IP address noted in the table above.
  9. From the Sidon1 switch, try to ping Wrk1.
  10. On Wrk1, use tracert to trace the path between Wrk1 and Wrk2.
  11. On Sidon1, try to ping the Eden Fa0/0 interface.
  12. After fixing the problem, verify that the Sidon1 switch can communicate with the Eden router.
  13. On Wrk1, try to ping Wrk12.
  14. On Sidon1, try to ping Wrk12.
  15. On Sidon1, configure 192.168.11.254 as the default gateway.
  16. From Sidon1, try to ping Wrk12.
  17. On Wrk1, use tracert to trace the path between Wrk1 and Wrk12.

Each component included in Diagram 2 needs to be correctly configured and carries equal percentage of the total allotted points for the entire assignment.

Diagram 2

(Courtesy of Cisco Systems, Inc. Unauthorized use not permitted.)

Documentation

Create a zipped file called firstInitial+LastName+Communications containing the following items:

  1. All documentation to be submitted to the learning management system for the assignment.
  2. The completed Packet Tracer assignment.

In: Computer Science

Question 13 We define the letters 'a', 'e', 'i', 'o' and 'u' as vowels. We do...

Question 13

We define the letters 'a', 'e', 'i', 'o' and 'u' as vowels. We do not consider any other letter as a vowel.

Write a function named initialVowels() that returns a list of words in a body of text that begin with a vowel.

Include both capitalized and lower case instances of the vowels.

A word should appear in the return list at most once, no matter how many times is occurs in the input string.

Input: a string that consists of words, separated by spaces

Return: an list of words in the input string that begin with an upper or lower case vowel

For example, the following would be correct output:

>>> mlk = 'Our lives begin to end the day we become silent about things that matter'

>>> print(initialVowels(mlk))

['Our','about']

Question 14

The three words 'a', 'an' and 'the' are the only articles in the English language.

Write a function named countArticles(). Hint: Count both capitalized and lower case instances of articles.

Input: a string, named sentence

Return: the number of words in sentence that are articles

For example, the following would be correct output:

>>> theFlea = ['The flea is a mighty insect']

>>> print(articleCount(theFlea))

>>> 2

Question 15

Write a function named pluralCount() that takes two string parameters.

The first parameter is the name of an input file that exists before pluralCount() is called.

The second parameter is the name of an output file that pluralCount() creates and writes to.

You may assume that the input file is in the current working directory and you should write the output file to that directory as well.

For each line in the input file, the function pluralCount() should write to the output file the number of words in the line that end in the letter 's'.

For example, if the following is the content of the file foxInSocks.txt:

Look, sir. Look, sir. Mr. Knox, sir.

Let's do tricks with bricks and blocks, sir.

Let's do tricks with chicks and clocks, sir.

The following function call:

inF = 'foxInSocks.txt'

outF = 'foxRepLines.txt'

pluralCount(inF, outF)

should create the file ‘foxRepLines.txt’ with the content:

0

4

4

In: Computer Science

Please edit for clarity and conciseness The following document may contain errors in grammar, capitalization, punctuation,...

Please edit for clarity and conciseness The following document may contain errors in grammar, capitalization, punctuation, abbreviation, number style, word division, and vocabulary.

Memco Construction 187 W. Euclid Avenue, Glenview, ILL 60025

www.memco.com

April 19, 2015

PROJECT: IDOT Letting Item #83 Contract No. 79371

DuPage County

Dear Mr. Estes—

Memco Construction is pleased to submit a road construction proposal for the above project. Our company has been providing quality materials and subcontracting services for highway reconstruction projects for over twenty-three years. Our most recent jobs in Illinois have included Illinois State Route 60 resurfacing, and reconstructing Illinois tollway 294.

Should you have any questions about this proposal please contact me at the company 847-672-0344, extension #30) or by email at [email protected].

Based on the scope of the work outlined: the total cost of this job is projected by us to run ninety-nine thousand, two hundred eighty-three dollars. Because material quantities can vary once a project gets underway a separate page will be attached by us to this letter detailing our per-unit fees. Final charges will be based on the exact quantity of materials used for the job, and anything that accedes this estimate will be added of course.

Our proposal assumes that the following items will be furnished by other contractors (at no cost to Memco). All forms, earthwork and clearing; All prep work; Water at project site; Traffic control setup, devices, and maintenance—Location for staging, stockpiling, and storing material and equipment at job sight.

If we win this bid, we are already to begin when the appropriate contracts have been signed by us and by you.

If you’ve have any questions, contact me at the phone number listed below.

Sincerely,

Kris Beiersdorf

Memco Construction

Office: (847) 352-9742, ext. 30

Fax: (847) 352-6595

Email: [email protected]

?

In: Operations Management