1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
padilas [110]
3 years ago
15

Consider the following fragment of C code:

Engineering
1 answer:
Sergio039 [100]3 years ago
7 0

Answer:

711; 202

Explanation:

MIPS code for the C fragment:

addi $t6, $zero, 101 # the loop termination value

add $t0, $zero, $zero # i = 0

addi $t2, $a0, 0 # ptr to current A[i]

addi $t3, $a1, 0 # ptr to current B[i]

loop: lw $t4, 0($t3) # load B[i]

add $t4, $t4, $s0 # B[i] + c

sw $t4, 0($t2) # store in A[i]

addi $t0, $t0, 1 # i++

addi $t2, $t2, 4 # ptr to next A[i]

addi $t3, $t3, 4 # ptr to next B[i]

bne $t0, $t6, loop # if i < 101, goto loop

The loop is executed 101 times and the loop contains 7 statements. There are 4 statements outside the loop. Therefore, the total number of instructions executed is 4 + (7*101) = 711.

The total number of memory data reference: 101 * 2 = 202.

You might be interested in
What type of degree is needed to be an architect?
Rina8888 [55]
Architects must have a professional bachelor's or master's degree in architecture from a program that has been accredited by the National Architectural Accrediting Board, and a state license.
3 0
3 years ago
Read 2 more answers
What type of Exhaust is best for the 3.9 Mopar V6 Engine in Dodge Dakota?
Arisa [49]

Explanation:

Dynomax Super Turbo! I've heard it, it sounds awesome. Not too loud, very balanced and no ricey sound towards 4000 RPMs.

3 0
2 years ago
If the compound swivel base is set on 60 degrees at the lathe centerline index, how many degrees will the reading be at the cros
Effectus [21]

Answer:

C.30°

Explanation:

Given that compound swivel base is set on 60° at the lathe center line index.

We need to find reading on cross slide index

We know that relationship between center line index and cross slide index in angle 2∝=β

Where ∝ Angle of swivel and β is the reading on cross line index.

So by using above  relationship between center line index and cross slide index  

2∝=60°⇒∝=30°

So our option is C.

6 0
4 years ago
What are the two types of pumps in compressors?
VMariaS [17]

Answer: The two different types of pumps in compressors are:

 1) Centrifugal Pumps

 2) Reciprocating Pumps

Explanation:

Compressor is defined as a mechanical device which increases the gas pressure by reducing its volume.The main action of a pump is to transport liquids and pressurize and it coverts rotational energy. As, centrifugal pumps are the most common pumps used for transfer of fluids and it works on simple mechanism.

Reciprocating Pumps is used for low volumes of flow at a high pressure. It is the positive displacement pump. As, it works on the principle of pushing of liquid which executes a reciprocating motion in a closed cylinder.  

3 0
3 years ago
Read 2 more answers
A converging-diverging nozzle has an area ratio of 5.9. (1) Determine the (P0/Pt) values corresponding to the 1st, 2nd, and 3rd
nata0808 [166]

Answer:

Check the explanation

Explanation:

The Total pressure is the overall of fixed or static pressure p, the dynamic pressure q, as well as gravitational head. Total pressure can also be referred to as the measure of the overall energy of the airstream, and is the same to static pressure plus velocity pressure.

kindly check the step by step solution in the attached image below to Determine the (P0/Pt) values corresponding to the 1st, 2nd, and 3rd critical points.

5 0
4 years ago
Other questions:
  • Carbon dioxide (CO2) at 1 bar, 300 K enters a compressor operating at steady state and is compressed adiabatically to an exit st
    11·1 answer
  • A horizontal curve is to be designed for a two-lane road in mountainous terrain. The following data are known: Intersection angl
    7·1 answer
  • A horizontal curve is being designed through mountainous terrain for a four-lane road with lanes are 10 ft wide. The central ang
    9·1 answer
  • Teresa is a civil engineer who uses her automobile for business. Teresa drove her automobile a total of 11,965 miles during 2019
    11·1 answer
  • A waste stabilization pond is used to treat a dilute municipal wastewater before the liquid is discharged into a river. The infl
    9·1 answer
  • What do you need to craft netherite ingots come on man you should know this
    9·2 answers
  • Which of the following explains the difference between conservation and preservation?
    5·1 answer
  • Calculate the torque produced by a motor that has 500 windings across a 30cm diameter rotating core. The core is 0.6 M long insi
    12·1 answer
  • A correctly designed and installed air curtain can be used to prevent what
    12·1 answer
  • How do I give brainless?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!