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

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, BardiFan
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
image
Engineering, 04.07.2019 18:10, ashleybaber4966
If a particle moves along a path such that r : (3 sin t) m and ? : 2t rad, where t is in seconds. what is the particle's acceleration in m/s in 4 seconds? a)- 16.43 b)- 16.29 c)- 15.21 d)- 13.79
Answers: 1
image
Engineering, 04.07.2019 18:10, heidiburgos1own6c0
Fluids at rest possess no flow energy. a)- true b)- false
Answers: 3
image
Engineering, 04.07.2019 18:10, xboxdude06
Slip occurs via two partial dislocations because of (a) the shorter path of the partial dislocation lines; (b) the lower energy state through partial dislocations; (c) the charge balance.
Answers: 1
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 in other subjects:

Konu
Social Studies, 18.08.2019 09:10
Konu
Mathematics, 18.08.2019 09:10