Question: % Variables % Inputs % Total pressure [ atm ] ( first input argument ) % Surface pressure [ atm ] ( second input argument

% Variables
% Inputs
% Total pressure [atm](first input argument)
% Surface pressure [atm](second input argument)
% Height [ft](third input argument)
% Outputs
% Density kgm???3
% Function
function [Rho]= Dens (P-t,P-s,H)
% Convert pressure to pascals
P_t_Pa =P-t**101325;%1 atm =101325Pa
P_s_Pa = P_s **101325;
% Caluclate density
Rho =P-t-Pa-P-s-PaH3.28
end
Code to call your function 3
P-t=5;
P_s =3;
H=25
Rho=Dens (P_t, P_s, H);
Assessment: 0 of 1 Tests Passed (0%)
Function Check
Variable Rho has an incorrect value.
Check your calculations.
There is an issue with your function. Make sure that you used the correct function name, the calculations were correct, and the units were correct.
 % Variables % Inputs % Total pressure [atm](first input argument) %

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!