Create a written algorithm and flowchart to determine if a material is in the solid, liquid, or gaseous state given the temperature. The algorithm should acquire the name of the material, its freezing and boiling temperatures, and the actual temperature of the material from the user.
Write an algorithm that determines the state of a material at a given temperature for user specified material, freezing point and boiling point.
Explanation of Solution
Known:
- If the temperature is below freezing point, the material is in solid state.
- If the temperature is above the boiling point, the material is in gaseous state.
Unknown:
- The type of the material.
- The freezing point of the material.
- The boiling point of the material.
Assumptions:
- Assume that the interpreter of the algorithm will input the type of material, freezing point of the material, boiling point of the material and the temperature of the material.
Algorithm:
- Input the type of material, the numerical value of freezing point of the material, boiling point of the material and the temperature of the material.
- Ask if the temperature of the material is less than the freezing point.
-
- a. If yes, state of the material is Solid.
- b. If no, ask if the temperature of the material is greater than the boiling point.
- 1. If yes, the state of the material is Gas.
- 2. If no, the state of the material is Liquid.
- Display the type of the material and the state of the material at the given temperature.
- End the process.
Rules for creating a proper linear flowchart are as follows.
- The flowchart contains START rectangle to mention the beginning of a process.
- All the actions must be mentioned within rectangles.
- Connection between the blocks must be mentioned with a one-directional arrow.
- The flowchart contains END rectangle to mention the end of a process.
Flowchart to determine the state of a material is given in Figure 1.
Conclusion:
Hence, the algorithm and the flowchart that determines the state of a material at a given temperature are created.
Want to see more full solutions like this?
Chapter 18 Solutions
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
- 3. The Figure shows the isometric view of a machine component along with the view from above and the view from the left, draw the full sectional view from the front. 56 Draw here the full sectional view 90 40 (a) 32 56 B 32arrow_forwardHow do I solve this task?A spring scale should have a capacity for 10kg. The tension spring is mounted with a weight that is a preload in the spring. Choose a spring with a maximum load of 50mm. What distance should the kg weight be and what the preload weight should weigh.F=Fo+c·fFo= preload weight (N)F=10·9.81 → F=98.1 N Trying with a spring 3823f=F- Fo /c → 98.1-9/1.090=81.74 mmarrow_forwardA gearbox consists of four gears. Dimension the gearbox for a gear ratio of 18:1. The gear ratio should be as even as possible. In the first stage, module 4, in the second stage module 5. All shafts are in the same plane. Calculate the distance between Da. Da=45mm Db=40mmu=ωin/ ωout= nin/ nout= dout/ din= Mout/ Min= Zout/ Zind=m·z)da=m·(z+2) (top diameters)df=m·(z-2.5) (bottom diameters)tooth limits z1 z2 13 13-16 14 14-26 15 15-45 16 16-101 17 17-1314 18 18- .......arrow_forward
- Question 2 a) Construct the signal flow graph (SFG) for the block diagram shown in Fig. Q2 (a) and C($) obtain the gain using Mason's formula. R(s) 04 -R() 01 0₂ 0 Hi h Sinded States Text Predictions On Accessibility Unavailable Fig. Q2 (a) H₂ CAarrow_forwardHow do you solve for the force acting on member BC?arrow_forwardA brake jaw, A is pressed against the drum, B. Calculate the brake arm, X(m₂).F= 250NBraking torque = 30Nmµ=0.35Around point A:Fm₂-Nm₁-µm₃=0N=Fm₂/m1+ µm₃MBrake =µ·D/2= µ·D/2MBrake =Fµm₂D/2(m₁- µm₃)(X)m₂=FµD/Mbrake·2(m1- µm₃)(X)m₂=250·0.35.0.3/30·2(0.250-0.35·0.06)=?I don’t get some likely value?arrow_forward
- Q7 (12 Marks) For the system shown in Fig.3: 1- Draw the overall block diagram. 2- Determine the transfer function (Pc(s)/E(s)). Orifice→ Ps Actuating error signs) Flapper Pb+Pb. Nozzle. A X+X+ Ri A I R2 ㅍ think +y Pc+PCarrow_forwardFigures 4: show a pneumatic controller. The pneumatic relay has the characteristic that pc=K pb , where K>0. What kind of control action does this controller produce? a. Derive the mathematical model for the system b. Derive the transfer function Pc(s)/E(s) -Solve step by step Orifice F+Ph R₁ Actuating error signal Flapper Nozzle. x+x F+Pe thinkarrow_forwardThe equation of the turning moment diagram for the three crank engine and the equation of the moment required by a machine connected to this engine are given below: Engine Torque Machine Torque T=10000-500 sin (40) T=10000+2000 sin (20) N.m N.m where radians is the crank angle from inner dead center and the mean engine speed is 300 rpm. It is required to select a proper flywheel (find the moment of inertia of the flywheel in kgm2) and then calculate the power of the engine if the total percentage fluctuation of speed of the flywheel is ±1% of the mean speed. Calculate the angular acceleration of the flywheel when angle is 45°.arrow_forward
- Design a cotter joint to support a axial load of 100kN . Carbon steel material selected whichhas Tensile stress = 100MPa Compressive stress =150MPa; Shear stress =60MPaarrow_forwardDesign a cotter joint to support a axial load of 100kN . Carbon steel material selected whichhas Tensile stress = 100MPa Compressive stress =150MPa; Shear stress =60MPaarrow_forwardI need all the derivations from Bohr's postulates in handwritten formarrow_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