- Page 1 and 2:
Computer Programming Concepts and V
- Page 3 and 4:
CONTENTS SECTION 1: PROBLEM SOLVING
- Page 5:
13.3 WEB PAGE PROGRAMMING WITH VBSC
- Page 9:
S E C T I O N 1 PROBLEM SOLVING
- Page 12 and 13:
4 Computer Programming Concepts and
- Page 14 and 15:
6 Computer Programming Concepts and
- Page 16 and 17:
8 Computer Programming Concepts and
- Page 18 and 19:
10 Computer Programming Concepts an
- Page 20 and 21:
12 Computer Programming Concepts an
- Page 23:
S E C T I O N 2 FUNDAMENTALS OF PRO
- Page 26 and 27:
18 Computer Programming Concepts an
- Page 28 and 29:
20 Computer Programming Concepts an
- Page 30 and 31:
22 Computer Programming Concepts an
- Page 32 and 33:
24 Computer Programming Concepts an
- Page 34 and 35:
26 Computer Programming Concepts an
- Page 36 and 37:
28 Computer Programming Concepts an
- Page 38 and 39:
30 Computer Programming Concepts an
- Page 40 and 41:
32 Computer Programming Concepts an
- Page 42 and 43:
34 Computer Programming Concepts an
- Page 44 and 45:
36 Computer Programming Concepts an
- Page 46 and 47:
38 Computer Programming Concepts an
- Page 48 and 49:
40 Computer Programming Concepts an
- Page 50 and 51:
42 Computer Programming Concepts an
- Page 52 and 53:
44 Computer Programming Concepts an
- Page 54 and 55:
46 Computer Programming Concepts an
- Page 56 and 57:
48 Computer Programming Concepts an
- Page 58 and 59:
50 Computer Programming Concepts an
- Page 60 and 61:
52 Computer Programming Concepts an
- Page 62 and 63:
54 Computer Programming Concepts an
- Page 64 and 65:
56 Computer Programming Concepts an
- Page 66 and 67:
58 Computer Programming Concepts an
- Page 68 and 69:
60 Computer Programming Concepts an
- Page 70 and 71:
62 Computer Programming Concepts an
- Page 72 and 73:
64 Computer Programming Concepts an
- Page 74 and 75:
66 Computer Programming Concepts an
- Page 76 and 77:
68 Computer Programming Concepts an
- Page 78 and 79:
70 Computer Programming Concepts an
- Page 81 and 82:
3.1 SUB PROCEDURES, PART I Structur
- Page 83 and 84:
The second task performed by the ad
- Page 85 and 86:
‘The density (number of people pe
- Page 87 and 88:
"Hawaii", 1184000, 6471 "Alaska", 6
- Page 89 and 90:
dure by just using the variable in
- Page 91 and 92:
Call CalculateSum(x, y, s) Call Dis
- Page 93 and 94:
■ FORM-LEVEL VARIABLES Visual Bas
- Page 95 and 96:
3. In Appendix D, the section “St
- Page 97 and 98:
Private Sub cmdDetermine_Click() Di
- Page 99 and 100:
Private Sub cmdCompute_Click() Dim
- Page 101 and 102:
preceded with the word ByVal. Built
- Page 103 and 104:
It is clear from the hierarchy char
- Page 105 and 106:
The meaningful procedure names, alo
- Page 107:
FIGURE 3-9 Sample Run for Programmi
- Page 111 and 112:
4.1 RELATIONAL AND LOGICAL OPERATOR
- Page 113 and 114:
(a) (2 < n) And (n < 6) (b) (2 < n)
- Page 115 and 116:
SOLUTION: In the following program,
- Page 117 and 118:
The Else part of an If block can be
- Page 119 and 120:
picTax.Cls picTax.Print “Your FIC
- Page 121 and 122:
Case 4, 5 picOutcome.Print “You a
- Page 123 and 124:
EXAMPLE 3 The following program use
- Page 125 and 126:
Case Else picResult.Print “The st
- Page 127 and 128:
4. The items in the value list must
- Page 129 and 130:
The hierarchy chart in Figure 4-4 s
- Page 131 and 132:
‘Program to compute employees’
- Page 133 and 134:
Private Function TaxMarried(adjPay
- Page 135 and 136:
and tells us whether the food meets
- Page 137:
S E C T I O N 5 REPETITION
- Page 140 and 141:
132 Computer Programming Concepts a
- Page 142 and 143:
134 Computer Programming Concepts a
- Page 144 and 145:
136 Computer Programming Concepts a
- Page 146 and 147:
138 Computer Programming Concepts a
- Page 148 and 149:
140 Computer Programming Concepts a
- Page 150 and 151:
142 Computer Programming Concepts a
- Page 152 and 153:
144 Computer Programming Concepts a
- Page 154 and 155:
146 Computer Programming Concepts a
- Page 156 and 157:
148 Computer Programming Concepts a
- Page 158 and 159:
150 Computer Programming Concepts a
- Page 160 and 161:
152 Computer Programming Concepts a
- Page 162 and 163:
154 Computer Programming Concepts a
- Page 164 and 165:
156 Computer Programming Concepts a
- Page 167:
S E C T I O N 6 ARRAYS
- Page 170 and 171:
162 Computer Programming Concepts a
- Page 172 and 173:
164 Computer Programming Concepts a
- Page 174 and 175: 166 Computer Programming Concepts a
- Page 176 and 177: 168 Computer Programming Concepts a
- Page 178 and 179: 170 Computer Programming Concepts a
- Page 180 and 181: 172 Computer Programming Concepts a
- Page 182 and 183: 174 Computer Programming Concepts a
- Page 184 and 185: 176 Computer Programming Concepts a
- Page 186 and 187: 178 Computer Programming Concepts a
- Page 188 and 189: 180 Computer Programming Concepts a
- Page 190 and 191: 182 Computer Programming Concepts a
- Page 192 and 193: 184 Computer Programming Concepts a
- Page 194 and 195: 186 Computer Programming Concepts a
- Page 196 and 197: 188 Computer Programming Concepts a
- Page 198 and 199: 190 Computer Programming Concepts a
- Page 200 and 201: 192 Computer Programming Concepts a
- Page 202 and 203: 194 Computer Programming Concepts a
- Page 204 and 205: 196 Computer Programming Concepts a
- Page 206 and 207: 198 Computer Programming Concepts a
- Page 208 and 209: 200 Computer Programming Concepts a
- Page 210 and 211: 202 Computer Programming Concepts a
- Page 212 and 213: 204 Computer Programming Concepts a
- Page 214 and 215: 206 Computer Programming Concepts a
- Page 216 and 217: 208 Computer Programming Concepts a
- Page 218 and 219: 210 Computer Programming Concepts a
- Page 220 and 221: 212 Computer Programming Concepts a
- Page 223: S E C T I O N 7 SEQUENTIAL FILES
- Page 227 and 228: 4. After all the data have been rec
- Page 229 and 230: Write #2, nom, yob Else foundFlag =
- Page 231 and 232: (a) Often a large portion of the fi
- Page 233 and 234: Close #1 End Sub [Run, and then cli
- Page 235 and 236: ■ CONTROL BREAK PROCESSING Suppos
- Page 237 and 238: and reporting balances—have becom
- Page 239 and 240: to the SetupCheck Sub procedure, wh
- Page 241 and 242: Dim message As String ‘If one of
- Page 243 and 244: A Case Study: Recording Checks and
- Page 245 and 246: cmdRecord.Caption = “&Record This
- Page 247 and 248: (e) Print out the names and phone n
- Page 249: Note: The first array must be searc
- Page 253 and 254: 8.1 USER-DEFINED DATA TYPES Records
- Page 255 and 256: ■ RECORDS In this text, we have w
- Page 257 and 258: EXAMPLE 3 The following program pro
- Page 259 and 260: 3. Statements of the form picBox.Pr
- Page 261 and 262: The two-step procedure for reading
- Page 263: SUMMARY 1. A fixed-length string is
- Page 267 and 268: 9.1 INTRODUCTION TO GRAPHICS Visual
- Page 269 and 270: (c) The point (-2, 0) is the left-h
- Page 271 and 272: picOutput.Scale (-2, 12)-(12, -2)
- Page 273 and 274: the picture box. The TextWidth meth
- Page 275 and 276:
9.2 LINE CHARTS A line chart displa
- Page 277 and 278:
Private Sub ShowTitle() ‘Display
- Page 279 and 280:
picEnroll.Line (i, female(i))-(i +
- Page 281 and 282:
placed before the Scale method is e
- Page 283 and 284:
Private Sub DrawData(male() As Sing
- Page 285 and 286:
9.4 PIE CHARTS Drawing pie charts r
- Page 287 and 288:
EXAMPLE 3 Write a program to draw t
- Page 289 and 290:
‘space of 1.75 radii will remain
- Page 291 and 292:
2. Figure 9-24 is called a horizont
- Page 293:
S E C T I O N 10 ADDITIONAL CONTROL
- Page 296 and 297:
288 Computer Programming Concepts a
- Page 298 and 299:
290 Computer Programming Concepts a
- Page 300 and 301:
292 Computer Programming Concepts a
- Page 302 and 303:
294 Computer Programming Concepts a
- Page 304 and 305:
296 Computer Programming Concepts a
- Page 306 and 307:
298 Computer Programming Concepts a
- Page 308 and 309:
300 Computer Programming Concepts a
- Page 310 and 311:
302 Computer Programming Concepts a
- Page 312 and 313:
304 Computer Programming Concepts a
- Page 314 and 315:
306 Computer Programming Concepts a
- Page 316 and 317:
308 Computer Programming Concepts a
- Page 318 and 319:
310 Computer Programming Concepts a
- Page 320 and 321:
312 Computer Programming Concepts a
- Page 322 and 323:
314 Computer Programming Concepts a
- Page 324 and 325:
316 Computer Programming Concepts a
- Page 326 and 327:
318 Computer Programming Concepts a
- Page 329:
S E C T I O N 11 DATABASE MANAGEMEN
- Page 332 and 333:
324 Computer Programming Concepts a
- Page 334 and 335:
326 Computer Programming Concepts a
- Page 336 and 337:
328 Computer Programming Concepts a
- Page 338 and 339:
330 Computer Programming Concepts a
- Page 340 and 341:
332 Computer Programming Concepts a
- Page 342 and 343:
334 Computer Programming Concepts a
- Page 344 and 345:
336 Computer Programming Concepts a
- Page 346 and 347:
338 Computer Programming Concepts a
- Page 348 and 349:
340 Computer Programming Concepts a
- Page 350 and 351:
342 Computer Programming Concepts a
- Page 352 and 353:
344 Computer Programming Concepts a
- Page 354 and 355:
346 Computer Programming Concepts a
- Page 356 and 357:
348 Computer Programming Concepts a
- Page 358 and 359:
350 Computer Programming Concepts a
- Page 361:
S E C T I O N 12 OBJECT-ORIENTED PR
- Page 364 and 365:
356 Computer Programming Concepts a
- Page 366 and 367:
358 Computer Programming Concepts a
- Page 368 and 369:
360 Computer Programming Concepts a
- Page 370 and 371:
362 Computer Programming Concepts a
- Page 372 and 373:
364 Computer Programming Concepts a
- Page 374 and 375:
366 Computer Programming Concepts a
- Page 376 and 377:
368 Computer Programming Concepts a
- Page 378 and 379:
370 Computer Programming Concepts a
- Page 380 and 381:
372 Computer Programming Concepts a
- Page 382 and 383:
374 Computer Programming Concepts a
- Page 384 and 385:
376 Computer Programming Concepts a
- Page 386 and 387:
378 Computer Programming Concepts a
- Page 388 and 389:
380 Computer Programming Concepts a
- Page 390 and 391:
382 Computer Programming Concepts a
- Page 393 and 394:
13.1 OLE OLE, which stands for Obje
- Page 395 and 396:
Dim objExcel As Object ‘In (Decla
- Page 397 and 398:
FIGURE 13-2 Dialog Box for Insertin
- Page 399 and 400:
Notice that the document in the OLE
- Page 401 and 402:
To access an initial Web page, you
- Page 403 and 404:
EXAMPLE 2 The following enhancement
- Page 405 and 406:
DownloadComplete Triggered when the
- Page 407 and 408:
FIGURE 13-5 Web Page ■ PLACING AC
- Page 409 and 410:
FIGURE 13-7 14. Feel free to type i
- Page 411:
SUMMARY 1. OLE, a technology develo
- Page 415 and 416:
APPENDIX A ANSI VALUES ANSIValue Ch
- Page 417 and 418:
APPENDIX B HOW TO HOW TO: INSTALL,
- Page 419 and 420:
4. If you selected Recent, double-c
- Page 421 and 422:
3. Press F1. C. Display an ANSI tab
- Page 423 and 424:
2. Point to Programs. 3. Point to A
- Page 425 and 426:
1. Press F4. or 1. Click on an obje
- Page 427 and 428:
3. Click on the down arrow at the r
- Page 429:
B. Remove all breakpoints. 1. Press
- Page 432 and 433:
424 Computer Programming Concepts a
- Page 434 and 435:
426 Computer Programming Concepts a
- Page 436 and 437:
428 Computer Programming Concepts a
- Page 438 and 439:
430 Computer Programming Concepts a
- Page 440 and 441:
432 Computer Programming Concepts a
- Page 442 and 443:
434 Computer Programming Concepts a
- Page 444 and 445:
436 Computer Programming Concepts a
- Page 446 and 447:
438 Computer Programming Concepts a
- Page 448 and 449:
440 Computer Programming Concepts a
- Page 450 and 451:
442 Computer Programming Concepts a
- Page 452 and 453:
444 Computer Programming Concepts a
- Page 454 and 455:
446 Computer Programming Concepts a
- Page 456 and 457:
448 Computer Programming Concepts a
- Page 458 and 459:
450 Computer Programming Concepts a
- Page 460 and 461:
452 Computer Programming Concepts a
- Page 462 and 463:
454 Computer Programming Concepts a
- Page 464 and 465:
456 Computer Programming Concepts a
- Page 466 and 467:
APPENDIX D VISUAL BASIC DEBUGGING T
- Page 468 and 469:
can then alter the expression in th
- Page 470 and 471:
point. (Pressing F9 is referred to
- Page 472 and 473:
2. Press F8, click the command butt
- Page 474 and 475:
I N D E X A Access key, 24, 296-297
- Page 476 and 477:
I If block, 106-112, 114, 119, 126,
- Page 478 and 479:
END-USER LICENSE AGREEMENT FOR MICR
- Page 480 and 481:
MISCELLANEOUS If you acquired this