Questions
Write the following assembly code file into C code. .globl main .text main:    # Tests...

Write the following assembly code file into C code.

.globl main
.text
main:
   # Tests simple looping behaviour
   li t0, 60
   li t1, 0
loop:
   addi t1, t1, 5
   addi t0, t0, -1
   bne t1, t0, loop
   bne t1, zero, success
failure:
   li a0, 0
   li a7, 93 # a7 is what determines which system call we are calling and we what to call write (64)
    ecall # actually issue the call
  
success:
   li a0, 42
   li a7, 93
   ecall
  

In: Computer Science

Cite an instance when you should consider "making" new technology Cite an instance when you should...

  1. Cite an instance when you should consider "making" new technology
  2. Cite an instance when you should consider "buying" new technology
  3. Cite an instance when you should consider "modifying" existing technologies to create a new one.

In your citations, include the following:

  1. What technology do you wish to develop?
  2. What are the resources available or lacking which would make consider this option?  

In: Computer Science

vent: Universal K-12 education provides everyone a chance to go to school. (Short Run) Question: What...

  1. vent: Universal K-12 education provides everyone a chance to go to school. (Short Run)

    Question: What is the change in long run aggregate supply (LRAS)?

    a.

    Increase

    b.

    Decrease

    c.

    No change

    d.

    Indeterminate

3 points   

QUESTION 14

  1. Event: Universal K-12 education provides everyone a chance to go to school. (Short Run)

    Question: What is the change in equilibrium price level?

    a.

    Increase

    b.

    Decrease

    c.

    No change

    d.

    Indeterminate

3 points   

QUESTION 15

  1. Event: Universal K-12 education provides everyone a chance to go to school. (Short Run)

    Question: What is the change in equilibrium real gross domestic product (RGDP)?

    a.

    Increase

    b.

    Decrease

    c.

    No change

    d.

    Indeterminate

3 points   

QUESTION 16

  1. Event: Firms expect the price of oil will rise in the future due to unrest in the Middle East. (Long Run)

    Question: What is the change in aggregate demand (AD)?

    a.

    Increase

    b.

    Decrease

    c.

    No change

    d.

    Indeterminate

3 points   

QUESTION 17

  1. Event: Firms expect the price of oil will rise in the future due to unrest in the Middle East. (Long Run)

    Question: What is the change in short run aggregate supply (SRAS)?

    a.

    Increase

    b.

    Decrease

    c.

    No change

    d.

    Indeterminate

3 points   

QUESTION 18

  1. Event: Firms expect the price of oil will rise in the future due to unrest in the Middle East. (Long Run)

    Question: What is the change in long run aggregate supply (LRAS)?

    a.

    Increase

    b.

    Decrease

    c.

    No change

    d.

    Indeterminate

3 points   

QUESTION 19

  1. Event: Firms expect the price of oil will rise in the future due to unrest in the Middle East. (Long Run)

    Question: What is the change in equilibrium price level?

    a.

    Increase

    b.

    Decrease

    c.

    No change

    d.

    Indeterminate

3 points   

QUESTION 20

  1. Event: Firms expect the price of oil will rise in the future due to unrest in the Middle East. (Long Run)

    Question: What is the change in equilibrium real gross domestic product (RGDP)?

    a.

    Increase

    b.

    Decrease

    c.

    No change

    d.

    Indeterminate

3 points   

QUESTION 21

  1. Event: Decrease in government spending due to concerns about increasing debt. (Long Run)

    Question: What is the change in aggregate demand (AD)?

    a.

    Increase

    b.

    Decrease

    c.

    No change

    d.

    Indeterminate

3 points   

QUESTION 22

  1. Event: Decrease in government spending due to concerns about increasing debt. (Long Run)

    Question: What is the change in short run aggregate supply (SRAS)?

    a.

    Increase

    b.

    Decrease

    c.

    No change

    d.

    Indeterminate

3 points   

QUESTION 23

  1. Event: Decrease in government spending due to concerns about increasing debt. (Long Run)

    Question: What is the change in long run aggregate supply (LRAS)?

    a.

    Increase

    b.

    Decrease

    c.

    No change

    d.

    Indeterminate

3 points   

QUESTION 24

  1. Event: Decrease in government spending due to concerns about increasing debt. (Long Run)

    Question: What is the change in equilibrium price level?

    a.

    Increase

    b.

    Decrease

    c.

    No change

    d.

    Indeterminate

3 points   

QUESTION 25

  1. Event: Decrease in government spending due to concerns about increasing debt. (Long Run)

    Question: What is the change in equilibrium real gross domestic product (RGDP)?

    a.

    Increase

    b.

    Decrease

    c.

    No change

    d.

    Indeterminate

In: Economics

HTML 7.20 A palindrome is a number or a text phrase that reads the same backward...

HTML

7.20

A palindrome is a number or a text phrase that reads the same backward and forward. For example, each of the following five-digit integers is a palindrome: 12321, 55555, 45554 and 11611. Write a script that reads in a five-digit integer and determines whether it’s a palindrome. If the number is not five digits long, display an alert dialog indicating the problem to the user. Allow the user to enter a new value after dismissing the alert dialog. [Hint: It’s possible to do this exercise with the techniques learned in this chapter. You’ll need to use both division and remainder operations to “pick off” each digit.]

In: Computer Science

------------------------------------------------------------------------------------------------------------------------------------sfdgsdfgfd-------------------------------sfgsfd----------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------sfdgsdfgfd-------------------------------sfgsfd-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------gsdfgfd-------------------------------sfgsfdgsdfgfd-------------------------------sfgsfdgsdfgfd-------------------------------sfgsfd----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------gsdfgfd-------------------------------sfgsfdgsdfgfd-------------------------------sfgsfdgsdfgfd-------------------------------sfgsfdgsdfgfd-------------------------------sfgsf--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------dgsdfgfd-------------------------------sfgsfdgsdfgfd-------------------------------sfgsfdgsdfgfd-------------------------------sfgsfdgsdfgfd-------------------------------sfgsfdgsdfgfd--------------------------sfg----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------sfdgsdfgfd-------------------------------sfgsfd-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------gsdfgfd-------------------------------sfgsfdgsdfgfd-------------------------------sfgsfdgsdfgfd-------------------------------sfgsfd----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------gsdfgfd-------------------------------sfgsfdgsdfgfd-------------------------------sfgsfdgsdfgfd-------------------------------sfgsfdgsdfgfd-------------------------------sfgsf--------------------------------------------------------------------------------------------------

1. A Capacitor is discharging through a resistor. When the capacitor has lost a quarter of its charge, the voltage across the resistor is:
A) greater than the voltage across the capacitor.
B) equal to the voltage across the capacitor.
C) Zaro.
D) equal to the sum of the voltages across the battery and the capacitor.
E) less than the voltage across the capacitor, but greater than zero.
2. An air-FIlled parallel-plate capacitor is connected to a battery and allowed to charge up, and then disconnected from the battery. A slab of dielectric material is placed between the plates of the capacitor. After this is done, we find that:
A) the voltage across the capacitor has decreased.
B) the charge on the capacitor has decreased.
C) the charge on the capacitor has increased.
D) the voltage across the capacitor has increased.
E) the energy stored in the capacitor has increased.
I thought Second question answer was E.

Explain in detail, please!

In: Physics

From the given shearing stress and normal stress as below: σx = -5MPa σy = 10MPa...

From the given shearing stress and normal stress as below:

σx = -5MPa
σy = 10MPa
τxy = -5MPa

Sketch the free body diagram of the stress element.
Determine and sketch the free body diagram for the principal stress using transformation equations.

Determine and sketch the free body diagram for the maximum shearing stress, correspond with the normal stress using the general transformation equations.

In: Mechanical Engineering

Based on learning theories, how could you have learned material better, how could you apply this...

Based on learning theories, how could you have learned material better, how could you apply this information? Give an example of how you did or could have applied this information, in more than 250 words.

In: Psychology

A common piece of advice about writing a "bad news message" is to use the indirect...

A common piece of advice about writing a "bad news message" is to use the indirect approach: use buffers before the reader gets the negative news. The article, "Buffers in bad news messages and recipient perceptions," claims that there is no empirical proof to support using the indirect approach with bad news.

Read the article, especially the section titled "Significant findings and their implications," then

write a bad news message using the strategy that Limaye suggests;

reflect on how this approach is similar or different to other "bad news messages" that you have read or received.

Which type of "bad news message" do you prefer? Why?


Limaye, M. (1988). Communication forum. Management Communication Quarterly 2(1), 90. Retrieved from https://csuglobal.idm.oclc.org/login?url=https://search-proquest-com.csuglobal.idm.oclc.org/docview/232847943?accountid=38569

In: Psychology

Myrtle Air Express decided to offer direct service from Cleveland to Myrtle Beach. Management must decide...

Myrtle Air Express decided to offer direct service from Cleveland to Myrtle Beach. Management must decide between a full-price service using the company’s new fleet of jet aircraft and a discount service using smaller capacity commuter planes. It is clear that the best choice depends on the market reaction to the service Myrtle Air offers. Management developed estimates of the contribution to profit for each type of service based upon two possible levels of demand for service to Myrtle Beach: strong and weak. The following table shows the estimated quarterly profits (in thousands of dollars):

Demand for Service
Service Strong Weak
Full price $1440 -$530
Discount $1050 $480
  1. What is the decision to be made, what is the chance event, and what is the consequence for this problem?

    The input in the box below will not be graded, but may be reviewed and considered by your instructor.



    How many decision alternatives are there?

    Number of decision alternatives =

    How many outcomes are there for the chance event?

    Number of outcomes =
  2. If nothing is known about the probabilities of the chance outcomes, what is the recommended decision using the optimistic, conservative and minimax regret approaches?
    Optimistic approach Full price service
    Conservative approach Discount service
    Minimax regret approach Discount service
  3. Suppose that management of Myrtle Air Express believes that the probability of strong demand is 0.7 and the probability of weak demand is 0.3. Use the expected value approach to determine an optimal decision.

    Optimal Decision : Discount service
  4. Suppose that the probability of strong demand is 0.8 and the probability of weak demand is 0.2. What is the optimal decision using the expected value approach?

    Optimal Decision : Full price service
  5. Determine the range of demand probabilities for which each of the decision alternatives has the largest expected value. If required, round your answer to four decimal places.

    Discount service  is the best choice if probability of strong demand is less than or equal to . For values of  greater than , the full price service is the best  choice.

In: Operations Management

Discuss how the size of details of an object that can be detected with electromagnetic waves...

Discuss how the size of details of an object that can be detected with electromagnetic waves is related to the wavelength of the EM wave, by comparing details observable with two different types (for example, radar and visible light or infrared and X-rays).  Would an individual atom be observable by the human eye using a powerful optical microscope (one that uses visible light)? Why don

In: Physics

Which of the following statements about the effective nuclear charge (Zeff) is correct? a. Zeff increases...

Which of the following statements about the effective nuclear charge (Zeff) is correct?

a.

Zeff increases across a period and is relatively constant down a group.

b.

Zeff decreases across a period and increases down a group.

c.

Zeff increases with the size of the atom.

d.

Zeff increases as the value of the principal quantum number increases.

e.

Zeff is greater for hydrogen than for any other element.

In: Chemistry

The following data lists the ages of a random selection of actresses when they won an...

The following data lists the ages of a random selection of actresses when they won an award in the category of Best​ Actress, along with the ages of actors when they won in the category of Best Actor. The ages are matched according to the year that the awards were presented. Complete parts​ (a) and​ (b) below.

Actress (years) 31   25   29   31   35   25   25   42   30   32

Actor (years)    56   40   39   34   29   37   52   35   34   44

a. Use the sample data with a 0.01 significance level to test the claim that for the population of ages of Best Actresses and Best​ Actors, the differences have a mean less than 0​ (indicating that the Best Actresses are generally younger than Best​ Actors).

In this​ example, μd is the mean value of the differences d for the population of all pairs of​ data, where each individual difference d is defined as the​ actress's age minus the​ actor's age. What are the null and alternative hypotheses for the hypothesis​ test?

H0​: μd (1) _____ , _____ years

H1​: μd (2) _____ , _____ years

​(Type integers or decimals. Do not​ round.)

(1) >

<

=

(2) <

=

>

Identify the test statistic.

t= _____ ​(Round to two decimal places as​ needed.)

Identify the​ P-value.

​P-value=_____ ​(Round to three decimal places as​ needed.)

What is the conclusion based on the hypothesis​ test?

Since the​ P-value is (3) _____ the significance​ level, (4) _____ the null hypothesis. There (5)_____ sufficient evidence to support the claim that actresses are generally younger when they won the award than actors.

(3) less than or equal to

greater than

(4) reject

fail to reject

(5) is

is not

b. Construct the confidence interval that could be used for the hypothesis test described in part​ (a). What feature of the confidence interval leads to the same conclusion reached in part​ (a)?

The confidence interval is _____ ​year(s)<μd< _____ ​year(s).

​(Round to one decimal place as​ needed.)

What feature of the confidence interval leads to the same conclusion reached in part​ (a)?

Since the confidence interval contains (6) _____ (7) _____ the null hypothesis.

(6) zero,

only negative numbers,

only positive numbers,

(7) reject

fail to reject

In: Math

Matrix Multiplication with Threads - C/C++ **Please read entire question before answering** **Please don't copy /...

Matrix Multiplication with Threads - C/C++

**Please read entire question before answering**
**Please don't copy / paste code**

In this assignment you will use the Pthreads library to write a program that multiplies two square arrays and compare the difference between the imperative and parallel implementations of this algorithm.

Use the matrix mulltiplication algorithm.

Write a program that contains three functions:

(1) A function that has an integer as a parameter and returns a pointer to square array of integers (i.e. both dimensions should be equal). The function should allocate storage from the heap and randomly fill that dynamically allocated array.

(2) A function that uses the algorithm described above to compute the matrix square of an array. It should be passed a pointer to an array of integers and an integer defining the dimensions of the array. It should return a pointer to the array containing the product.

(3) A function that uses pthreads to compute the matrix square of an array. This function should have the same parameters and return values of the previous function

The main() function in your program needs to use these functions to compute the square of matrices with 100, 500, 1000, 5000, and 10000 integers
Assume that the values used for the size of these square arrays will always be even.

My suggestion is to think about dividing each array into smaller and smaller pieces until you reach some reasonably small size. At that point multiply the matrices using the iterative algorithm.

In: Computer Science

The following trial balance was extracted from the books of Big Bamboo Limited on December 31,...

The following trial balance was extracted from the books of Big Bamboo Limited on December 31, 2020               

                                           Big Bamboo Ltd

Trial Balance as at January 1, 2020

Motor vehicle at cost

10,600

Provision for depreciation on Motor Vehicle

2,120

Building at cost

90,000

Provision for depreciation on Buildings

1,800

Stock at January 1, 2020

53,000

Carriage inwards

500

Debtors

50,130

Returns Inwards

6,000

Returns Outwards

5,560

Bad debt provision

1,100

Cash

3,200

Creditors

30,350

Bank overdraft

15,500

Sales

600,000

Purchases

440,000

Wages

93,200

Insurance

54,100

Discount received

8,300

Drawings

14,000

Capital

150,000

814,730

814,730

Additional Information:

1.      Stock at December 31, 2020 $80,000

2.      Payment of $10,100 for insurance relates to the first quarter of 2021.

3.      Wages owing $4,800

4.      Provision for bad debt is to be increased to $1,500

5.      Depreciation on fixed assets:

-          Motor vehicles 10% on cost

-          Buildings 15 % on the reducing balance method

Required:

Prepare for Big Bamboo Limited:

(a)    An income statement for the year ended December 31, 2020                      

(b)   A statement of financial position as at December 31, 2020                          

In: Accounting

Construct the Dual and solve the Dual by the graphical method. Minimize Z = 1x1 +...

Construct the Dual and solve the Dual by the graphical method.

Minimize Z = 1x1 + 2x2 + 3x3

Subject to:

0x1 + 6x2 + 2x3 >= J

3x1 + 2x3 + 5x3 >= K

x1, x2, and x3 >= 0

constant resources:

J = 25

K = 24

Please do on paper...

In: Operations Management