Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

matlab! MATLAB problem, please i need help coding it. matlab! ENGI 1331: Mastery Assignment #4 Fall 2017 Problem #3 Background: The relationship between time (variable

matlab! MATLAB problem, please i need help coding it. image text in transcribed

image text in transcribed

image text in transcribed

matlab!

ENGI 1331: Mastery Assignment #4 Fall 2017 Problem #3 Background: The relationship between time (variable t, in units of seconds) and the temperature of a cooling liquid (variable T, in units of degrees Celsius) is dependent upon the initial temperature of the liquid (variable To, in units of degrees Celsius), the ambient temperature of the surroundings (variable TA in units of degrees Celsius), and the cooling constant (variable k, in units of hertz).This relationship is given by the following equation: T=T1+(To-T1) * e-kt You have been tasked with writing a program that can determine the temperature of a fluid at a specific time. Beg in your code by initializing the two following variables, then continue executing the steps: Kvalues =[0.01:003:0.02]; Fluids = {'ABC', 'FGH','MNO'); NOTE: Your code should be flexible to handle kvalues and Fluids of different lengths. Inputs: 1. 2. 3. Provide the user with a menu selection where they can pick between fluids ABC, FGH, and MNO. The names of the fluids should be pulled from the variable Fluids, and should not be hardcoded Have the user inp ut both the initial fluid temperature and the ambient temperature (both in units of degrees Celsius) as two separate input statements. In units of minutes, have the user input the specific time at when they wish to calculate the temperature of the fluid Data Validation 4. If the user does not make a selection, output a warming to the command window and repeat the menu until the 5. If the user inputs an ambient temperature that is greater than the initial temperature, have the user input different 6. If the user inputs an ambient temperature that is less than 5C, or greater than 35C, have the user input a new 7. If the user inputs a time is a negative number, ask the user to enter a new time. If after the 3 time, a negative user makes a selection. values. If after the 3hd time an invalid pair is entered by the user, terminate the program and inform the user value for the ambient temperature only. If after the 3d time the user inputs an incorrect values, terminate the program and inform the user. number is entered, output a warningto the command window in formingthe user that the value is assumed to be the absolute value of the last number provided

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions