cm74usap2j62s
cm74usap2j62s cm74usap2j62s
  • 13-08-2018
  • Computers and Technology
contestada

I need help writing this pseudocode

I need help writing this pseudocode class=

Respuesta :

tonb
tonb tonb
  • 13-08-2018

The flowchart gives most of the solution, you only have to translate the loop to something like a while() { ... } structure:

X=0

input num

while (num > 5) {

ouput num

X = X + num

num = num + 2

}

output X

If you run this with num = 8, it would print:

8

6

14

Answer Link

Otras preguntas

Can someone help me pls! Ack I accidently put chemistry. This is math LoL
Human vision can distinguish objects down to about a 4th of a millimeter (~250 micrometers). Given this, which of the following are generally visible to the hum
0.075, 0.75%, 3/ 4 least to greatest
7. For the equation y = -1/4X 8 state the slope and the y-intercept.
Which socioeconomic system was gradually replaced by the growth of towns and cities during the Romanesque period?
Carmina wants to move a paragraph to the right margin of the document she is working in. She moves her cursor to the beginning of the paragraph. Which tool shou
The following information relates to a company's defined benefit pension plan at December 31:Accumulated benefit obligation1,035,000Projected benefit obligation
"Any process used to ask and answer testable questions about observations of the natural world" defines which term? scientific consensus scientific inquiry scie
In a candy store a $20.00 jar of candy is labeled, 35% off what is the discount what is t he sale price of the candy jar?
What is 4.5 lb in oz