Questions
What does the RISC-V code below do? Write the C equivalent. Assume that i is in...

What does the RISC-V code below do? Write the C equivalent. Assume that i is in register x5 and that the base address of array A that holds doubleword integers is in x20.
addi x5, x0, 0
addi x6, x0, 50
addi x28, x20, 0
loop: bge x5, x6, end
ld x7, 0(x28)
bge x7, x0, next
sub x7, x0, x7
sd x7, 0(x28)
next: addi x5, x5, 1
addi x28, x28, 8
jal x0, loop
end:
Can you rewrite the assembly code from question 4 using fewer instructions by eliminating the loop control variable? If not, why not?

In: Computer Science

v Sell on Credit Corp. Accounts receivable — Aging report As at December 31, 20X7 Days...

v

Sell on Credit Corp.
Accounts receivable — Aging report
As at December 31, 20X7
Days outstanding 0-30 31-60 61-90 91 and over Total
All Design Inc. 38,600 38,600
Brio Developments 26,400 15,900 42,300
Cremore Construction 5,700 5,700
Darius Inc. 131,500 3,000 134,500
Everything Rentals 86,500 12,300 98,800
Frieda's HVAC 52,500 52,500
Great Big Equipment 8,700 1,300 10,000
Hari Technical Design 16,700 16,700
Inland Surveyors Inc. 3,700 3,700
Klampett Fashions 13,600 4,200 17,800
Lomar Fine Furniture 85,000 4,800 89,800
Overland Paint & Tech 9,800 9,800
Prime Flooring 49,300 850 50,150
Relay Contractors 13,500 9,800 23,300
Stay-Play Vacation Resort 96,000 96,000
Underwood Contractors 57,500 3,100 60,600
636,800 96,000 3,850 13,600 750,250

Sell on Credit Corp.’s (SCC) aged accounts receivable list is available in Excel in the Project 1 Data file.

Other pertinent facts include the following:

• SCC’s balance in its “allowance for doubtful accounts” account on January 1, 20X7, was a $4,600 credit.

• On March 31, 20X7, SCC unexpectedly collected a $1,950 accounts receivable due from KML Corp. that it wrote off in 20X6.

• During the year, SCC wrote off a total of $3,800 in uncollectable accounts.

• SCC uses a balance sheet approach (aging method) to estimate its uncollectable accounts.

Based on historical experience, SCC provides for bad debts as follows:

Aging period Days outstanding 0-30 31-60 61-90 > 91 Historical percent loss 1% 5% 10% 30%

Required: a) Prepare all journal entries required during the year and at year end to properly reflect SCC’s accounting for its bad debt expense/allowance for doubtful accounts. Ensure that your journal entry(ies) includes an explanation as to the nature of the transaction. Intermediate Financial Reporting 1 Project 1 4 / 9 b) Use a T-account to reconcile the change in the opening (January 1, 20X7) and closing (December 31, 20X7) balances in the allowance for doubtful accounts. Ensure that the reconciliation includes all the journal entries you prepared in part

In: Accounting

Describe your design for a transformer that steps up voltage from 120 to 1200 V. (Talk...

Describe your design for a transformer that steps up voltage from 120 to 1200 V. (Talk about the numbers of turns and the material of the core, specifically.) Will the input and output be AC or DC electricity (there is only one right answer for this one unless you get fancy)? Compare the input current to the output current (hint: the output power in the secondary coils should be calculated to be the same (actually slightly less, due to inefficiencies) as the input power in primary coils.  

Talk briefly about another device that uses induction for practical purposes.

In: Physics

This week we will discuss the aspects of distribution when launching your new V Fusion. See...

This week we will discuss the aspects of distribution when launching your new V Fusion. See this link https://www.campbells.com/v8/ for more information.

As you consider distribution, address the following items:

Is distribution an important element of the marketing mix?

What value does it add to the product?

Describe one of the three major distribution strategies with an example.

Discuss whether that strategy is successful including your rationale.

Provide a real life example of channel conflict and discuss why the conflict may exist.

In: Economics

v You are a financial analyst at Gen-Eric Corporation, and you are considering two mutually exclusive...

v

  1. You are a financial analyst at Gen-Eric Corporation, and you are considering two mutually exclusive projects. Unfortunately, the figures for project 1 are in nominal terms and the figures for project 2 are in real terms. The nominal discount rate for both projects is 8%, and the inflation rate is projected to be 4%. Which project should you choose?

(4 pts)

Project 1

Project 2

0

-$50,000

-$40,000

1

40,000

30,000

2

50,000

40,000

3

70,000

75,000

In: Finance

A 2000 v signle phase synchorunus generator isbeing used as a backup generator outside a diagnostic...

A 2000 v signle phase synchorunus generator isbeing used as a backup generator outside a diagnostic center in Islamabad . when the generator terminals are short circuited and a field exication current if 2.5 A is passed, the ammeter between the terminals read 100 A of full load current . if this terminals of the same generator are opened and the voltage across them is measured using a voltmeter , we get the value of 500V with the same exciatation cureent . the armature resistance is 0.8 ohms.

Determine the voltage regulation of this generator if it is delivering 100 A during normal operating with unity power factor , 100A with 0.8 leading PF and with 0.71 lagging PF

In: Electrical Engineering

Castaneda v. Partida is an important court case in which statistical methods were used as part...

Castaneda v. Partida is an important court case in which statistical methods were used as part of a legal argument. When reviewing this case, the Supreme Court used the phrase "two or three standard deviations" as a criterion for statistical significance. This Supreme Court review has served as the basis for many subsequent applications of statistical methods in legal settings. (The two or three standard deviations referred to by the Court are values of the z statistic and correspond to P-values of approximately 0.05 and 0.0026.) In Castaneda the plaintiffs alleged that the method for selecting juries in a county in Texas was biased against Mexican Americans. For the period of time at issue, there were 180,025 persons eligible for jury duty, of whom 143,075 were Mexican Americans. Of the 860 people selected for jury duty, 346 were Mexican Americans.

(a) What proportion of eligible voters were Mexican Americans? Let this value be po. (Round your answer to four decimal places.)

(b) Let p be the probability that a randomly selected juror is a Mexican American. The null hypothesis to be tested is Ho: p = po. Find the value of p̂ for this problem, compute the z statistic, and find the P-value. What do you conclude? (A finding of statistical significance in this circumstance does not constitute a proof of discrimination. It can be used, however, to establish a prima facie case. The burden of proof then shifts to the defense.) (Use α = 0.01. Round your test statistic to two decimal places and your P-value to four decimal places.)

z

P-value

Conclusion

Reject the null hypothesis, there is significant evidence that Mexican Americans are underrepresented on juries.

Reject the null hypothesis, there is not significant evidence that Mexican Americans are underrepresented on juries.

Fail to reject the null hypothesis, there is not significant evidence that Mexican Americans are underrepresented on juries.

Fail to reject the null hypothesis, there is significant evidence that Mexican Americans are underrepresented on juries.

(c) We can reformulate this exercise as a two-sample problem. Here we wish to compare the proportion of Mexican Americans among those selected as jurors with the proportion of Mexican Americans among those not selected as jurors. Let p1 be the probability that a randomly selected juror is a Mexican American, and let p2 be the probability that a randomly selected nonjuror is a Mexican American. Find the z statistic and its P-value. (Use α = 0.01. Round your test statistic to two decimal places and your P-value to four decimal places.)

z

P-value

Conclusion

Reject the null hypothesis, there is significant evidence of a difference in proportions.

Reject the null hypothesis, there is not significant evidence of a difference in proportions.

Fail to reject the null hypothesis, there is not significant evidence of a difference in proportions.

Fail to reject the null hypothesis, there is significant evidence of a difference in proportions.

How do your answers compare with your results in (b)?

very different

very similar

none of the above

In: Statistics and Probability

1) A cylinder of Mass M and radius R, and initial speed V, starts rolling up...

1) A cylinder of Mass M and radius R, and initial speed V, starts
rolling up an incline of angle theta relative to horizontal. Assuming
no slipping, how high up does the cylinder get?

2) teeter/totter
a) Peewee has mass m and his big buddy Delilah has mass 2m. If Peewee
sits at one end of a uniform teeter totter of length L and mass M, how
far from the central pivot should Delilah sit (ie on the other end) to
be balanced?

b) Delilah instead chooses to sit at the far end from Peewee. What
vertical acceleration does Peewee experience when they start from a
level teeter/totter from 0 angular velocity at horizontal? Provide an
answer that is a function of the angular displacement (theta) from the
horizontal. What normal force does Peewee experience as a function of
theta?

3) A baseball-crazy astronaut in space catches a fastball. What happens?
Let's treat the astronaut as a rod of length L and mass M and assume
the ball of mass m attaches a distance L/5 from one
end. Compute/describe the resultant motion. Note the moment of inertia
for a solid rod is ML^2/12 for rotation around its center of mass. Hint,
you will have to use the parallel axis theorem for moment of inertia.

In: Physics

The speed of a water wave is described by v= (gd)^(1/2)  where d is the water depth,...

The speed of a water wave is described by v= (gd)^(1/2)  where d is the water depth, assumed to be small compared to the wavelength. Because their speed changes, water waves refract when moving into a region of different depth.

Suppose waves approach the coast from a storm far away to the north–northeast. Demonstrate that the waves move nearly perpendicular to the shoreline when they reach the beach.

Suppose waves approach the coast, carrying energy with uniform density along originally straight wave fronts. Show that the energy reaching the coast is concentrated at the headlands and has lower intensity in the bays.

In: Physics

A 150-V battery is connected across two parallel metal plates of area 28.5 cm2 and a...

A 150-V battery is connected across two parallel metal plates of area 28.5 cm2 and a separation of 8.20 mm. A beam of alpha particles (charge +2e, mass 6.64E-27 kg) is accelerated from rest through a potential difference of 1.75 kV and enters the region between the plates perpendicular to the electric field.

What magnitude and direction of magnetic field are needed so that the alpha particles emerge undeflected from between the plates?

In: Physics