Coding Help
Florian Lindner
Florian.Lindner at xgm.de
Sat Nov 10 13:56:07 EST 2007
Marc 'BlackJack' Rintsch wrote:
> On Sat, 10 Nov 2007 09:45:47 -0800, rishiyoor wrote:
>
>> 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
>
> Sounds pretty much like homework to me.
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
More information about the Python-list
mailing list