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

segments. following 100 12] Review (5 Points) 45 && input fill out the when inpu

ID: 3836585 • Letter: S

Question

segments. following 100 12] Review (5 Points) 45 && input fill out the when input 33 the code on the code values 100 23 on 3 input-23K input input missing input- values output when missing output when output when output when output fill out the input 35 input && and 10 3 and input 33 23 program 2 -5 input program output 3+4 output input output output if if input input end end following end else else else 27 If segments. (5 Points) when val 10 If val 5 ans 3 val else if val 10 when val 81 ans 10 -val else if val

Explanation / Answer

1.

When input = 33 output = 33-10 = 23

When input = 23 output = 3 + (4*23) = 95

When input = 100 output = -5

When input = 23 output = 3 + (4*23) = 95

When input = 3 output = -5

2.

When val = 10 ans = 10-10 = 0

When val = 81 ans = sqrt(81) = 9

When val = 40 ans = sqrt(40) = 6.32

When val = 100 ans = 100

When val = 99 ans = 99