programming logic and design

whats is the output for each psuedocode sedment?

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

  1. 👍 0
  2. 👎 0
  3. 👁 46
asked by michael
  1. Michael, please follow the example for #1 and show your attempts. Remember, I won't be there when you take your exams.

    http://www.jiskha.com/display.cgi?id=1304215768

    1. 👍 0
    2. 👎 0
    posted by MathMate

Respond to this Question

First Name

Your Response

Similar Questions

  1. information technology

    Write a puesdocode to read the marks of a number of students who took an examination, terminated by the mark 101. The psuedocode should count the number of students who pass and the number of students who fail. The pass mark is

    asked by Anitsirhc on September 23, 2012
  2. information technology

    Write a puesdocode to read the marks of a number of students who took an examination, terminated by the mark 101. The psuedocode should count the number of students who pass and the number of students who fail. The pass mark is

    asked by Anitsirhc on September 23, 2012
  3. programming logic and design

    what is the output by each psuedocode segments ? 1. a=1 b=2 c=5 while af d=d+1 e=e -1 endwhile output d, e, f 3. g=4 h=6 while g

    asked by michael on April 30, 2011
  4. math

    i need help! my last math question cant figure out! whats the rule for input 3 output 9 input 4 output 16 input blank output 25 input 6 output blank input 10 output 100, thank you been stuck for over 30 minutes!!!!

    asked by lillie on May 22, 2013
  5. Math

    Whats my rule Input 140. Output. 22 Input 100. Output. 62 Input. 91. Output. 71 So if the input is 10 what is the output?

    asked by Gemma on May 13, 2014
  6. Part 1

    Consider the following selection statement where X is an integer test score between 0 and 100. input X if (0

    asked by Anonymous on June 11, 2008
  7. math

    input 0 output 18 input 1 output 21 input 2 output 24 input 3 out put 24 whats my rule

    asked by reed on January 15, 2013
  8. 8th grade math

    please help! input-1 output-45 Whats the relation?

    asked by elise on November 12, 2015
  9. programming

    Consider the following selection statement where X is an integer test score between 0 and 100. input X if (0

    asked by steve on October 23, 2009
  10. Part 1

    input X if (0

    asked by Anonymous on June 11, 2008

More Similar Questions