Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(c) The time-temperature curve used in fire-resistance tests to assess the fire

ID: 3837998 • Letter: #

Question

(c) The time-temperature curve used in fire-resistance tests to assess the fire performance of structural elements, varies according to the test specifications used In the ISO 834 specification the temperature T (in degrees centigrade) is defined by: T 345 log10(8t 1)+ To where t is the time in minutes, and To is the ambient temperature in degrees centigrade. The ASTM E119 curve is defined as follows for T (also in degrees centigrade 3.79553V 750 1 e where t is the time in hours, and To is the ambient temperature in degrees centigrade. Write a function that asks the user to select the specification they prefer, and then input all required values in their correct units, taking into account the specification selected. The temperature Tis calculated and then displayed from code within the function, and as part of a readily understandable statement in English. ANSWER

Explanation / Answer

disp (“Choose your specification: 1. ISO 834 specification 2. ASTM E119 specification “)

x= input(“Enter your specification”)

select x

case ‘1’

t = input(‘Enter time in minutes “)

T0 = input(“Enter ambient temperature in degree Celsius ”)

Isospec(t, T0)

disp(T, ‘Temperature T= ’)

case ‘2’

th = input(‘Enter time in hours “)

T0 = input(“Enter ambient temperature in degree Celsius ”)

Astmspec(th, T0)

disp(T, ‘Temperature T= ’)

else

disp(‘Sorry! Wrong Specification’)

end

function[T] = Isospec(t, T0)

T = (345 * ln((8*t) + 1)) + T0

return T

endfunction

function[T] = ASTMspec(th, T0)

e=2.71828;

T = (750 *(1- e^(-3.79553*sqrt(th)) + (170.41* sqrt(th)) + T0

return T

endfunction