• We need your support!

    We are currently struggling to cover the operational costs of Xtremepapers, as a result we might have to shut this website down. Please donate if we have helped you and help make a difference in other students' lives!
    Click here to Donate Now (View Announcement)

VERY URGENT! PLEASE HELP IN COMPUTING JUNE 2007 PAPER 1

Messages
73
Reaction score
2
Points
0
6 D=1
INPUT X, E
B=E
C=E
FOR I = 1 TO (X-1)
INPUT A
IF A>B THEN B = A
ELSE IF A < C THEN C = A
END IF
END IF
D = D + 1
E = E + A
NEXT
F = E/D
OUTPUT B, C, F
END
(a) State the output values of B, C and F for the following input test data
4, 6, 3, 7, 0 [3]
(b) Give three other different sets of test data, explaining what condition each is meant to test.

HOW TO GET THE ANSWER
 
Messages
6
Reaction score
0
Points
0
(a)7,0,4

(b) use of
4,6,3,7,1 : to check whether it cope with non integer
0: to check whether it can cope with 0
4,-6,3,7,1: to check whether it can deal with negative number

Hey dude really june 2007 is the tips?
 
Messages
27
Reaction score
0
Points
0
akii said:
(a)7,0,4

(b) use of
4,6,3,7,1 : to check whether it cope with non integer
0: to check whether it can cope with 0
4,-6,3,7,1: to check whether it can deal with negative number

Hey dude really june 2007 is the tips?
u cant put 0 .....it will go in infinity......u shud either write abnormal values like alphabets... whether it can cope with non numeric numbers..
 
Top