10 Input x 20 input y 30 if x y then goto 60 40 if x y then

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??

Solution

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

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 Hypothes

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site