Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please use matlab to write this code I need help determining the volume of cooling liquid with the correct units It must also match the
please use matlab to write this code I need help determining the volume of cooling liquid with the correct units
Table 3: CoolingLiquid.csv provides the data shown in the Value column. It is critical to evaluate the necessary amount of cooling liquid needed for each cooling process (depending on the materia and its mass). You will need to use Equation 1 to determine the energy needed to cool the material and the necessary mas: of the cooling liquid. Recall that density is mass divided by volume. Careful of units! Q=mcpT where Q is thermal energy [J],m is mass [g],cp is specific heat [J/(gC)], and T is the change in temperature [C]. Your job is to develop a script to determine the thermal energy in joules removed from each rod, cooling the rod from an initial temperature of 300C to a final temperature of 50C. You will then determine the required volume of cooling liquid (in gallons) to properly cool the rod. Your script will accomplish this for a user defined material with given values and for the dataset provided. Tasks: Proficiency Iime: 1 hr - 1 hr 25 min TASK 1: (1520min) Load in the provided data file CoolingLiquid.csv in Table 3. Prompt the user to enter a new material name, and prompt the user to enter the specific heat [J/(gC)] and the mass [grams] of that new rod material. Calculate - The thermal energy [joules] that must be removed from each rod to cool it from 300C to 50C - The volume of cooling liquid [gallons] needed to properly cool the rod for the new material Output the results of the thermal energy [joules] and volume of cooling liquid [gallons] to the command window. NOTE (avoid hardcoding): Your code should produce different results if the data for the cooling liquid is changed or there are changes in the user inputs. 1. Enter material name: Copper 2. Enter specific heat of the material: 0.385 3. Enter the mass of the rod material: 6000 4. Select Aluminum as the alloy's first material. 5. Select Copper as the alloy's second material. Datasets used: CoolingLiquid.csv MAl_data.mat Correct Output: Command Window Please enter a new material: Copper Please enter the specific heat for the new material [J/(g degc) ]: 0.385 Please enter the mass of the new material: 6000 The thermal energy removed from the material during cooling is 577500 [J], which requires at least 2.02 gallong of glycerol It must also match the test case as well and please avoid hard coding
thanks in advance
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started