Saturday

November 29, 2014

November 29, 2014

Posted by **michael** on Saturday, April 30, 2011 at 10:09pm.

1. a=1

b=2

c=5

while a<c

a = a+1

b = b+c

endwhile

output a, b, c

2. d=4

e=6

f=7

while d>f

d=d+1

e=e -1

endwhile

output d, e, f

3. g=4

h=6

while g<h

g=g+1

endwhile

output d, e, f

4. j=2

k=5

n=9

while j<k

m=6

while m<n

output "goodbye"

m =m+1

endwhile

j=j=1

endwhile

5. j=2

k=5

m=6

n=9

while m<n

output "hello"

m=m+1

endwhile

j=j+1

endwhile

6. p=2

q=4

while p<q

output "adios"

r=1

while r<q

output "adios"

r=r+1

endwhile

p=p+1

endwhile

- programming logic and design -
**MathMate**, Saturday, April 30, 2011 at 10:40pm1.

Make a table:

a b c

1 2 5

a<c?

2 3 5

a<c?

3 4 5

a<c?

4 5 5

a<c?

5 6 5

a<c? STOP

You can try the rest and post if you have doubts.

**Answer this Question**

**Related Questions**

programming logic and design - whats is the output for each psuedocode sedment? ...

programming logic - Find Bugs in the pseudocode // A high school is holding a ...

programming - using pseudocode debug the following 3 programs // A high school ...

programming - Consider the following selection statement where X is an integer ...

Programming - I need help with debug Debug06-02 // Program lets user input ...

programming - Find Bugs in the pseudocode start Declarations num category num ...

programming - Can You Please help me understand how to do this and what i have ...

Computer Programming - I need a check on my answers 1) prompt a user to enter an...

programming - I am in IT/210 and am having problems with the entire class. But ...

PRINCIPLES OF PROGRAMMING LOGIC - HOW CAN I DRAW A FLOWCHART THAT WILL PRODUCE ...