[quote author=Fu-Kwun Hwang link=topic=1039.msg4007#msg4007 date=1238587733]
Things can be done in many different ways. Sometime, there is no right way or wrong way. But there are many ways due to different situation.
[/quote]
agreed :D

[quote author=Fu-Kwun Hwang link=topic=1039.msg4007#msg4007 date=1238587733]
What I need to know is : What is the requirement:
Do you want:
tv[0]=1000;
tv[1]=230;       [b][color=blue][size=15pt]234 actually[/size] [/color][/b]
tv[2]=200;
tv[3]=34;
tv[4]=30;
tv[5]=4;
or
[s] tv[0]=10;
tv[1]=230;
tv[2]=20;
tv[3]=34;
tv[4]=30;
tv[5]=4;[/s]
[/quote]
the requirement is
tv[0]=1000; // correct is graphically is a 1000(divide) + 234(conquer) = 1234
tv[1]=23[b][color=blue][size=20pt]4[/size][/color][/b]; // so yes, the teacher always want to bring down all numbers, part of his divide and conquer idea, graphically 234
tv[2]=200; //  correct 200(divide) +34(conquer) =234
tv[3]=34; // so yes, the teacher always want to bring down all numbers, part of his divide and conquer idea, graphically 34
tv[4]=30; // correct 30(divide) +4(conquer) =34
tv[5]=4; // 4 remainder end.
[/quote]

[quote author=Fu-Kwun Hwang link=topic=1039.msg4007#msg4007 date=1238587733]
What if there are more numbers, like 123456
Does the teachers always want to bring down all the numbers?
[/quote]
yes :D

[quote author=Fu-Kwun Hwang link=topic=1039.msg4007#msg4007 date=1238587733]
Please ask the teacher to explain it in all details?
Different requirements may need to be programmed different way. (Login might be different).
Sometime, it is difficult to modify the code if an extra requirement is not fit with the situation.
That is also the reason why I always ask you for alll detail for your requirement before I created simulations for you (or other users).

It does not matter what the teacher want. The important thing is write download all the detail specifications.
It is better if the teacher who need the simulation can draw some diagram/plot to explain what s/he really want,
and it will be even better if s/he can provide the reason. (May be we can find out a better solution).

[/quote]

i  have given him the link at the beginning of the collaboration, i will ask him to register n discuss together.  ;)

honestly, your applet is very good, i managed to add the scaffold the way u n me think alike already.

Thanks for your help! This forum is a Gold mine of knowledge :)

By the way, i was tinkering with the codes again, i noticed may need more effort than just changing the numbers in the codes.
sorry to cause trouble again.