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 solutionChapter 16 Solutions
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
- 7 Create your own 3 unique problems on the First Law of Thermodynamics/Forms of Energy and Equations of State with detailed Solutions. Include diagrams as much as possiblearrow_forwardRecall the discussion on spacecraft from the chapter opener. The following problems consider a rocket launch from Earth’s surface. The force of gravity on the rocket is given by F(d)=−mk/d2, where m is the mass of the rocket, d is the distance of the rocket from the center of Earth, and k is a constant. 172. As the rocket travels away from Earth’s surface, there is a distance D where the rocket sheds some of its mass, since it no longer needs the excess fuel storage. We can write this function as F(d)=⎨(−m↓1 k / d^2) if d < D (−m↓2 k / d^2) if d ≥ D Is there a D value such that this function is continuous, assuming m1≠m2?arrow_forwardLearning Goal: To use equilibrium to calculate the plane state of stress in a rotated coordinate system. In general, the three-dimensional state of stress at a point requires six stress components to be fully described: three normal stresses and three shear stresses (Figure 1). When the external loadings are coplanar, however, the resulting internal stresses can be treated as plane stress and described using a simpler, two-dimensional analysis with just two normal stresses and one shear stress (Figure 2). The third normal stress and two other shear stresses are assumed to be zero. The normal and shear stresses for a state of stress depend on the orientation of the axes. If the stresses are given in one coordinate system (Figure 3), the equivalent stresses in a rotated coordinate system (Figure 4) can be calculated using the equations of static equilibrium. Both sets of stresses describe the same state of stress. The stresses σx′and τx′y′ can be found by considering the free-body…arrow_forward
- 2. (If relevant) A clearly labeled diagram (or diagrams) clearly pertaining to your analysis with a coordinate system and relevant labels. Final answer with appropriate units and significant figures. You can use the fprintf() command in MATLAB to format numerical results A 2-3 sentence reflection on your answer. Does it make sense? Why or why not? What are some implications?arrow_forwardEngineering Economy A company has determined the price and the monthly demand of its products are related by the equation D = √775 - p, where p is the price per unit in dollar and D, is the monthly demand. The associated fixed costs are $2,125 per month and the variable costs are $100/ unit. Use this information to answer the following: a)What is the optimal number of units that should be produced and sold each month? b) What is the maximum profit? c)Determine the value of D that represents the break-even point?arrow_forwardYou are recently promoted as the chief traffic management officer of a major city in the country. Based on recent data, you learned that one of the leading causes of road accidents is over speeding.In your desire to minimize road accidents, you went out to observe how traffic management rules are implemented on the streets. Your attention was caught by a fast - moving car that seemed to be breaking the speed limit of 100 kilometers per hour(km/hr.), and so you followed it along the highway. After a short time, the driver of the car noticed you and started to slow down. Eventually, he stopped on the side of the road. Supposed the speed of the car had been noted during this time and is modeled by the quadratic equation y = 3x² + 17x - 20, where y represents the speed of the car in km/hr. and x represents the number of minutes after you started following the car. How long did it take for the car to be under surveillance before it could finally stop on the side of the road? Did the driver…arrow_forward
- THERMODYNAMICS UPVOTE WILL BE GIVEN. PLEASE WRITE THE COMPLETE SOLUTIONS/DIAGRAMS LEGIBLY. NO LONG EXPLANATION NEEDED. USE 3 DECIMAL PLACES. BOX THE FINAL ANSWER. An airplane is cruising at an elevation of 35,000 feet from sea level. Determine the amount of gage pressure in bars needed to pressurize the airplane to simulate sea level conditions. The average atmospheric pressure on earth is mated as a function of altitude by the relation Patm = 101.325 (1- 0.02256z)5.256, where Patm is the atmospheric pressure in kPa and z is the altitude in km with z = 0 at sea level.arrow_forwardNeed help with these Q2. Identify any zero force members. ( there can be more than one ) Member AB Member AJ Member BCBC Member BH Member BJ Member CD Member CG Member CH Member DE Member DF Member DG Member EF Member FG Member GH Member GJ q3. You are asked to find the forces in members GHGH and CGCG using the Method of Sections. Which members should you make a cut through? Member AB Member AJ Member BC Member BH Member BJ Member CD Member CG Member CH Member DE Member DF Member DG Member EF Member FG Member GH Member GJ Q4. Having made a cut through the members in the previous part, you next want to solve for Member GH. Which of the following equilibrium equations is the most efficient? (i.e. which one will allow you to solve for the required member in one equation?) a. ΣFx=0. b. ΣMC=0. c. ΣMH=0. d. ΣFy=0 e ΣMD=0arrow_forwardYou have 18 minutes for a solution. Please upload in 17 minutes, even if the solution is not finished, no matter where you solve it.arrow_forward
- The title of our study is "Design and Fabrication of an Agricultural Spraying Attachment for an Autonomous Rover" we need help in the machine design part of our study, specifically Pump selection, battery selection, and center of gravity computation I already sent you the image of the rover Rover weight capacity 35 kilo grams (payload) Rover measurements: Wheel distance - 14.5 inches and 8.5 inches Rover platform size (width & length) 14.4 inches x 10.4 inches Height- 15.8 inches. Water tank selection More or less 25 liters *For tank selection we need to justify the size with the center of gravity, proving that is the maximum dimension or liters of the tank because the center of gravity will be higher making the rover prone to toppling Pump selection *Our sprayer design has two nozzles which splits using a tee splitter, we need to find the size of the pump to obtain the same discharge rate of a normal sprayer. A normal sprayer has a 12V pump and a pressure from 0.2 to 0.45 mpa…arrow_forwardPlease anwer the quesiton correctly and take your time, i read the guideline and honor code and im allowed to have Submit only one question at a time under the appropriate subject. A question can have up to 3 subparts (i.e. part a, b, and c). Here is the link that says from bartleby if you odnt belive me: https://bartleby.zendesk.com/hc/en-us/articles/360017462394-How-can-I-ensure-my-questions-get-answered-as-quickly-as-possible-So answer all the questions thanks.Calculate the frequency of a radio wave.1. A) radio wave has a wavelength of 21 cm. What is the wavelength in meters? (Give your answer in meters rounded to exactly 2 decimal places).B)Use your previous answer and the speed of light (c = 3 · 108 m/s) to calculate the frequency of a 21 cm radio wave. Give your answer in Hz, no decimal places.C)Use your previous answer to calculate the frequency of a 21 cm radio wave. This time, give your answer in GHz, rounded to exactly one decimal place. (Note that 1 GHz = 109 Hz).arrow_forwardAs an automotive engineer, your role is to design a petrol engine for SUV car with fourstroke and four cylinder petrol engine. Describe the performance criteria need to beconsidered in detailing out the possible outcome of your spark ignition engine? Write asimple essay and an example of your design calculation to describe the prototype ofyour engine.arrow_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