Wednesday
April 16, 2014

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 <...
C++ Programming - What is the output of the following C++ code? p = list; while...
Math - Complete the following statements about the measures of angles in the &#...
statistics - Starting with a population that is normally distributed with a mean...
programming logic and design - what is the output by each psuedocode segments ? ...

Search
Members