Saturday
December 20, 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 ...
programming - Consider the following input and output: INPUT: (((5 + 1) (7 4...
Programming and algorithms - For each of the following problems, use the top-...
Fundamentals of algorithm and logic - 3. Exercise: Peer Reviews of Currency ...
programming logic raptor - 1. a.input names of students from the user, ...
Algebra - I have an input / output machine I need a rule I can use for any value...

Search
Members