Problem 1:
Engineers use both English and SI units on a regular basis. Here are some conversions factors for various power measurements:
1 kW = 3412.14 Btu/h = 737.56 ft lbf/s
1 hp = 550 ft lbf/s = 2544.5 Btu/h
a) Write a function that will convert from kW to hp and Btu/h.
b) Generate a table of conversions from kW to hp using your function from above. Start the table at 0 kW and end it at 15 kW. Use disp or fprintf to generate headings, titles, columns, and appropriate spacing.
Problem 2:
Imagine that you have a crystal ball and can predict the percentage increases in tuition for the next 22 years. The following vector increase shows your predictions, in percent, for each year:
increase = [10, 8, 10, 16, 15, 4, 6, 7, 8, 10, 8, 12, 14, 15, 8, 7, 6, 5, 7, 8, 9, 8]
Use a for loop to determine the cost of a 4-year education, assuming that the current cost for 1 year at a state school is $5000.