
Concept explainers
You have been assigned to a new project at work. The previous engineer had created the following files, which your new boss claims do not work. Debug the program to correct all errors.
These files must be corrected to eliminate any syntax, runtime, formula coding, and formula derivation errors. You may assume that the header comments at the top of the program and all comments throughout the program are correct.
% Problem Statement: A cylindrical tank filled to
% a height of 25 feet with tribromoethylene has been
% pressurized to 3 atmospheres (P_s = 3 atm).
% The total pressure (P_t) at the bottom of the tank is
% 5 atmospheres.
% This program will determine the density of the
% tribromoethylene in units of kilograms per cubic meter.
% Inputs :
% Height H 25 ft
% Surface Pressure P_s 3 atm
% Total Pressure P_t 5 atm
% Outputs:
% Density rho ? kg/m^3
% Assumptions:
% Gravity g 9.8 m/s^2
% Define input variables
25 ft H;
3 atm P_s;
5 atm P_t;
9.8 m/s^2 = g;
% Convert total and surface pressure from atm to Pa
Psurf = P*1,211,458;
P_t = P_t*14.7;
% Convert height from ft to m
H*3.28;
% Calculate density, knowing the calculation of total
% pressure using equation P_t P_s + (rho) (g) (H)
P_t = P_s + (rho) (g) (H)

Want to see the full answer?
Check out a sample textbook solution
Chapter 16 Solutions
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
- A 4-m × 5-m × 7-m room is heated by the radiator of a steam-heating system. The steam radiator transfers heat at a rate of 10,000 kJ/h, and a 100-W fan is used to distribute the warm air in the room. The rate of heat loss from the room is estimated to be about 5000 kJ/h. If the initial temperature of the room air is 10°C, determine how long it will take for the air temperature to rise to 25°C. Assume constant specific heats at room temperature. The gas constant of air is R = 0.287 kPa·m3/kg·K (Table A-1). Also, cv = 0.718 kJ/kg·K for air at room temperature (Table A-2). Steam enters the radiator system through an inlet outside the room and leaves the system through an outlet on the same side of the room. The fan is labeled as W sub p w. The heat is given off by the whole system consisting of room, radiator and fan at the rate of 5000 kilojoules per hour. It will take 831 Numeric ResponseEdit Unavailable. 831 incorrect.s for the air temperature to rise to 25°C.arrow_forwardA piston–cylinder device contains 50 kg of water at 250 kPa and 25°C. The cross-sectional area of the piston is 0.1 m2. Heat is now transferred to the water, causing part of it to evaporate and expand. When the volume reaches 0.26 m3, the piston reaches a linear spring whose spring constant is 100 kN/m. More heat is transferred to the water until the piston rises 20 cm more. NOTE: This is a multi-part question. Once an answer is submitted, you will be unable to return to this part. Determine the final pressure and temperature. The final pressure is kPa. The final temperature is ºC. Find the work done during the processarrow_forwardA garden hose attached with a nozzle is used to fill a 20-gal bucket. The inner diameter of the hose is 1 in and it reduces to 0.53 in at the nozzle exit. The average velocity in the hose is 8 ft/s and the density of water is 62.4 lbm/ft3. NOTE: This is a multi-part question. Once an answer is submitted, you will be unable to return to this part. Determine the volume and mass flow rates of water through the hose. The volume flow rate of water through the hose is ft3/s. The mass flow rate of water through the hose is lbm/s. The change in time? What is the exit velocity?arrow_forward
- A 23-ft3 rigid tank initially contains saturated refrigerant-134a vapor at 160 psia. As a result of heat transfer from the refrigerant, the pressure drops to 50 psia. NOTE: This is a multi-part question. Once an answer is submitted, you will be unable to return to this part. Determine the final temperature. Use data from refrigerant tables. The final temperature is ºF.arrow_forwardA 23-ft3 rigid tank initially contains saturated refrigerant-134a vapor at 160 psia. As a result of heat transfer from the refrigerant, the pressure drops to 50 psia. NOTE: This is a multi-part question. Once an answer is submitted, you will be unable to return to this part. Determine the heat transfer. The heat transfer is Btu.arrow_forwardThe shaft shown in the figure below is subjected to axial loads as illustrated. The diameters of segments AB, BC, and CD are 20mm, 25mm, and 15mm, respectively. If the modulus of elasticity of the material is 610 MPa. Determine the change of A to D lengtharrow_forward
- Determine the final pressure and temperature. The final pressure is kPa. The final temperature is ºC.arrow_forwardAir enters the 1-m2 inlet of an aircraft engine at 100 kPa and 20°C with a velocity of 184 m/s. Determine the volume flow rate, in m3/s, at the engine’s inlet and the mass flow rate, in kg/s, at the engine’s exit. The gas constant of air is R = 0.287 kPa·m3/kg·K. The volume flow rate at the engine’s inlet m3/s. The mass flow rate at the engine’s exit is kg/s.arrow_forwardThe ventilating fan of the bathroom of a building has a volume flow rate of 33 L/s and runs continuously. If the density of air inside is 1.20 kg/m3, determine the mass of air vented out in one day. The mass of air is kg.arrow_forward
- A steady-flow compressor is used to compress helium from 15 psia and 70°F at the inlet to 200 psia and 600°F at the outlet. The outlet area and velocity are 0.01 ft2 and 100 ft/s, respectively, and the inlet velocity is 53 ft/s. Determine the mass flow rate and the inlet area. The gas constant of helium is R = 2.6809 psia·ft3/lbm·R. The mass flow rate is lbm/s. The inlet area is ft2.arrow_forward1. The maximum and minimum stresses as well as the shear stress seen subjected the piece in plane A-A. Assume it is a cylinder with a diameter of 12.7mm 2. Draw the Mohr circle for the stress state using software. 3. Selection of the material for the prosthesis, which must be analyzed from the point of safety and cost view.arrow_forwardMarrow_forward
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY





