Saturday
May 25, 2013

Homework Help: programming logic and design

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

what is the output by each psuedocode segments ?

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

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

programming logic and design - whats is the output for each psuedocode sedment? ...
programming - Consider the following selection statement where X is an integer ...
programming - Can You Please help me understand how to do this and what i have ...
programming - I am in IT/210 and am having problems with the entire class. But ...
C++ Programming - What is the output of the following C++ code? p = list; while...
Help Help - Consider the following selection statement where X is an integer ...
Algorithm - Algorithm Verification Consider the following selection statement ...
Part 1 - Consider the following selection statement where X is an integer test ...
Part 1 - input X if (0 &lt;= X and X &lt; 49) output "you fail"...
programming logic - Find Bugs in the pseudocode // A high school is holding a ...

For Further Reading

Search
Members
Community