Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program in MATLAB to determine how long, in units of seconds, it will ta

ID: 3405732 • Letter: W

Question

Write a program in MATLAB to determine how long, in units of seconds, it will take a motor to raise a load into the air. Assume the user will specify the power of the motor in units of watts, the rated efficiency as a percentage (in whole number for —for example, 50 for 50%), the mass of the load in kilograms, and the height the load is raised in the air in units of meters. As a test case, you may assume the user provides the 100 watts for the power of the motor, 60% for the efficiency of the motor, 100 kilograms for the mass of the load, and 5 meters for the height the load is raised.

Also, please fill this out.

Summary of Problem Statement

Known/Input Unknown/Output Assumptions

Other Variables

Algorithm

Test Cases

Explanation / Answer

Effetive Power=eP,e=Efficiency,P=Power.

F=mg,m=mass,g= 9.81 m/s2.

Work done=Fh,h=height the load is raised.

Power=Work done/Time=Fh/t=mgh/t,t is time taken by motor to raise the load into the air.

t=mgh/Pe

function[time]=timetoraise(p,e,h,m);
time=p*m*h*9.81/(p*e);

timetoraise(100, 60, 5, 100)

ans =

81.7500

save the file as timetoraise.m

Known Gravity(9.81 m/s^2) Known/input Power(p in watts) Efficiency(e as 50%=50) mass(m in kg) height(h in m) Unknown/output Time(t in sec) Assumption Other variables none Algorithm time=p*m*h*9.81/(p*e) Test case 100 50 100 5
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote