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
evablogger [386]
3 years ago
5

Assign rateMPH with the corresponding rate in miles per hour given a user defined rateKPH, which is a rate in kilometers per hou

r. Use the local function KilometersToMiles. Your Solution g function distanceMiles = CalculateDistance(timeHours, rateKPH) % timeHours: Time in hours A % rateKPH: Rate in kilometers rateMPH = rateKPH; % Call KilometersToMiles function (below) to assign % rateMPH with the corresponding speed in miles per hour distanceMiles = rateMPH * timeHours; end % Do not modify the function below function milesValue = KilometersToMiles(KilometersValue) milesValue = KilometersValue * 0.6213712; 15 end Code to call your function when you click Run Calculate distance(1, 40)

Engineering
2 answers:
Marina86 [1]3 years ago
8 0

Answer:

I attached the screenshot of the code and also the output variable.

Explanation:

The code is well commented, the only things required to be done is to add just another line and implement the below function

zaharov [31]3 years ago
7 0

Answer:

Here is the code for you:

function distanceMiles = CalculateDistance(timeHours, rateKPH)

%timeHours: Time in hours

%rateKPH: Rate in kilometers

rateMPH = KilometersToMiles(rateKPH); %Call KilometersToMiles function(below) to assign

%rateMPH with the corresponding speed in miles per

%hour

distanceMiles = rateMPH * timeHours;

end

function milesValue = KilometersToMiles(KilometersValue)

milesValue = KilometersValue * 0.6213712;

end

And the output screenshot is: [Attached]

You might be interested in
Where can you find free air pods that look real
Tema [17]
You can find air pods that look real on letgo. or you can go to wish.com but if you want a good pair jus get the real ones
7 0
3 years ago
Air is contained in a vertical piston–cylinder assembly such that the piston is in static equilibrium. The atmosphere exerts a p
oee [108]

Answer:

a) 24 kg

b) 32 kg

Explanation:

The gauge pressure is of the gas is equal to the weight of the piston divided by its area:

p = P / A

p = m * g / (π/4 * d^2)

Rearranging

p * (π/4 * d^2) = m * g

m = p * (π/4 * d^2) / g

m = 1200 * (π/4 * 0.5^2) / 9.81 = 24 kg

After the weight is added the gauge pressure is 2.8kPa

The mass of piston plus addded weight is

m2 = 2800 * (π/4 * 0.5^2) / 9.81 = 56 kg

56 - 24 = 32 kg

The mass of the added weight is 32 kg.

5 0
3 years ago
What is future active and future passive and future perfect active
san4es73 [151]
The future perfect tense forms are made by putting ‘will / shall + have’ before the past participle from the verb. these sentences can be changed into the passive if the active verb has an object


i hope this helps :D thanks
5 0
3 years ago
What is the activation energy (Q) for a vacancy formation if 10 moles of a metal have 2.3 X 10^13 vacancies at 425°C?
Yakvenalex [24]

Answer:

Activation\ Energy=2.5\times 10^{-19}\ J

Explanation:

Using the expression shown below as:

N_v=N\times e^{-\frac {Q_v}{k\times T}

Where,

N_v is the number of vacancies

N is the number of defective sites

k is Boltzmann's constant = 1.38\times 10^{-23}\ J/K

{Q_v} is the activation energy

T is the temperature

Given that:

N_v=2.3\times 10^{13}

N = 10 moles

1 mole = 6.023\times 10^{23}

So,

N = 10\times 6.023\times 10^{23}=6.023\times 10^{24}

Temperature = 425°C

The conversion of T( °C) to T(K) is shown below:

T(K) = T( °C) + 273.15  

So,  

T = (425 + 273.15) K = 698.15 K  

T = 698.15 K

Applying the values as:

2.3\times 10^{13}=6.023\times 10^{24}\times e^{-\frac {Q_v}{1.38\times 10^{-23}\times 698.15}

ln[\frac {2.3}{6.023}\times 10^{-11}]=-\frac {Q_v}{1.38\times 10^{-23}\times 698.15}

Q_v=2.5\times 10^{-19}\ J

4 0
3 years ago
What are the Basic requirements of drinking Water ?
iragen [17]

Answer:

1) free of contaminants, 2) alkaline, and 3) micro-clustered

Explanation:

Hope it helps you

4 0
2 years ago
Other questions:
  • . A constant current of 1 ampere is measured flowing into the positive reference terminal of a pair of leads whose voltage we’ll
    10·1 answer
  • A circuit with ____ -diameter connecting wires at a _____ temperature will have the least electrical resistance.
    13·1 answer
  • A stainless-steel specimen from the same material characterized up above, was formed into a rectangular cross-section of dimensi
    9·1 answer
  • A hydraulic cylinder has a 125-mm diameter piston with hydraulic fluid inside the cylinder and an ambient pressure of 1 bar. Ass
    8·1 answer
  • 6
    5·1 answer
  • A process consists of two steps: (1) One mole of air at T = 800 K and P = 4 bar is cooled at constant volume to T = 350 K. (2) T
    7·1 answer
  • When will the entropy value of the universe attained its maximum value?
    13·1 answer
  • The guy wires AB and AC are attached to the top of the transmission tower. The tension in cable AB is 8.7 kN. Determine the requ
    8·1 answer
  • 2 definiciones de personas en Técnicos en ingeniería eléctrica y agregar link.<br> Por favor❗❗❗
    13·1 answer
  • Which of the following is a purpose of sports biomechanics?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!