Friday
May 24, 2013

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 ...
Algorithm - Algorithm Verification Consider the following selection statement ...
programming - Can You Please help me understand how to do this and what i have ...
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 &lt;= X and X &lt; 49) output "you fail"...
C++ Programming - What is the output of the following C++ code? p = list; while...
statistics - Starting with a population that is normally distributed with a mean...
programming logic and design - what is the output by each psuedocode segments ? ...
programming logic and design - whats is the output for each psuedocode sedment? ...

For Further Reading

Search
Members
Community