
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)
- A standard Carnot heat engine cycle is executed in a closed system between the temperature limits of 320 and 1350 K, with air as the working fluid. The pressures before and after the isothermal compression are 150 and 300 kPa, respectively. Sketch the TS diagram for this cycle. If the net work output per cycle is 0.75 kJ, determine the efficiency of the cycle and the heat transfer to the air (working fluid) per cycle.arrow_forwardPROBLEM 10: A sleeve in the form of a circular tube of length L is Nut placed around a bolt and fitted between washers at each end. The nut is then turned until it is just snug. Use material properties as follows: For the sleeve, as = 21 x 106/°C and Es = 100 GPa Washer Bolt ·L· Sleeve Bolt head For the bolt, αB = 10 × 10-6/°C and EB = 200 GPa. 1. Calculate the temperature rise that is required to produce a compressive stress of 25 MPa in the sleeve.arrow_forwardThis problem illustrates that the factor of safety for a machine element depends on the particular point selected for analysis. Here you are to compute factors of safety, based upon the distortion-energy theory, for stress elements at A and B of the member shown in the figure. This bar is made of AISI 1006 cold-drawn steel and is loaded by the forces F = 1.100 kN, P = 8.00 kN, and T = 50.00 N·m. Given: Sy = 280 MPa. B -100 mm- 15-mm D. a) What is the value of the axial stress at point A? b)What is the value of the shear stress at point A? c)Determine the value of the Von Mises stress at point A. P Farrow_forward
- The three steel wires, each of cross-sectional area 0.05 in2, support the weight W. Theirunstressed lengths are 74.98 ft, 74.99 ft, and 75.00 ft. Use E = 29 x 106 psi.1. Find the stress (psi) in the longest wire if W = 1500 lb.2. Determine the stress in the shortest wire if W = 500 lb ANSWERS: 6130 psi; 6930 psiarrow_forward1: The concrete column is reinforced using four steel reinforcing rods, each having a diameter of 18 mm. Determine the stress in the concrete and the steel if the column is subjected to an axial load of 800 kN. Est = 200 GPa, Ec = 25 GPa. Complete fbd.arrow_forward5: As shown, two aluminum rods AB and BC, hinged to rigid supports, arepinned together at B to carry a vertical load P = 6000 lb. If each rod has a crosssectional area of 0.60 in2 and E = 10 x 106 psi. Use α = θ = 30⁰. Calculate the change in length (in) of rod AB and indicate if it elongates orshortens. Calculate the vertical displacement of B (in) and horizontal displacement of B (in). Complete fbd.arrow_forward
- 2: The rigid bar supports the uniform distributedload of 6 kip/ft. Determine the force in each cable if each cable has a cross-sectional area of 0.05 in^2 , and E = 31(10)^3 ksi.arrow_forwardIn (Figure 1), take m₁ = 4 kg and mB = 4.6 kg. Determine the z component of the angular momentum Ho of particle A about point O. Determine the z component of the angular momentum Ho of particle B about point O. Suppose that 5 m 8 m/s 4 m 1.5 m 4 m B MB 1 m 2 m 5 30° 6 m/s MAarrow_forwardThe two disks A and B have a mass of 4 kg and 6 kg, respectively. They collide with the initial velocities shown. The coefficient of restitution is e = 0.75. Suppose that (VA)1 = 6 m/s, (VB)₁ = 7 m/s. (Figure 1) Determine the magnitude of the velocity of A just after impact. Determine the angle between the x axis and the velocity of A just after impact, measured clockwise from the negative x axis. Determine the magnitude of the velocity of B just after impact. Determine the angle between the x axis and the velocity of B just after impact, measured clockwise from the positive x axis. (VB)1 B (VA)1 60° Line of impactarrow_forward
- A hot plane surface is maintained at 100°C, and it is exposed to air at 25°C.The combined heat transfer coefficient between the surface and the air is 25W/m²·K. (same as above). In this task, you are asked to design fins to cool asurface by attaching 3 cm-long, 0.25 cm-diameter aluminum pin fins (thermalconductivity, k = 237 W/m·K) with a center-to-center distance of 0.6 cm. (Tip:do not correct the length). Determine the rate of heat transfer from thefinned structure to the air for a 1 m x 1 m section of the plate.arrow_forwardHeat is generated uniformly in a 4 cm-diameter, 16-cm long solid bar (k=2.4 W/m-K). The temperaturesat the center and at the surface of the bar are measured to be 210 oC and 45 oC, respectively. Calculatethe rate of heat generation within the bar. Solve the relevant energy balance equation and the boundaryconditions to calculate the rate of heat generation within the bar. (6 pts)arrow_forwardA hot plane surface is maintained at 100°C, and it is exposed to air at 25°C. The combined heat transfercoefficient between the surface and the air is 25 W/m²·K. You are tasked with designing an insulatingmaterial to cover the surface in order to reduce the heat transfer rate by 90%, meaning only 10% of theheat transfer would occur compared to the situation without insulation. The available insulating materialhas a thermal conductivity of 0.093 W/m·K. Assuming that the heat transfer coefficient and the surface/airtemperatures remain constant, calculate the required thickness of the insulating material in centimeters.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





