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

1. Show how to free up the name of a single variable which has been already assi

ID: 662303 • Letter: 1

Question

1. Show how to free up the name of a single variable which has been already assigned a definition. Assign any random value between 0 and 10 to k. Clear the value stored in k with an appropriate command. Then verify that k has been cleared of meaning. 2b. Assign to the variable d. the result obtained by substituting h into k for the symbol y. Show all inputs and results. Create a new input line and find the value of k and h when y = 1/8. 3. Assign to the variable f, the expression d, from the previous question, multiplied out to see all the terms of the expression. Show all inputs and results. 4. Assign to the variable u, the expression f, from the previous question, reformed into an equivalent, simpler expression. Show all inputs and results. Comment on your result.

Explanation / Answer

1) k: = rand() % 10 + 1;

k:=0;

2) a) k:=tan(sqrt(14-2*y^2)); h:=(7-4*y^3)^4

2) b) y:= (7-h^(1/4) / -4)^(1/3)

putting y in k,

d: tan(sqrt(14-2*((7-h^(1/4) / -4)^(1/3))^2))

when y= 1/8

k = 0.67811484283

h = 2390.29918099

3) f:= tan(sqrt(14-2*((7-h^(1/4) / -4)^(1/3))^2))

4) u:= tan(sqrt(14-2*((7-h^(1/4) / -4)^(1/3))^2))