Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

for matlab 7. In a factory, various metal rods are forged and then plunged into a liquid to quickly cool the metal. The types of

image text in transcribed

image text in transcribed

for matlab

7. In a factory, various metal rods are forged and then plunged into a liquid to quickly cool the metal. The types of metals produced, as well as their specific heat capacity, are listed in Table Table A Specific heat information for various metals Material Aluminum Cadmiumm Specific Heat [J/(kg K)] 897 231 Material Iron Tungsten Specific Heat [J/(kg K)] 450 134 The metal rods may vary in mass and production (initial) temperature. The ideal process lowers the temperature of the material to 50 degrees Celsius [C] The liquid used to cool the metal is glycerol. The properties of glycerol are listed below Initially, the glycerol is at room temperature, assumed to be 75 degrees Fahrenheit [FI Write a program containing the following elements Enter the material names and specific heat information from Table A into a cell array .Ask the user to select a material from a menu . Ask the user to enter a 1 2 vector of the mass in grams [g] and the initial temperature in degrees Celsius [C] of the material chosen from the menu. In the prompt to the user, state the material name. For example Enter mass Igl and temperature [deg C] of Aluminum as m T] Call the function described below, sending any necessary information to the function as required by the solution. The function will return a single vector, described below Write a formatted output statement to the user, similar to the final output shown below The numerical formats and spacing should match exactly as shown e Write a function to calculate the thermal energy in joules [J] that must be removed from the material and determine the volume of fluid needed in gallons [gall to cool the rod to 50 C uming both the fluid and the rod are at this temperature at the end of the cooling proce Table B Properties of glycerol Specific heat (Cp) 2400 J/(kg K Specific gravity (SG) 1.261 - erol given in Table B should be entered into the function, not the All properties of glyc program . . Perform any necess ary calculations and/ or conversions. Be sure to track your units! The function should return a I X 2 vector to the program, with the thermal energy required in joules (J] in the first element, and the volume required in gallons Igal) in the second element

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions