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

10 Input x 20 input y 30 if x> y then goto 60 40 if x< y then goto 70 50 if x= y

ID: 3411911 • Letter: 1

Question

10 Input x

20 input y

30 if x> y then goto 60

40 if x< y then goto 70

50 if x= y then goto 80

60 print y,x :End

70 print x,y:End

80 print x=y:End

Hypothesis T or F Negation(~p) T or F

For each conditional statement in the above program, write p clause(Hypothesis) and negation(~p). Please also write the hypothesis is true or false.

2. 40 if x<y then goto 80

Rewrite this statement without the GOTO statement for X=3 and Y=10.

3. Is this statement you wrote a true or false conditional?? Explain??

Explanation / Answer

10 INPUT X=3

20 INPUT Y=10

30 iF X>Y THEN GOTO 60

40 IF X<Y THEN GOTO 70

50 IF X=Y THEN GOTO 80

60 PRINT FALSE

70 PRINT TRUE

80 PRINT FALSE

It is a true conditional when X<Y

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote