subject

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)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:40
Develop a function to create a document in the mongodb database “city” in the collection “inspections.” be sure it can handle error conditions gracefully. a. input -> argument to function will be set of key/value pairs in the data type acceptable to the mongodb driver insert api call b. return -> true if successful insert else false (require a screenshot)
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Choose the answers that best complete each sentence. on average,are more expensive than other kinds of postsecondary schools. the cost of room and board includes. to save money, some students attend auniversity in their home state.
Answers: 2
question
Computers and Technology, 23.06.2019 18:00
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
In which view can you see speaker notes?
Answers: 1
You know the right answer?
You have been assigned to a new project at work. The previous engineer has created the following fil...
Questions
Questions on the website: 13722363