Phone Tree

2015-09-13 Thread Azureaus
Hi, I'm helping out some teenagers (14yo ish) who have just started programming and are working on a 'call tree' program as part of some after school coding classes and I wanted to talk about potential solutions. The first task is to implement a 'troubleshooting program' similar to what a

Re: Phone Tree

2015-09-13 Thread Chris Angelico
On Mon, Sep 14, 2015 at 12:39 AM, Azureaus wrote: > The first task is to implement a 'troubleshooting program' similar to what a > phone operator would have when you phone up with a problem. We all know the > type when you phone up your ISP, 'have you turned it off and on

Re: Phone Tree

2015-09-13 Thread Laura Creighton
Somewhere in there you may find that dictionary dispatching is something worth doing. I don't know. This whole sort of problem is sort of grating, in that it is trying to replicate one of the most irritating user experiences on the planet ... >From python3: Patterns, Recipes and Idioms

Re: Phone Tree

2015-09-13 Thread Denis McMahon
On Sun, 13 Sep 2015 07:39:23 -0700, Azureaus wrote: > Does anyone have any ideas for a more elegant solution? My thoughts are > that I could use a tree data structure and hence make traversing the > tree recursive based on yes or no answers. I'm happy to put the time in > to explain these more