
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)
- A tensile specimen made of hot-rolled AISI 1020 steel is loaded to point corresponding to a strain of 40%. 60 Su = 66 ksi Stress σ (ksi) S₁ = 39 ksi 40 Se = 36 ksi Hot-rolled 1020 steel 20 0 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 Strain € (%) 0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 Area ratio R 0.1 0.2 0.3 0.4 0.5 Area reduction A, What value of area ratio is applicable to this location? 0.6arrow_forwardA tensile specimen made of hot-rolled AISI 1020 steel is loaded to point corresponding to a strain of 43%. 60 Su = 66 ksi Stress σ (ksi) 20 Sy = 39 ksi Se = 36 ksi Hot-rolled 1020 steel F 0 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 Strain € (%) 0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 Area ratio R 0.1 0.2 0.3 0.4 0.5 Area reduction A, What value of area reduction is applicable to this location? 0.6arrow_forwardTable of Measurements and Results: Reading m/s Ji- a (wh Nu h Re Nu Error% (C) (°C) 2 1 Discussion: 1-Estimate the heat transfer and experimental value of the heat transfer coefficient hex with its unit and Nusselt number Nu expl 2- Find the percentage error for the value of the experimental Nusselt number. 3-Draw the graph showing a relationship between the temperatures difference (T-T) and theoretical and experimental value of Nusselt number. 4-The forced convection heat transfer coefficient of a plate depends on which of the following: a-gravity. b-velocity of fluid. e-conductivity of fluid. d-conductivity of plate material. Experiment: Internal Forced convenction Heat trovate on now through t objectives. Study the convection heat transfer of air flow through stage Calculations. Q & (T-T) Vary Re Q. heup A (TT) (T. Te-T ASPL Nep Re 117 RITT 14 ' 14arrow_forward
- If AE = 1.6 m, ED = CD = 1.9 m and F = 3.1 kN, then find the magnitude of the force acting in EB. B 30° 30° C E D ED m DC m ♥F KNarrow_forwardAssume multiple single degree of freedom systems with natural periods T ∈ [0.05, 2.00] seconds with in- crement of period dT = 0.05 seconds. Assume three cases of damping ratio: Case (A) ξ = 0%; Case (B) ξ = 2%; Case (C) ξ = 5%. The systems are initially at rest. Thus, the initial conditions are u(t = 0) = 0 and ̇u(t = 0) = 0. The systems are subjected to the base acceleration that was provided in the ElCentro.txt file (i.e., first column). For the systems in Case (A), Case (B), and Case (C) and for each natural period compute the peak acceleration, peak velocity, and peak displacement responses to the given base excitation. Please, use the Newmark method for β = 1/4 (average acceleration) to compute the responses. Create three plots with three lines in each plot. The first plot will have the peak accelerations in y-axis and the natural period of the system in x-axis. The second plot will have the peak velocities in y-axis and the natural period of the system in x-axis. The third plot…arrow_forwardDetermine the resultant stress at points P and Q.arrow_forward
- For the notched specimen with h = 0.13 m and r =11 mm, calculate the nominal stress for F=5 kN. F h F 25 mm Please submit your answer in the units of MPa.arrow_forwardA tensile specimen made of hot-rolled AISI 1020 steel is loaded to point corresponding to a strain of 49%. 60 Su = 66 ksi Stress σ (ksi) Sy = 39 ksi 400B Se = 36 ksi Hot-rolled 1020 steel 20 F 0 0 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 Strain € (%) 0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 Area ratio R 0.1 0.2 0.3 0.4 0.5 Area reduction A, What value of Su is applicable to this location? 0.6arrow_forwardA tensile specimen made of hot-rolled AISI 1020 steel is loaded to point corresponding to a strain of 40%. 60 Su = 66 ksi Stress σ (ksi) 40 20 Sy= = 39 ksi Se = 36 ksi Hot-rolled 1020 steel F | G | H 0 10 20 30 40 50 60 0 70 80 90 100 110 120 130 140 150 160 Strain € (%) ☐ T 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 Area ratio R 0.1 0.2 0.3 0.4 0.5 Area reduction A, What value of Sy is applicable to this location? 0.6arrow_forward
- A vertical .2m by .2m square plate is exposed to saturated water vapor at atmospheric pressure. If the surface temperature is 80 degrees C and the flow is laminar, estimate the loal heat transfer coefficents at the middles and at the bottom of the plate.arrow_forwardA transformer that is 10 cm long, 6.2 cm wide, and 5 cm high is to be cooled by attaching a 10 cm by 6.2 cm wide polished aluminum heat sink(emissivity=.03) to its top surface. The heat sink has seven fins, which are 5 mm high, 2mm thick, and 10 cm long. A fan blows air at 25 degrees C parallel to the passages between the fins. The heat sink is to dissipate 12W of heat, and the base temp of the ehat sink is not to exceed 60 degrees C. Assuming the fins and the base plate to be nearly isothermal and the radiation heat transfer to be negligible, determine the minimum free-stream velocity the fan needs to supply to avoid overheating. Assume the flow is laminar over the entire finned surface of the transformer.arrow_forwardI need a mechanical engineering expert to solve this question,no Ai pleasearrow_forward
- Principles of Heat Transfer (Activate Learning wi...Mechanical EngineeringISBN:9781305387102Author:Kreith, Frank; Manglik, Raj M.Publisher:Cengage Learning
