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

A.75 cms B.64 cms C.90 cms D.125 cms
What 3 different groups are battling for control in Europe?
the phase in the cell cycle when genetic material replicates is called
David mashley teaches two undergraduate statistics courses at kansas college. the class for statistics 201 consists of 7 sophomores and 3 juniors. the more adva
CAN SOMEONE JUST PLEASE ANSWER THIS ASAP FOR BRAINLIEST!! Factor completely. 108 - 3x^2 = ________
Why were colonists angry that Great Britain had hired German mercenaries? A: German mercenaries had secretly promised to support the Patriot cause. B: Colonists
A bus driver follows a morning route and an afternoon route each day. Because there are more cities on the morning route, the average speed is 12 miles per h
Define: primary and secondary sources
Algebra 1. Help please
Calculate the number of H atoms in 0.185 mole C6H14O.