Ask a New Question

Question

WRITE OUTPUT OF THE SEGMENT PROGRAMS BELOW
2 READ score
4 DATA 60
6 IF score <= 49 THEN
8 PRINT "you have failed"
10 ELAE IF score >= 50 AND score<=59 THEN
12 PRINT " you have C"
14 ELSE IF score >=60 and score <=69 THEN
16 PRINT "you have B"
18 ELAE
20 PRINT " you have A"
22 end
6 years ago

Answers

oobleck
well, you misspelled ELSE twice
and, only statement 14 takes effect, since 60 >= 60

again, just run your program to find errors and see results.
6 years ago
damilous
pls any website to run this online, i had problem with my system
6 years ago

Related Questions

Write a code segment that inputs an integer from cin, and then outputs a row of that many stars on c... Part A: Write a code segment that inputs an integer from cin, and then outputs a row of that many st... Write equation for each segment. show your work. (-4,-3) (-3,-3) Y = mx + b... write the output of the segment of the program below let J=0 print J let J=J+1 if j<=10 goto 2 end write the output of the segment of the program below 1 let S=0 2 For C = 1 to 5 3 let S = S+C 4 next... write output of the segment of program below 10 A$ = "ONE O" 20 B$ = "ONE " 30 D$ = " " 40 C$ = A$ &... Write the code to output: (\(\ ( - -) ((') (') Write the code to output: (\(\ ( - -) ((') (') in java Segment Segment X Y is dilated through point M with a scale factor of 2. Which segment shows the cor... Copy Segment BA to make Segment CD so that Segment CD is congruent (the same size as) BA. You will...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use