
Concept explainers
Write a program to calculate a temperature provided by the user into a different unit system. The program should ask the user to enter a temperature in units of degrees Fahrenheit. The program should then ask the user to choose a unit system they would like to have the value converted into, using a menu. The menu should display the choices “deg C”, “K”, and “deg R”, which should be stored in a cell array. The program should display the output in a sentence formatted as shown below. The actual values in the sentence should change appropriately as the user input and menu selection changes.
Sample Input / Output
You are to write this program twice, using two different methods as indicated below. Note that in neither case may you use conditional statements, even if you know how to do so.
- a. The program should first convert the temperature in degrees Fahrenheit to all three other unit systems (degrees Celsius, kelvin, degrees Rankine) and store the results in a
vector . It should then generate the report. - b. The program should perform ONLY the specified calculation, not all three, then generate the report. Hint: Store the necessary conversion factors in a matrix.

Trending nowThis is a popular solution!
Learn your wayIncludes step-by-step video

Chapter 17 Solutions
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
Additional Engineering Textbook Solutions
Elementary Surveying: An Introduction To Geomatics (15th Edition)
Java: An Introduction to Problem Solving and Programming (8th Edition)
HEAT+MASS TRANSFER:FUND.+APPL.
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Starting Out With Visual Basic (8th Edition)
- Answer this question asap show all of the workarrow_forwardStress, ksi 220 200 180 160 140 120 100 80 Question P: Data for an extension spring is shown in the table below. Use only this table for this question! Also shown is an abridged version of Table 18-2 and figure 18 Spring Material ASTM A228 Music wire Max Operating Load: Fo= 21 Type of Service = Average Estimated Wahl Factor: K = 1.200 Required Mean Diameter: D = 0.550 Design Stress in Wire: Td 90,000 psi TABLE 18-2 Wire Gages and Diameters for Springs Gage no. U.S. steel wire gage¹ (in) Music wire gage² (in) 0.6 26 0.0181 0.063 27 0.0173 0.067 28 00162 0.071 29 00150 0.075 30 00140 0.080 31 0.0132 0.085 22 0.0128 0.090 33 00118 0.095 34 0.0104 0.100 35 0.0095 0.106 36 0.0090 Wire diameter, mm Compression and extension springs, Music Wire, ASTM A228 O'S 5.4 5.8 6.2 0.112 1515 1380 Light service 1240 1100 Average service 965 Severe service 825 690 Wire diameter, in OLIO 0.190 0120 0.250 550 Stress, MPa FIGURE 18-9 Design shear stresses for ASTM A228 steel wire (music wire) What is the…arrow_forwardEndurance limit,, (psi) 100 000 80 000 60 000 Ground 40 000 20 000 As-rolled 0 50 60 70 80 90 100 110 120 Polished Machined or cold drawn As-forged 130 140 150 160 17 Tensile strength, s, (ksi) (a) U.S. customary units What is the minimum shaft diameter of D3 in inches? (Type in a three-decimal number). Note: We want to know the diameter D3, of the shaft, not the diameter at the base of a ring groove, profile keyseat or any other geometric feature on the shaft. Answer: x (3.008)arrow_forward
- Question G: The machined shaft shown in the diagram below has the following components on it: (A) Sheave (B) Bearing (C) Sprocket (D) Bearing (E) Spur Gear Diameter D3 is located underneath Bearing B. Only the sheave at point A, the sprocket at point C and the spur gear at point E are held in place with rings. Diameter Dy is located underneath Bearing B. Only the sheave at point A, the sprocket at point C and the spur gear at point E are held in place with rings. PPENDIX 3 Design Properties of Carbon and Alloy Steels Material designation (SAE number) Condition Tensile strength Yield strength (ksi) (MPa) (MPa) Bearing Bearing 1020 Hot-rolled 55 379 207 V-belt sheave 6.00 in PD DD 1020 Cold-drawn 61 420 352 Spur gear Chain sprocket 10.00 in PD 20 FD 12.00 in PD 1020 Annealed 60 414 296 (a) Side view of shaft 10401 Hot-rolled 72 496 290 Belt drive to conveyor 1040 Cold-drawn 80 552 1040 OQT 1300 88 607 1040 OQT 400 113 779 1050 Hot-rolled 90 620 leput from water turbine Gear E drives Q to…arrow_forward220 200 180 160 140 120 Stress, ksi 100 80 Question O: Data for an extension spring is shown in the table below. Use only this table for this question! Also shown is an abridged version of Table 18-2 and figure 18. Spring Material ASTM A228 Music wire Max Operating Load: F₁ = 57 Type of Service Average Estimated Wahl Factor: K= 1.200 Required Mean Diameter: D = 0.850 Design Stress in Wire: 1 = 115,000 psi TABLE 18-2 Wire Gages and Diameters for Springs 0.0181 27 0.0175 Gage no. U.S. steel wire gage (in) Music wire gage² (in) 0063 0.067 28 0.0162 0.071 29 0.0150 0.075 30 00140 0.080 31 0.0132 0085 32 00128 0.090 33 00118 0096 34 0.0104 0.100 35 0.0095 36 0.0090 1.8 Wire diameter, mm 0.106 0.112 5.4 5.8 6.2 1515 Compression and extension springs, Music Wire, ASTM A228. 1380 Light service 1240 Average service 1100 965 Severe service 825 690 P10100 OSO 0 0.150 0.170 061'0 0.210 0.230 F 0.250 550 Stress, MPa Wire diameter, in FIGURE 18-9 Design shear stresses for ASTM A228 steel wire (music…arrow_forwardPlease see attachment.arrow_forward
- Please see attachment.arrow_forwardP3: A differential band brake shown in the figure below uses a woven lining having a design value of the friction coefficient f=0.20. Dimensions are b=80 mm, r=250 mm, c=700 mm, a = 150 mm, s=35 mm, and 0=240°. Find 1) the brake torque if the maximum lining pressure is 0.5 MPa, 2) the corresponding actuating force F, and 3) the values of dimensions that would cause the brake to be self-locking. (25%) -240° F-250 mm Band width, b-80 mm Rotation Friction coefficient, -0.20 Maximum lining pressure, P-0.5 MPa 3-35 mm la-150 mm e-700 mm-arrow_forwardInclude a grapharrow_forward
- A particular furnace is shaped like a section of a cone. The top surface of the furnace is uniformly heated by a resistance heater. During operation, the top surface is measured to be 800 K and the power supplied to the resistance heater is 1750 W/m². The sidewall of the furnace is perfectly insulated with ε = 0.2. If the emissivity of the top and bottom surfaces are ε = 0.5 and > = 0.7, respectively, determine the temperatures of the sidewall and the bottom surface of the furnace. A1 D₂ = 20 mm A₂ L = 50 mm D₁ = 40 mmarrow_forwardYou are designing an industrial furnace to keep pieces of sheet metal at a fixed temperature. You decide a long, hemispherical furnace will be the best choice. The hemispherical portion is built from insulating brick to reflect the radiation from a ceramic plate onto the sheet metal and the ceramic plate is heated by gas burners from below. An insulating wall prevents direct transmission of radiative energy from the ceramic plate to the sheet metal. The radius of the hemisphere is 1 m and the rest of the system properties can be found in the table below. You may neglect convection during your analysis. Temperature Emissivity Ceramic Plate 1600 K ε = 0.85 Sheet Metal 500 K Insulating Brick unknown € = 1 ε = 0.6 a) Calculate the required heat input, in W, per unit length of the furnace (out of the page) that must be supplied by the gas burners to maintain the specified temperatures. b) What is the temperature of the insulating brick surface? Metal products (2) T₂ = 500 K, &- 1 -…arrow_forwardDerive common expressions for the radiative heat transfer rate between two surfaces below. Aσ (T-T) a) Infinite parallel plates: A1, T1 E1 912 = 1 1 + ε1 E2 1 A2, T2, E2 b) Infinitely long concentric cylinders: 912 c) Concentric spheres: 912 182 A₁σ (T-T) 1-82 (11) = 1 + ε1 E2 = A₁σ (T-T) 1 1-82 રંતુ + E2 2arrow_forward
- Principles of Heat Transfer (Activate Learning wi...Mechanical EngineeringISBN:9781305387102Author:Kreith, Frank; Manglik, Raj M.Publisher:Cengage LearningPrecision Machining Technology (MindTap Course Li...Mechanical EngineeringISBN:9781285444543Author:Peter J. Hoffman, Eric S. Hopewell, Brian JanesPublisher:Cengage LearningInternational Edition---engineering Mechanics: St...Mechanical EngineeringISBN:9781305501607Author:Andrew Pytel And Jaan KiusalaasPublisher:CENGAGE L
- Refrigeration and Air Conditioning Technology (Mi...Mechanical EngineeringISBN:9781305578296Author:John Tomczyk, Eugene Silberstein, Bill Whitman, Bill JohnsonPublisher:Cengage LearningAutomotive Technology: A Systems Approach (MindTa...Mechanical EngineeringISBN:9781133612315Author:Jack Erjavec, Rob ThompsonPublisher:Cengage LearningWelding: Principles and Applications (MindTap Cou...Mechanical EngineeringISBN:9781305494695Author:Larry JeffusPublisher:Cengage Learning





