subject
Engineering, 30.10.2020 17:40 gabbie63

The specific gravity of gold is 19.3. Write a MATLAB function that will determine the length of one side of a cube of solid gold, in units of inches, provided the mass of the cube in kilograms. The output should display a sentence like the one shown below, with the length formatted to 2 decimal places. If the user types a negative number or zero for the mass of the cube, your program should display an error message and terminate. Sample Input / Output (multiple scenarios):
Enter the mass of the cube [kilograms]: -3
Error: Mass must be greater than zero grams.
Enter the mass of the cube [kilograms]: 0.4
The length of one side of the cube is 1.08 inches.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
An ideal otto cycle with air as the working fluid has a compression ratio of 8. the minimum and maximum temperatures in the cycle are 300 k and 1340 k. use constant specific heats at room temperature to determine (a) the amount of heat transferred to the air during the heat- addition kj/kg, (b) the thermal efficiency, and (c) the thermal efficiency of a carnot cycle ope limits. process, in rating between the same temperature
Answers: 2
question
Engineering, 04.07.2019 18:20
Athin walled concentric tube exchanger is used to cool engine oil from 160°c to 60°c with water that is available at 25°c acting as a coolant. the oil and water flow rates are each at 2 kg/s, and the diameter of the inner tube is 0.5 m and the corresponding value of the overall heat transfer coefficient is 250 w/m2. oc. how long must the heat exchanger be to accomplish the desired cooling? cpwater=4.187 kj/kg-candcpengine el=2.035 kj/kg·°c, oil . 120]
Answers: 1
question
Engineering, 04.07.2019 18:20
Agas mixture consists of 8 kmol of h2 and 2 kmol of n2. determine the mass of each gas and the apparent gas constant of the mixture.
Answers: 3
question
Engineering, 04.07.2019 18:20
Ahe-xe mixture containing a 0.75 mole fraction of helium is used for cooling electronics in an avionics application. at a temperature of 300 k and atmospheric pressure, calculate the mass fraction of helium and the mass density, molar concentration and molecular weight of the mixture. if the cooling capacity is 10 l, what is the mass of the coolant?
Answers: 3
You know the right answer?
The specific gravity of gold is 19.3. Write a MATLAB function that will determine the length of one...
Questions
question
English, 13.07.2019 21:00
question
Mathematics, 13.07.2019 21:00