Engineers use both English and SI (Système International d’Unités) units on a regular basis. Some fields use primarily one or the other, but many combine the two systems. For example, the rate of energy input to a steam power plant from burning fossil fuels is usually measured in Btu/hour. However, the electricity produced by the same plant is usually measured in joules/s (watts). Automobile engines, by contrast, are often rated in horsepower or in ft lbf/s. Here are some conversion factors relating these different power measurements: a) Generate a table of conversions from kW to hp. The table should start at 0 kW and end at 15 kW. Use the input function to let the user define the increment between table entries. Use disp and fprintf to create a table with a title, column headings, and appropriate spacing. The output should look like: kW hP 0.0 0.00 2.5 3.35 5.0. 6.70 7.5 10.06 10.0 13.41 12.5 16.76 15.0 20.11 b) Generate a table of conversions from ft lbf/s to Btu/h. The table should start at 0 ft lbf/s but let the user define the increment between table entries and the final table value. Use disp and fprintf to create a table with a title, column headings, and appropriate spacing. The output should look like: ft lbf/sec Btu/hr 0 0.00 10 2.16 20 4.32 30 6.48 40 8.65 50 10.81 Generate a table of conversions from the euros to dollars. Start the euro column at 1 euro and increment by 2 euros. Print 30 lines in the table. On Monday, August 1st 2016, the conversion from Euro to Dollars was: 1 Euro = 1.11696 US Dollar 1 US Dollar (USD) = 0.89449 Euro (EUR) The output should look like: Euros Dollars 1 1.12 3 3.35 5 5.58 7 7.82 9 10.05 11 12.29 13 14.52 15 16.75 17 18.99 19 21.22 21 23.46 23 25.69 25 27.92 27 30.16 29 32.39 31 34.63 33 36.86 35 39.09 37 41.33 39 43.56 41 45.80 43 48.03 45 50.26 47 52.50 49 54.73 51 56.96 53 59.20 55 61.43 57 63.67 59 65.90 Using MATLAB
- Engineers use both English and SI (Système International d’Unités) units on a regular basis. Some fields use primarily one or the other, but many combine the two systems. For example, the rate of energy input to a steam power plant from burning fossil fuels is usually measured in Btu/hour. However, the electricity produced by the same plant is usually measured in joules/s (watts). Automobile engines, by contrast, are often rated in horsepower or in ft lbf/s. Here are some conversion factors relating these different power measurements:
- a) Generate a table of conversions from kW to hp. The table should start at 0 kW and end at 15 kW.
Use the input function to let the user define the increment between table entries. Use disp and
fprintf to create a table with a title, column headings, and appropriate spacing. The output should look like:
kW hP
0.0 0.00
2.5 3.35
5.0. 6.70
7.5 10.06
10.0 13.41
12.5 16.76
15.0 20.11
- b) Generate a table of conversions from ft lbf/s to Btu/h. The table should start at 0 ft lbf/s but let the
user define the increment between table entries and the final table value. Use disp and fprintf to
create a table with a title, column headings, and appropriate spacing. The output should look like:
ft lbf/sec Btu/hr
0 0.00
10 2.16
20 4.32
30 6.48
40 8.65
50 10.81
- Generate a table of conversions from the euros to dollars. Start the euro column at 1 euro and
increment by 2 euros. Print 30 lines in the table. On Monday, August 1st 2016, the conversion from Euro to Dollars was:
1 Euro = 1.11696 US Dollar
1 US Dollar (USD) = 0.89449 Euro (EUR)
The output should look like:
Euros Dollars
1 1.12
3 3.35
5 5.58
7 7.82
9 10.05
11 12.29
13 14.52
15 16.75
17 18.99
19 21.22
21 23.46
23 25.69
25 27.92
27 30.16
29 32.39
31 34.63
33 36.86
35 39.09
37 41.33
39 43.56
41 45.80
43 48.03
45 50.26
47 52.50
49 54.73
51 56.96
53 59.20
55 61.43
57 63.67
59 65.90
Using MATLAB
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images