Calculating number of button clicks and switches
Posted: Thu Mar 20, 2008 5:38 am
Hi, I am at a loss as to how the program the following:
I have 2 buttons, let's call them "A" and "B". People using my program will be clicking on these two buttons often and in any order that they like. For example, somone might click on them in this order: A A A B B B B A A A A B B B B B B B B A A A
I would like to know the following things:
1. the number of times they switch a series of clicks from one button to the next. For example, in the series above they switched 4 times.
2. the average number of clicks made in each series of button clicks. For example, in the series above this would be (3+4+4+8+3) / 5 = 4.4
Thanks for any help,
Ac
I have 2 buttons, let's call them "A" and "B". People using my program will be clicking on these two buttons often and in any order that they like. For example, somone might click on them in this order: A A A B B B B A A A A B B B B B B B B A A A
I would like to know the following things:
1. the number of times they switch a series of clicks from one button to the next. For example, in the series above they switched 4 times.
2. the average number of clicks made in each series of button clicks. For example, in the series above this would be (3+4+4+8+3) / 5 = 4.4
Thanks for any help,
Ac