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
Select three types of lines that engineers use to help represent the shape of a design in a sketch.
Vikki [24]

Hidden lines

  • Used to describe the in shown lines (like diagonals inside cubes)

Extension lines:-

  • Used to explain the expansion of structures like building

Object lines

  • Used to describe the structure of objects and the lining to show borders
7 0
3 years ago
What's a disadvantage of highest MERV-rated filters?
Arte-miy333 [17]

Answer:

3) the pressure drop across high MERV filters is significant.

Explanation:

MERV (Minimum-Efficiency Reporting Value) is used to measure the efficiency of filter to remove particles. A filter of high MERV can filter smaller particles but this causes an increase in reduced air flow that is an increase in pressure drop. High MERV filters capture more particles causing them to get congested faster and thereby increasing pressure drop.

Excessive pressure drop can cause overheating and lead to damage of the filter. The pressure drop can be reduced by increasing the surface area of the filter.

3 0
3 years ago
Read 2 more answers
How does Hydro Technology and Hydro Energy Help with Global Water Issues?
GrogVix [38]
It would have environmental and societal impacts
5 0
3 years ago
(a) The lower yield point for an iron that has an average grain diameter of 1 x 10-2 mm is 230 MPa. At a grain diameter of 6 x 1
olya-2409 [2.1K]

Answer:

The answer is "4.35 \times 10^{-3}\  mm and 157.5 MPa".

Explanation:

In point A:

The strength of its products with both the grain dimension is linked to this problem. This formula also for grain diameter of 310 MPA is represented as its low yield point  

y =  yo + \frac{k}{\sqrt{x}}

Here y is MPa is low yield point, x is mm grain size, and k becomes proportionality constant.  

Replacing the equation for each condition:  

y = y_o + \frac{k}{\sqrt{(1 \times 10^{-2})}}\\\\\ \ \ \ \ \ \ 230 = yo + 10k\\\\ y = yo + \frac{k}{\sqrt{(6\times 10^{-3})}}\\\\275 = yo + 12.90k

People can get yo = 275 MPa with both equations and k= 15.5 Mpa mm^{\frac{1}{2}}.

To substitute the answer,  

310 = 275 + \frac{(15.5)}{\sqrt{x}}\\\\x = 0.00435 \ mm = 4.35 \times 10^{-3}\  mm

In point b:

The equation is \sigma y = \sigma 0 + k y d^{\frac{1}{2}}

equation is:

75 = \sigma o+4 ky \\\\175 = \sigma o+12 ky\\\\ky = 12.5 MPa (mm)^{\frac{1}{2}} \\\\ \sigma 0 = 25 MPa\\\\d= 8.9 \times 10^{-3}\\\\d^{- \frac{1}{2}} =10.6 mm^{-\frac{1}{2}}\\

by putting the above value in the formula we get the \sigma y value that is= 157.5 MPa

5 0
3 years ago
The specific volume of a system consisting of refrigerant-134a at 1.0 Mpa is 0.01 m /kg. The quality of the R-134a is: (a) 12.6%
Flura [38]

Answer:

option c is correct

47.2%

Explanation:

given data

consisting of refrigerant = 134 a

volume V = 0.01 m³/kg

pressure P = 1MPa = 1000 kPa

to find out

quality of the R 134a

solution

we will get here value of volume Vf and Vv from pressure table 60 kpa to 3 Mpa for 1 Mpa of R134 a

that is

Vf = 0.0008701 m³/kg

Vv = 0.0203 m³/kg

so we will apply here formula that is

quality = (V - Vf) / (Vv - Vf)    ............1

put here value

quality = (0.01 - 0.0008701 ) / ( 0.0203 - 0.0008701 )

quality = 0.4698

so quality is 47 %

SO OPTION C IS CORRECT

4 0
4 years ago
Other questions:
  • the velocity of a particle is given by v=16t^2i+4t^3j+(5t+2k) m/s, where t is in seconds. if the particle is at the origin when
    10·1 answer
  • A bar of 75 mm diameter is reduced to 73mm by a cutting tool while cutting orthogonally. If the mean length of the cut chip is 7
    10·1 answer
  • The screw of shaft straightener exerts a load of 30 as shown in Figure . The screw is square threaded of outside diameter 75 mm
    5·1 answer
  • A DOHC V-6 has how many camshafts?
    6·1 answer
  • The Danish scientist Niels Bohr proposed a model of the atom that is not totally accurate today but still contains components th
    12·1 answer
  • You are analyzing an open-return wind tunnel that intakes air at 20 m/s and 320K. When the flow exits the wind tunnel it is movi
    14·2 answers
  • Your sprayer has a 60-foot wide boom with 36 nozzles along this 60-foot length. Your spray speed is 4.5 miles per hour and you w
    15·1 answer
  • What is required when setting up a smart phone as a WIFI hotspot?
    11·1 answer
  • A conceptual issue can be resolved by which of the following?
    11·1 answer
  • Technician a says that personal protective equipment (ppe) does not include clothing. technician b says that the ppe used should
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!