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
An Ideal gas is being heated in a circular duct as while flowing over an electric heater of 130 kW. The diameter of duct is 500
Rashid [163]

Answer:

Exit temperature = 32 °C

Explanation:

We are given;

Initial Pressure;P1 = 100 KPa

Cp =1000 J/kg.K = 1 KJ/kg.k

R = 500 J/kg.K = 0.5 Kj/Kg.k

Initial temperature;T1 = 27°C = 273 + 27K = 300 K

volume flow rate;V' = 15 m³/s

W = 130 Kw

Q = 80 Kw

Using ideal gas equation,

PV' = m'RT

Where m' is mass flow rate.

Thus;making m' the subject, we have;

m' = PV'/RT

So at inlet,

m' = P1•V1'/(R•T1)

m' = (100 × 15)/(0.5 × 300)

m' = 10 kg/s

From steady flow energy equation, we know that;

m'•h1 + Q = m'h2 + W

Dividing through by m', we have;

h1 + Q/m' = h2 + W/m'

h = Cp•T

Thus,

Cp•T1 + Q/m' = Cp•T2 + W/m'

Plugging in the relevant values, we have;

(1*300) - (80/10) = (1*T2) - (130/10)

Q and M negative because heat is being lost.

300 - 8 + 13 = T2

T2 = 305 K = 305 - 273 °C = 32 °C

13000 + 300 - 8000 = T2

6 0
3 years ago
What can your employer do to protect you from overhead power lines?
agasfer [191]

Answer:

Have the power company install insulated sleeves (also known as “eels”) over power lines.​

Wearing PPE is the only way to prevent being electrocuted

Explanation:

To prevent electrocution at workplace, employers can ensure that the  power company install insulated sleeves (also known as “eels”) over power lines.​ Additionally, the employees should wear PPEs which are insulators to prevent electrocution.

5 0
3 years ago
The snowmobile has a weight of 250 lb, centered at G1, while the rider has a weight of 150 lb, centered at G2. Ifh=3ft, determin
KATRIN_1 [288]

Answer:

See explaination

Explanation:

Please kindly check attachment for the step by step solution of the given problem.

5 0
3 years ago
List the three parts of an atom in the Bohr Model
gogolik [260]
Structure Of The Atom: Our current model of the atom can be broken down into three constituents parts – protons, neutron, and electrons. Each of these parts has an associated charge, with protons carrying a positive charge, electrons having a negative charge, and neutrons possessing no net charge.
7 0
3 years ago
Consider a N-channel enhancement MOSFET with VGS = 3V, Vt = 1 V, VDS = 10 V, and lambda =0 (channel length modulation parameter)
AveGali [126]

The current IDS is greater than 0 since the VGS has induced an inversion layer and the transistor is operating in the saturation region.

<u>Explanation:</u>

  • Since V_{ds} > V_{gs} - Vt because V_{gs} > Vt.
  • By the saturation region the MOSFET is operating.
  • A specific source voltage and gate of NMOS, the voltage get drained during the specific level, the drain voltage is rises beyond where there is no effect of current during saturated region.
  • MOSFET is a transistor which is a device of semiconductor vastly used for the electronic amplifying signals and switching in the devices of electronics.
  • The core of this is integrated circuit.
  • It is fabricated and designed in an individual chips due to tiny sizes.
7 0
3 years ago
Other questions:
  • The direction of rotation of a dc series motor or a universal motor connected to a dc power source A) depends on the polarities
    15·1 answer
  • Solve the compound inequality. 3x − 4 &gt; 5 or 1 − 2x ≥ 7
    8·1 answer
  • Are ocean currents always cold
    10·1 answer
  • The current through a 10-mH inductor is 10e−t∕2 A. Find the voltage and the power at t = 8 s.
    15·2 answers
  • Multimeter and the LCD is showing Hz. What's she measuring?
    11·1 answer
  • La iluminación de la superficie de un patio amplio es 1600 lx cuando el ángulo de elevación del sol 53°. Calcular la iluminación
    15·1 answer
  • PLEASE HELP AND ANSWER MY OTHER QUESTIONS!,
    7·1 answer
  • Writing an excellent problem statement will not help guide you through the rest of the process and steer you towards the BEST so
    8·1 answer
  • For a small company it's usually best to keep the corporate and brand image as___ as possible​
    9·1 answer
  • 7. True or False? The positive effects of a new<br> technology always outweigh its negative effects.
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!