Matlab :Engineers use both English and SI (Systeme International d’Unites) units
ID: 3865198 • Letter: M
Question
Matlab :Engineers use both English and SI (Systeme International d’Unites) 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: 1 kW = 3412.14 Btu/h = 737.56 ft lbf/s 1 hp = 550 ft lbf/s = 2544.5 Btu/h iPad F 21:57 T 3 54% Program: assign05.m Ask user to enter the minimum and maximum kilowatt values, In nested for loops, get ong random number atatime between the minimum and maximum kilowatt values and save it into the 4x3 matrix using indexing. p.334 Convert kw to btuh, hp, and ft Ibf's. You now have four 4x3 matrices. Print a conversion table as shown below for kw to btuh, hp, and ft lbf's without using a lonp. 2-Find the kilowatt values in the matrix that are within a standard deviation on either side of the overall kilowatt average in the 4x3 matrix. Use find not a loop or if. Print a conversion table as shown below for kw to btuh, hp, and ft lbf's for kilowatt values from the between kilowatt average t standard deviation using the result of the find without using a loop. Number of rows (4) and columns (3) New commands Problem Inputs: (with units as needed) rand Minimum and maximum kilowatt random number within a range, p.10 Random kilowatt values nested for loops, p.33 find, p.278-279 Problem outputs: (with units as needed) btuh standard deviation print a matrix as one column, p.124 ft lbf's other variables: (with units as needed) As needed Equations: See above. output 15 Enter the minimum Enter the maximum kM Blank line center title over columns Conversion Tabl Blank line Column headers over numbers tt lbf/s Btu/hr 100.5 343077.0 378421.6 148.7 81798.7 150961.0 59.3 32631.4 156.0 85788,0 116.3 110.1 375704.4 Each 4 x 3 natrix printed as a column, P-124 277740.4 109.2 60035.7 Adjust the field vid tha so number s right aligned. 247115.9 97.1 53416.0 3, cho? fprintf input jho Pdf 42.3 23269,6 31.5 one decimal place 20897.7 28.3 96678.3 18617.3 25.2 115.5 394232.6 116.9 398920.9 156.8 86229,8 Blank line Power conversion of kw between average+/-standard deviation column headers over nrambers Btu/hr ft lbf/s right aligned vith one decimal place 134.8 74158.7 100.5 343077.0 81798.7 110.9 378421.6 44.2 150961.0 59.3 32631.4 396877.3 156.0 85788.0 116.3 147.7 81211.4 110.1 375704-4 277740.4 109.2 247115.9 97.1 154.9 85216,4 115.5 86229.8 116.9 398920.9Explanation / Answer
public class NewMain { public static void main(String[] args) { int argslen=args.length; int argsValue[] = new int[argslen]; for (String i:args) { int d = 0; argsValue[d]=Integer.parseInt(i); System.out.print(argsValue[d]+" "); } } }