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

In which type of chemical reaction are electrons transferred?1) organic addition2) oxidation-reduction3) double replacement4) acid-base neutralization
which is bigger 0.5 or 0.50
Jana bought a car for $4200 and later sold it for a 30% profit. How much did Jana sell the car for?
discriminant of 9x^2+12x+4=0
Laura cuts 64 inches of ribbon into two parts and give her mom one part. Laura's part is 28 inches long. Her mom cuts her ribbon into 6 equal pieces. How long i
Find two consecutive number which add up to 89. What are the steps.
How were the greeks able to defeat the persian fleet even though they were outnumbered?
In the circle, measure of Arc BC = 62°. The diagram isn't drawn to scale. what is the measure of Arc BCP?
which geographic factor was most significant in helping the soviet union withstand German attacks in world war II
Suggest the best imperial unit to measure: 1. The distance from London to New York 2. The amount of water in a jug 3. The weight of a pencil 4. The height of a