"Beginners problem"... Can someone help?

Hi.

I have a master in mechanical engineering, and has just started to learn more about programming etc.

Could someone with more experience and skill - please help me with the following problem;

I want to make an app/algorithm that follows a "logical tree".

It goes like this:

1. Push/touch/choose button A, B or C.

2. In each category (A, B and C), there are several different sentences with an individual text. For example in category A, number A1 could be: "Hi, how are you?". Let's say there are 10 different sentences, from A1 - A10. The choice should be done randomly.

3. When you have chosen one, you should do the same process over again, just within another and deeper level in the three. So if you choose A and get A3 (random) in the firs process, you again get three different alternatives; AA, BB and CC. If you now randomly get BB2 (let's say that means "And how old are you?", your "path" is from A1 -> BB2, which in other words are " "Hi, how are you? And how old are you?" in summary.

4. This should be done/chosen for like 6-7 different levels and processes - ending up with 6-7 different and randomly choosen "sentences".



Is this difficult to create?




D. E.

For general programming questions, your best bet is to head over to a site like stackoverflow.com and ask there.

"Beginners problem"... Can someone help?
 
 
Q