Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Coding Help

1 view
Skip to first unread message

rish...@gmail.com

unread,
Nov 10, 2007, 12:45:47 PM11/10/07
to
I need help coding my flowchart. The C's are conditions, the S's are
statements. The statements do not affect the conditions except for S5
which is an increment for C0. The left is True, and the right is
False.

I would probably use a while loop (or for loop without S5) for the
first condition C0, and I am thinking of evaluating the rest of the
conditions using if statements. But if I use if-statements, I am not
able to accomodate the breaks.

Program
├───────────────────────────────┐
┌─< C0 >─────────┐ │
│ | │
│ ┌────< C1 >──────────┐ │
│ ┌───< C2 >────┐ ┌──< C3 >─┐│
│ │ ┌─< C4 >─┐ [S1] ││
│ │ [S2] [S3] └────┬────┘│
│ │ │ │ ┌─< C4 >─┐│
│ │ │ │ [S4] ││
│ │ │ │ └───┬────┘│
│ └───┬────┴────────┴────────┘ │
│ [S5] │
│ └────────────────────────────┘
Program

Marc 'BlackJack' Rintsch

unread,
Nov 10, 2007, 1:35:01 PM11/10/07
to

Sounds pretty much like homework to me.

Ciao,
Marc 'BlackJack' Rintsch

Florian Lindner

unread,
Nov 10, 2007, 1:56:07 PM11/10/07
to
Marc 'BlackJack' Rintsch wrote:

It's nothing bad ask about help for a homework as long as noone expects to
get the entire solution.

To the OP: What is your problem?

Florian

rish...@gmail.com

unread,
Nov 10, 2007, 2:54:49 PM11/10/07
to
Well, its not homework, and if you don't want to be a tutor, you can
be a consultant and earn a lot of money.

Here is how I thought of solving this, but it does not work:

While C0 is false
if C1
if C2

now what?

Carsten Haese

unread,
Nov 10, 2007, 3:20:50 PM11/10/07
to rish...@gmail.com, pytho...@python.org

Maybe it would help you if you added an S6 that does nothing underneath
the "C2 is true" branch of your flow chart.

--
Carsten Haese
http://informixdb.sourceforge.net


rish...@gmail.com

unread,
Nov 10, 2007, 3:37:48 PM11/10/07
to
On Nov 10, 3:20 pm, Carsten Haese <cars...@uniqsys.com> wrote:

>
> Maybe it would help you if you added an S6 that does nothing underneath
> the "C2 is true" branch of your flow chart.
>
> --
> Carsten Haesehttp://informixdb.sourceforge.net

Think I found a sequence of statements that would work

if C1
if C2
else
if C4
S2
else
S3
else
if C3
S1
if C5 # This should be C5. There is an error in the chart.
S4

Billows

unread,
Nov 12, 2007, 8:03:36 AM11/12/07
to
Maybe AutoFlowchart can help you!

AutoFlowchart is a excellent source code flowcharting tool to
generate flowchart from source code. Its flowchart can expand and
shrink. and you can pre-define the the width , height,Horizontal
spacing and vertical spacing. Move and zoom is also very easy. It can
export the flowchart as a Microsoft Word file or a bitmap file. It can
help programmers understand, document and visualize source code.
As a new product to replace AgFlowchart, it revised the bugs of
AgFlowchart and add many features.
It supports C,C++,VC++(Visual C++ .NET),Delphi(Object Pascal).
Maybe it can help you!

http://www.ezprog.com

0 new messages