Question: Matlab help ENERGY UNIT CONVERSION (14 points x2) Write a program to convert an energy value in a unit of either ) (joule), Btu (British

Matlab help

Matlab help ENERGY UNIT CONVERSION (14 points x2) Write a program to

ENERGY UNIT CONVERSION (14 points x2) Write a program to convert an energy value in a unit of either ) (joule), Btu (British thermal unit), ft-lb (foot- pound) and cal (calorie) specified by the user to another energy unit. The program will ask the user to input: The energy quantity The current energy unit The new energy unit to convert to The program will output: The energy value in the new unit Again, the input and output energy unit will be limited to: J, Btu, ft-lb and cal Energy conversion information: 1 Btu = 1055.06 ) 1 ft-lb = 1.356 ) 1 cal = 4.184) As a practice, write your program in two versions: One use the if statements (econv if.m); and another use the switch statements (econv_switch.m)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!