1 2 3 4 5 6 7
v=120; n=75/100; p=1.5*746/(1000*n); t=30; rs=5; cost=p*t*rs/100; disp("the cost (in $) to run the motor is "); disp(cost);