Question: Write the pseudocode using modules for the following questions: 1) Write pseudocode for a program that outputs every number from 1 through 20 along with

Write the pseudocode using modules for the following questions:

1) Write pseudocode for a program that outputs every number from 1 through 20 along with their values doubled and tripled.

**this is what I have. my question is wether the section multipying the value by 2 and 3 is viable code. I am not sure if the parentheses contains the multiplication from effecting the next loop. in other words will my solution to the multiplication portion leave my num value at 6 after the first loop instead of 1?

//This pseudocode is meant to output

//every number from 1 through 20 along with their values doubled and tripled

start

Declarations

num value

num START_VALUE = 0

value = START_VALUE

while value <= 19 then:

value = value + 1

output value

output (value * 2)

output (value * 3)

endwhile

stop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!