Computers and Technology

You have been assigned to a new project at work. The previous engineer has created the following file, which your boss claims does 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/mA3
% Assumptions:
% Gravity g 9.8 m/s^2
% Define input variables
25 ft=H;
3 atm
5 atm
9.8 m/s^2 g;
% Convert total and surface pressure from atm to Pa
Psurf =P*1,211,458;
% 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)

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 01:50, rhonda45801
Free points just awnser this. what should i watch on netflix
Answers: 2
image
Computers and Technology, 24.06.2019 00:20, danielmartinez024m
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
image
Computers and Technology, 24.06.2019 13:30, iicekingmann
In the rgb model, which color is formed by combining the constituent colors? a) black b) brown c) yellow d) white e) blue
Answers: 1
image
Computers and Technology, 24.06.2019 17:00, mrsrobinson1014
What are some examples of what can be changed through options available in the font dialog box? check all that apply. font family italicizing bolding pasting drop shadow cutting character spacing special symbols
Answers: 2
Do you know the correct answer?
You have been assigned to a new project at work. The previous engineer has created the following fil...

Questions in other subjects:

Konu
Social Studies, 13.12.2021 23:10