Friday
March 27, 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

Part 1 - Consider the following selection statement where X is an integer test ...
programming - Can You Please help me understand how to do this and what i have ...
Algorithm - Algorithm Verification Consider the following selection statement ...
Help Help - Consider the following selection statement where X is an integer ...
programming - I am in IT/210 and am having problems with the entire class. But ...
Part 1 - input X if (0 <= X and X < 49) output "you fail" else if (50 <...
programming - Consider the following input and output: INPUT: (((5 + 1) (7 4...
Algebra - I have an input / output machine I need a rule I can use for any value...
7 th grade math - What is the rule for this function? input 1 output 3 input 2 ...
Math - Hey, I need your help! I have an input output table that I need the ...

Members