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
DiKsa [7]
3 years ago
6

Assume a function requires 20 lines of machine code and will be called 10 times in the main program. You can choose to implement

it using a function definition or a macro definition. Compared with the function definition, macro definition will lead the compiler to generate, for the entire program, ______
Engineering
1 answer:
Volgvan3 years ago
7 0

Answer:

"Macro Instruction"

Explanation:

A macro definition is a rule or pattern that specifies how a certain input sequence should be mapped to a replacement output sequence according to a defined procedure. The mapping process that instantiates a macro use into a specific sequence is known as macro expansion.

It is a series of commands and actions that can be stored and run whenever you need to perform the task. You can record or build a macro and then run it to automatically repeat that series of steps or actions.

You might be interested in
The critical resolved shear stress for a metal is 39 MPa. Determine the maximum possible yield strength (in MPa) for a single cr
damaskus [11]

Answer:

78 MPa

Explanation:

Given that the critical resolved shear stress for a metal is 39 MPa, the maximum possible yield strength for a single crystal of this metal is twice the critical resolved shear stress for the metal. The maximum yield yield strength for a single crystal of this metal that is pulled in tension (\sigma_y) is given as:

\sigma_y=2*critical\ resolved\ shear\ stress(\tau_{css})\\\\\sigma_y=2*\tau_{css}\\\\\sigma_y=2*39\\\\\sigma_y=78\ MPa

4 0
3 years ago
A jar made of 3/16-inch-thick glass has an inside radius of 3.00 inches and a total height of 6.00 inches (including the bottom
swat32

Answer:

1. Volume of the glass shell (Vg) is simply volume of the empty part of the jar (Ve) subtracted from volume of the entire jar (Vj):

Vg = Vj - Ve

Volume is calculated as base (B) multiplied with height (h). Base of the jar is circle, so its surface is πr^2 (r being the radius).

However radius is different depending on the part of the jar; for empty part of the jar, inner radius is d = 3 in, for the whole jar it is inner radius plus thickness of the glass a = 3 + 3/16 = 3.1875 in.

We are also given height of the whole jar, h = 6 in, but height of the empty part is entire height minus thickness of the jar h' = 6 - 0.1875 = 5.8125 in.

Now, let's calculate:

Vj = πa^2 • h = 191.42 in^3

Ve = πd^2 • h' = 164.26 in^3

So, volume of the glass shell is Vj - Ve which is 27.16 in^3.

2. Mass of the glass jar is density of the glass multiplied with volume:

m = ρ • Vg

Density of the glass is given here in cubic feet so, first, we need to convert it to cubic inches, dividing it by 1728:

ρ = 165 lb/ft^3 / 1728 = 0.095 lb/in^3

So, mass of the jar is:

m = 0.095 lb/in^3 • 27.16 in^3 = 2.59 lb

5. To find weight and volume of the water displaced we first need to find how deep the jar sinks (H), because volume of the displaced water is equal to the volume of the jar submerged. Jar will sink until gravity force (pulling it down) and buoyancy force (pushing it up) become equal. Displaced water is πa^2 • H and the buoyancy is ρw • g • Vd (ρw is density of water which is 62.5 lb/ft^3 / 1728 = 0.036 lb/in^3, and Vd is displaced water).

So, buoyancy is:

B = ρw • g • πa^2 • H

We said that buoyancy must be equal to gravity:

B = m • g (m being mass of the jar). So:

ρw • g πa^2 • H = m • g

ρw • πa^2 • H = m

From this, we can find H:

H = m / ρw•πa^2

H = 2.25 inches

That means that the jar will sink 2.25 inches in the water.

3. Now, it's easy to find volume of displaced water. It's the same as the volume of the jar submerged:

Vd = πa^2 • H

Vd = 71.94 in^3

4. And finally, the weight of water is:

m = ρw • Vd

m = 0.036 lb/in^3 • 71.94 in^3

m = 2.59 lb

Of course, we see that the mass of the jar equals the mass of the displaced water. Taking this as a rule, this question could have been solved easier However I wanted to do it more detailed, to explain it more clearly

6 0
3 years ago
Compare and contrast an electric vehicle with one powered by a fuel cell.
zmey [24]

Answer:

both technologies offer a cleaner alternative to internal combustion engines, and both use electric motors powered by electrochemical device.

3 0
3 years ago
What happen when position and crest of a light wave decreases
Mars2501 [29]

Answer:

All photons travel at the speed of light. ... From this equation, it is clear that the energy of a photon is directly proportional to its frequency and inversely proportional to its wavelength. Thus as frequency increases (with a corresponding decrease in wavelength), the photon energy increases and visa versa.

Explanation:

6 0
3 years ago
Recall from an earlier lecture that the relationship between the current through an inductor and the voltage across it is given
serious [3.7K]

Answer: Current = 2A

Explanation:

Inductor L = 10mH

E.m.f = 1 V

Time t = 20 ms

Using

V = Ldi/dt

di/dt = V/ L

di/dt = 1/10×10^-3

di/dt = 100

di = 100dt

Integrate both sides

I = 100(t1 - to)

Assume that initially there is no current through the inductor.

to = 0

I = 100 × t

I = 100 × 20×10^-3

I = 2A

7 0
3 years ago
Other questions:
  • A discrete MOSFET common-source amplifier has RG = 2 MΩ, gm = 5 mA/V, ro = 100 kΩ, RD = 20kΩ, Cgs = 3pF, and Cgd = 0.5pF. The am
    15·1 answer
  • If a worksite includes more than one set of management and workers, who should have access to the information, training, and con
    12·2 answers
  • Silicon carbide nanowires of diameter D = 15 nm can be grown onto a solid siliconcarbide surface by carefully depositing droplet
    13·1 answer
  • A 400 kg machine is placed at the mid-span of a 3.2-m simply supported steel (E = 200 x 10^9 N/m^2) beam. The machine is observe
    14·1 answer
  • What are potential impacts of clean energy? Predict the impact on future<br> generations.
    14·1 answer
  • In the given circuit, V(t)=12cos(2000t+45)V, R1=R2=2Ω, L1=L2=L3=3mH and C1=250μF. You are required to find the Thevenin equivale
    7·1 answer
  • Steam enters a turbine with a pressure of 30 bar, a temperature of 400 oC, and a velocity of 160 m/s. Saturated vapor at 100 oC
    11·1 answer
  • Consider the formation of p-nitrophenol from p-nitrophenyl trimethyl acetate. The process is known as enzymatic hydrolysis and i
    7·1 answer
  • What is the mechanical advantage of a simple block and tackle with one rope?
    7·2 answers
  • I am trying to make a vacuum cannon but all I can use to get out the air is a speed pump to give air to bicycles. I need to make
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!