Saturday
August 29, 2015

Homework Help: programming

Posted by steve on Friday, October 23, 2009 at 7:38pm.

Consider the following selection statement where X is an integer test score between 0 and 100.
input X
if (0<=X and X<49)
Output "you fail"

Else if (50<=X and X <70)
Output "your grade is" X
Output " you did OK"

Else if (70<=X and X<85)
Output "your grade is"X
Output "you did well"

Else if (85<=X and X<100)
Output "your grade is X
Output "You did great"

Endif
Output "how did you do?"

What will be printed if the input is 0?

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

More Related Questions

Members