English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Okay, I am taking a intro to programming class and I am totally lost. I need help lol. My grades are horrible in this class and I feel that I am just not getting it. These are the direct instructions for this problem:

Design the logic for a module that would print every number from 1 through 10. A loop must be used in this flowchart.

I will be using visio to create this flowchart. I am not using a programming language to code or anything, just design logic. Is there anyone with ideas for this? Even the start of the psuedocode would help.

Thanks ♥

2007-05-03 23:27:43 · 2 answers · asked by La Flaca 4 in Computers & Internet Programming & Design

2 answers

[Start]
|
[index=1]
|
10>----[Exit]
|
[print index]
|
[Add 1 to index]
|
{now draw a line going to between [index=1] and 10>}

That should do it.

2007-05-03 23:40:51 · answer #1 · answered by AnalProgrammer 7 · 1 0

start number (1)
 |
V
number bigger than 10? -> yes -> exit
 | no
V
print number
 |
V
increase number
 |
V
back to: number bigger than 10?

2007-05-04 06:41:51 · answer #2 · answered by nightgirl1200 4 · 0 0

fedest.com, questions and answers