5. What is the result of the following statementsP Answer:= 42 /*Answer tag is a
ID: 3918394 • Letter: 5
Question
5. What is the result of the following statementsP Answer:= 42 /*Answer tag is a DINT */ Answer:= 52 /*Answer tag is a DINT Answer:= 52 /*Answer tag is a REAL Answer: = 5 MOD 2 /* Answer tag is a DINT 6. Write a line of ST for each of the following 0 Find the square root of a number and assign the value to a tag. Find the tangent of a tag and assign it to another tag. Square a tag and assign the result to another tag 7. Write an IF statement for each of the following: Temp is greater than 250. Varl is greater than or equal to Var2 Var2 is less than Varl multiplied by 6.3 If Sensor_1 is on, turn on Light_1. If Temp > 95, turn heater_1 off. If Temp is greater than 100 and Sensor_1 is true, turn Done_Light ON; othervise turn Alarm ON 1Explanation / Answer
5.) 4/2 = 2 (DINT), 5/2 = 2 (DINT), 5/2 = 2.5 (REAL), 5 mod 2 = 1(DINT)
6.) a) var b = sqrt(number);
b) var a = Math.tan(b);
c) var a = pow(b,2);
7.) a) if(temp > 250)
b) if(Var1 >= Var2)
c) if(Var2 < Var1*6.3)
d) if(Senson_1 == true){
Light_1 = true;
}
e)if(temp > 95){
heater_1 = false;
}
f) if(temp > 100 && Sensor_1 == true){
Done_Light = true;
}
else{
Alarm = true;
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.