Download presentation
Presentation is loading. Please wait.
Published byHomer Golden Modified over 9 years ago
1
CSC110 Steven Battilana 1 CSC110 Fundamentals of CSC L3P1 TimesTable Using VBSA
2
CSC110 Steven Battilana 2 How It Works (Load) NEW: Clears the ListBox, then adds in the word PRODUCT.
3
CSC110 Steven Battilana 3 How It Works (Times Table) 11 1 1X 1X1 1x1= 1X1=1 1 (next slide) (loop) Loop runs 81 times. NESTED If (conditional statement / decision structure) changes the 1 st number each time the 2 nd number reaches 10. (This will be clarified in last slide.) (*Go to bottom of slide) *
4
CSC110 Steven Battilana 4 How It Works (Times Table 2) 12 1 1X 1X1 1x1= 1X1=1 1 (adds 1 to num2) (loop) (num2 only equals 2, so program goes back to top of loop; next slide) (*Go to bottom of slide) *
5
CSC110 Steven Battilana 5 How It Works (Times Table 3) 12 2 1X 1X2 1x2= 1X2=2 2 1X1=1 (loop) 1X2=2 (next slide) (*Go to bottom of slide) *
6
CSC110 Steven Battilana 6 How It Works (Times Table 4…num2=10) 110 1X 1X9 1x9= 1X9=9 10 1X1=1 (adds 1 to num2) (loop) (num2=10! num2=1; num1=2; back to top of loop next slide shows result) 1X2=2 1X3=3 1X4=4 1X5=5 1X6=6 1X7=7 1X8=8 1X9=9 (*Go to bottom of slide) *
7
CSC110 Steven Battilana 7 How It Works (Times Table 6…num2=10) 21 2 2X 2X1 2x1= 2X1=2 11 1X1=1 (adds 1 to num2) (loop) (num2=1; num1=2; back to top of loop) 1X2=2 1X3=3 1X4=4 1X5=5 1X6=6 1X7=7 1X8=8 1X9=9 2X1=2 Loop runs 81 times. NESTED If (conditional statement / decision structure) changes the 1 st number each time the 2 nd number reaches 10. (*Go to bottom of slide) *
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.