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

I need help writing this pseudocode

I need help writing this pseudocode class=
Relax

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

let f(x)=x+8 and g(x)=x^2 -6x-7. find f(g(2))
Is velocity related to momentum
Is the following correspondence a function
Ricky had 50 cookies and gave 72% of the cookies to his friend Alice. Find the number of cookies Alice receive
what is the GCF of 12x and 44xy
Helen Grey By Christina Georgina Rossetti Because one loves you, Helen Grey, Is that a reason you should pout, And like a March wind veer about, And frown, and
let f(x)=x+8 and g(x)=x^2 -6x-7. find f(g(2))
When this car moves forward by 180 cm, each wheel does one full turn. What is the diameter of the wheels to the nearest centimetre?
Holly decided to share 1/2 of her share of the pizza with Deb. How much did each of them actually?
why do we use a coeficient to remove the propotionality