Rewrite the following pseudocode so the pretest loop is in a module. Also, put the print statement(s) from the main program in a module.


start
num stuFeet
num stuInches
num stuPounds
num stuCm
num stuGrams
num stuSize
perform getInput()
while not eof
stuInches = stuInches + 12 * stuFeet
stuCm = stuInches * 2.54
stuGrams = stuPounds * 453.59
stuSize = stuCm + stuGrams/3
endwhile
print “Size is”, stuSize
stop

getInput()
print “Enter your height in feet and inches”
input stuFeet
input stuInches
print “Enter your weight”
input stuPounds
return

Salem commented: eyesbleeding++ (awful formatting) -4

Rewrite the following pseudocode so the pretest loop is in a module.

Why?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.