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
How much horse power does a Lamborghini have
statuscvo [17]
The Lamborghini SCV12 has 830 horse power.
4 0
3 years ago
Read 2 more answers
Which quantity does a charge-coupled device measure?
NikAS [45]

Explanation:

A charge-coupled device (CCD) is an integrated circuit containing an array of linked, or coupled, capacitors. Under the control of an external circuit, each capacitor can transfer its electric charge to a neighboring capacitor. CCD sensors are a major technology used in digital imaging.

7 0
3 years ago
One kilogram of air, initially at 5 bar, 350 K, and 3 kg of carbon dioxide (CO2), initially at 2 bar, 450 K, are confined to opp
pentagon [3]

Answer:

Check the explanation

Explanation:

Energy alance of 2 closed systems: Heat from CO2 equals the heat that is added to air in

m_{a} c_{v,a}(T_{eq} -T_{a,i)} =m_{co2} c_{v,co2} (T_{co2,i} -T_{eq)}

1x0.723x(T_{eq} -350)=3x0.780x(450-T_{eq} ) ⇒T_{eq} = 426.4 °K

The initail volumes of the gases can be determined by the ideal gas equation of state,

V_{a,i}  = \frac{mRT_{a,i} }{P_{a,i} }=  \frac{1x (8.314 28.97 kJ kg • °K)x 350°K}{5 bar x 100KPa bar} = 0.201m^{3}

The equilibrium pressure of the gases can also be obtained by the ideal gas equation

P_{eq=\frac{(m_{a}R_{a}T_{eq})+(m_{a}R_{a}T_{eq} ) }{(V_{a,eq}+V_{CO2,eq)} } =\frac{(m_{a}R_{a}T_{eq})+(m_{a}R_{a}T_{eq} ) }{(V_{a,i}+V_{CO2,i)} }

P_{eq}= 1x(8.314 28.97)x426.4+3x(8.314 44)x426.4

                             (0.201+1.275)

= 246.67 KPa = 2.47 bar

6 0
3 years ago
Yeah order for a firm voltage dividers to operate properly The load resistance value should be at least Times greater than resis
Svetlanka [38]

Answer:

A voltage divider is a simple series resistor circuit. It's output voltage is a fixed fraction of its input voltage. The divide-down ratio is determined by two resistors.

7 0
3 years ago
After testing a model of a fuel-efficient vehicle, scientists build a full-sized vehicle with improved fuel efficiency. Which st
Mazyrski [523]
B evaluate the solution. Sorry if I'm wrong.
4 0
3 years ago
Other questions:
  • 2.) For a 20‐mm‐diameter tube with either water or unused engine oil flowing through it, find: a.)The mean velocity, hydrodynami
    9·1 answer
  • Water flows through a Xylan tube at 300 K temperature and 0.5 kg/s flow rate. The inner and outer radii of the Xylan tube is 20
    15·1 answer
  • Nơi nào có điện tích thì xung quanh điện tích đó có :
    9·1 answer
  • What is the function rule for the line? f(x)=−32x−2f(x)=−23x−2f(x)=32x−2f(x)=−32x+2A coordinate grid with x and y axis ranging f
    6·1 answer
  • Which of the following about valence electron is correct?
    10·2 answers
  • While reflecting on the solutions and the process of concept generation, the development team takes a look at some critical ques
    10·1 answer
  • Sandy drives west during a three-day road trip. On the first day, she travels 300 km and stops for the night. The next day, she
    12·1 answer
  • A car has a steering wheel with a 15 inch diameter that takes 18 lbs of Effort force to move is
    9·1 answer
  • 2) What kinds of food can you eat in space?
    14·2 answers
  • The area of piston 1 is 15 times smaller than the area of piston 2. If you want to lift the car 1ft, how much you should push do
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!