An introduction to programming using visual basic 2005, 6th edition (2006)

1.3K 192 0
An introduction to programming using visual basic 2005, 6th edition (2006)

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Table of Contents Index An Introduction to Programming Using Visual Basicđ 2005, Sixth Edition By David I Schneider - University of Maryland Publisher : Prentice Hall Pub Date : March 03, 2006 Print ISBN-10 : 0-13-030654-1 Print ISBN-13 : 978-0-13-030654-8 eText ISBN-10 : 0-13-186104-2 eText ISBN-13 : 978-0-13-186104-6 Pages : 752 Based on the newest version of Microsoft's VB NET, this revision of Schneider's best-selling text is designed for students with no prior computer programming experience The author uses Visual Basic NET to explore the fundamentals of programming, building a strong foundation that will give students a sustainable understanding of programming A broad range of examples, case studies, exercises, and programming projects give students significant hands-on experience A "tried and true" text, this book has been consistently praised by both students and instructors An Introduction to Programming Using Visual Basic® 2005, Sixth Edition By David I Schneider - University of Maryland Publisher : Prentice Hall Pub Date : March 03, 2006 Print ISBN-10 : 0-13-030654-1 Print ISBN-13 : 978-0-13-030654-8 Table of • Contents eText ISBN-10 : 0-13-186104-2 eText ISBN-13 : 978-0-13-186104-6 • Index Pages : 752 Copyright Preface Acknowledgments The Companion Website for Students and Instructors Using This Book for a Short or Condensed Course Chapter 1 An Introduction to Computers and Visual Basic 2005 Section 1.1 An Introduction to Computers Section 1.2 Using Windows Section 1.3 Files and Folders Section 1.4 An Introduction to Visual Basic 2005 Section 1.5 Biographical History of Computing Chapter 2 Problem Solving Section 2.1 Program Development Cycle Section 2.2 Programming Tools Chapter 3 Fundamentals of Programming in Visual Basic Section 3.1 Visual Basic Controls Section 3.2 Visual Basic Events Section 3.3 Numbers Section 3.4 Strings Section 3.5 Input and Output Chapter 3 Summary xi xiii xv xvi 12 18 21 29 30 32 41 42 60 73 88 105 127 Chapter 3 Programming Projects Chapter 4 General Procedures Section 4.1 Sub Procedures, Part I Section 4.2 Sub Procedures, Part II Section 4.3 Function Procedures Section 4.4 Modular Design Chapter 4 Summary Chapter 4 Programming Projects Chapter 5 Decisions Section 5.1 Relational and Logical Operators Section 5.2 If Blocks Section 5.3 Select Case Blocks Section 5.4 A Case Study: Weekly Payroll Chapter 5 Summary Chapter 5 Programming Projects Chapter 6 Repetition Section 6.1 Do Loops Section 6.2 Processing Lists of Data with Do Loops Section 6.3 For Next Loops Section 6.4 A Case Study: Analyze a Loan Chapter 6 Summary Chapter 6 Programming Projects Chapter 7 Arrays Section 7.1 Creating and Accessing Arrays Section 7.2 Using Arrays Section 7.3 Some Additional Types of Arrays Section 7.4 Sorting and Searching Section 7.5 Two-Dimensional Arrays Section 7.6 A Case Study: A Sophisticated Cash Register Chapter 7 Summary Chapter 7 Programming Projects Chapter 8 Sequential Files Section 8.1 Sequential Files Section 8.2 Using Sequential Files Section 8.3 A Case Study: Recording Checks and Deposits Chapter 8 Summary Chapter 8 Programming Projects Chapter 9 Additional Controls and Objects Section 9.1 List Boxes, Combo Boxes, and the File-Opening 128 131 132 154 169 183 188 188 193 194 201 218 235 243 243 247 248 261 277 291 301 301 307 308 326 341 356 377 392 401 402 411 412 430 442 454 454 461 Control Section 9.2 Seven Elementary Controls Section 9.3 Four Additional Objects Section 9.4 Graphics Chapter 9 Summary Chapter 9 Programming Projects Chapter 10 Database Management Section 10.1 An Introduction to Databases Section 10.2 Relational Databases and SQL Chapter 10 Summary Chapter 10 Programming Projects Chapter 11 Object-Oriented Programming Section 11.1 Classes and Objects Section 11.2 Arrays of Objects; Events; Containment Section 11.3 Inheritance Chapter 11 Summary Chapter 11 Programming Projects Appendix A ANSI Values Appendix B How To Invoke and Exit Visual Basic Manage Programs Use the Editor Get Help Manipulate a Dialog Box Use Menus Utilize the Windows Environment Design a Form Work with the Properties of a Form or Control How To: Manage Procedures Manage Windows Use the Printer Use the Debugger Appendix C Converting from Visual Basic 6.0 to Visual Basic 2005 Section 3.1 Section 3.2 Section 3.3 Section 3.4 462 472 484 496 509 510 517 518 531 548 549 551 552 569 582 601 602 605 607 607 607 609 611 612 613 613 614 615 618 619 619 619 621 621 621 622 622 Section 3.5 623 Section 4.1 Section 4.2 623 623 Section 4.3 Section 6.3 Section 7.1 Section 7.3 Section 8.1 Section 9.1 Section 9.2 Section 9.3 Section 9.4 Section 10.1 Section 10.2 Section 11.1 Section 11.3 Appendix D Visual Basic Debugging Tools The Three Program Modes Stepping through a Program The Immediate Window The Watch Window The Locals Window Six Walkthroughs Stepping through an Elementary Program: Chapter 3 Stepping through a Program Containing a General Procedure: Chapter 4 Communicating between Arguments and Parameters Stepping through Programs Containing Selection Structures: Chapter 5 Stepping through a Program Containing a Do Loop: Chapter 6 Answers: To Selected Odd-Numbered Exercises Chapter 1 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 623 623 623 624 624 624 624 625 625 625 626 626 626 627 627 628 629 629 630 630 630 632 633 633 635 637 637 638 650 660 668 679 699 706 Chapter 10 714 Chapter 11 720 Inside Front Cover Index InsideFrontCover Copyright [Page iv] Library of Congress Cataloging-in-Publication Data on File Vice President and Editorial Director, ECS: Marcia J Horton Executive Editor: Tracy Dunkelberger Editorial Assistant: Christianna Lee Executive Managing Editor: Vince O'Brien Managing Editor: Camille Trentacoste Production Editor: Rose Kernan Director of Creative Services: Paul Belfanti Cover Designer: Jonathan Boylan Managing Editor, AV Management and Production: Patricia Burns Art Editor: Xioahong Zhu Manufacturing Manager: Alexis Heydt-Long Manufacturing Buyer: Lisa McDowell Marketing Manager: Robin O'Brien © 2006, 2003, 1999, 1998, 1997, 1995 Pearson Education, Inc Pearson Prentice Hall Pearson Education, Inc Upper Saddle River, NJ 07458 All rights reserved No part of this book may be reproduced, in any form or by any means, without permission in writing from the publisher Pearson Prentice Hall™ is a trademark of Pearson Education, Inc The author and publisher of this book have used their best efforts in preparing this book These efforts include the development, research, and testing of the theories and programs to determine their effectiveness The author and publisher make no warranty of any kind, expressed or implied, with regard to these programs or the documentation contained in this book The author and publisher shall not be liable in any event for incidental or consequential damages in connection with, or arising out of, the furnishing, performance, or use of these programs Printed in the United States of America 10 9 8 7 6 5 4 3 2 1 Pearson Education Ltd., London Pearson Education Australia Pty Ltd., Sydney Pearson Education Singapore, Pte Ltd Pearson Education North Asia Ltd., Hong Kong Pearson Education Canada, Inc., Toronto Pearson Educacíon de Mexico, S.A de C.V Pearson EducationJapan, Tokyo Pearson Education Malaysia, Pte Ltd Pearson Education Inc., Upper Saddle River, New Jersey [Page xi] Preface Since its introduction in 1991, Visual Basic has been the most widely used programming language in the world The latest incarnation of Visual Basic is called Visual Basic 2005 Visual Basic programmers are enthusiastically embracing the new features of the language Likewise, students learning their first programming language will find Visual Basic 2005 the ideal tool to understand the development of computer programs My objectives when writing this text were as follows: To develop focused chapters Rather than covering many topics superficially, I concentrate on important subjects and cover them thoroughly To use examples and exercises that students can appreciate and with which they can relate, and feel comfortable I frequently use real data Examples do not have so many embellishments that students are distracted from the programming techniques illustrated To produce compactly written text that students will find both readable and informative The main points of each topic are discussed first, and then the peripheral details are presented as comments To teach good programming practices that are in step with modern programming methodology Problem-solving techniques and structured programming are discussed early and used throughout the book The style follows objectoriented programming principles To provide insights into the major applications of computers Index [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] Quotation mark character 2nd Index [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] Radio button control 2nd RaiseEvent statement Random class 2nd Range, specifying in Case clause Reading a file 2nd ReadLine method Record of a database table 2nd Recording Checks and Deposits case study ReDim statement 2nd 3rd 4th Reference, passing by Referential integrity Refresh method Region directive 2nd Relational database 2nd operator 2nd 3rd Remove method RemoveAt method Removing a breakpoint 2nd 3rd Replace editor command Reserved word 2nd 3rd Restore button Return a value Return keyword 2nd Reusable code 2nd Right-justification Ritchie, Dennis Root folder (directory) Roundoff error Rule of entity integrity of referential integrity 2nd Run a program 2nd 3rd mode to cursor Run-time error Index [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] Save All icon Save As dialog box Saving a file a program 2nd 3rd Scientific notation Scope of a variable Scroll arrow bar 2nd bar controls box 2nd 3rd 4th event Search binary sequential 2nd Second-level menu item Select Case block 2nd 3rd 4th flowchart stepping through a Select statement (SQL) Selected control SelectedIndex property SelectedIndexChanged event SelectedText property Selecting multiple controls 2nd text Selector 2nd 3rd 4th Sender parameter Sequence structure 2nd Sequential file 2nd searching a 2nd sorting a 2nd Server Explorer SetText method Setting a breakpoint 2nd 3rd Settings box Shell sort 2nd Shell, Donald 2nd Shift+F8 key combination Shockley, William Shortcut key 2nd ShowDialog method 2nd Simonyi, Charles Simple combo box variable Simulation Single-subscripted variable Size of an array SizeMode property 2nd Sizing handles SmallChange property Smart editor 2nd Snap line 2nd Social Security tax 2nd Software Solution 2nd Explorer window 2nd 3rd Sophisticated Cash Register case study Sort a file 2nd an array bubble efficiency of flagged bubble gap in Shell sort method Shell 2nd Sorted property Spaghetti code Split function SQL 2nd SQL string Stallman, Richard M Start button Start Debugging icon Step keyword 2nd Stepping to debug 2nd Stepwise refinement StreamReader object StreamWriter object StretchImage setting String data type default value empty expression literal substring variable zero-length Stroustrup, Bjarne Structure 2nd complex decision 2nd loop 2nd passing a sequence 2nd variable Structured exception handling 2nd programming 2nd query language 2nd Stub programming Sub keyword 2nd procedure 2nd compared to Function procedure Subroutine Subscript Subscripted variable Substring method Subtraction operation Syntax error System Menu button System.IO Index [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] Tab key order Table ANSI 2nd ASCII frequency lookup of a database 2nd Tasks button Terminating an infinite loop Terminating value Testing a program Text box control 2nd 3rd copying deleting editor file 2nd moving property 2nd 3rd 4th 5th 6th 7th select a block of TextAlign property TextChanged event Then keyword Thompson, Ken Tick event Timer control 2nd Title bar To keyword in Case clause in For loop ToLower method Toolbar 2nd Toolbox 2nd 3rd 4th Tooltip Top level menu item Top-down chart design 2nd Torvalds, Linus ToString method ToUpper method 2nd Trim method 2nd Truth value Try-Catch-Finally block Turing, Alan Two-dimensional array Type-casting 2nd TypeOf keyword Index [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] Unconditional branch Underscore character 2nd Undo a change Until keyword 2nd Update method Upper bound User User-defined event 2nd function 2nd 3rd type (UDT) Index [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] Value ANSI 2nd ASCII default 2nd initial 2nd list passing by property step terminating truth Variable 2nd accumulator 2nd 3rd array class-level 2nd 3rd control 2nd 3rd 4th 5th 6th counter 2nd 3rd 4th declaring a 2nd determining type of a double-subscripted flag 2nd 3rd incrementing the value of a instance local 2nd 3rd member 2nd naming a numeric passing a simple single-subscripted String subscripted Vertical scroll bar control 2nd Visible property 2nd Visual Basic 2nd 6.0 controls creating a program 2nd events exiting How Tos introduction to invoking 2nd printing programs versions Von Neumann, John Index [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] Watch window 2nd 3rd Weekly Payroll case study Where clause (SQL) While keyword 2nd Wildcard characters (SQL) 2nd Wilkes, Maurice V Windows Explorer how to utilize environment introduction to managing Wingdings font With block WithEvents keyword Word wrap 2nd Work area Wozniak, Stephen WriteLine method Writing to a file Index [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] Zero-length string Zone ... introduction to programming An Introduction to Computers and Visual Basic 2005 1.2 Using Windows 1.3 Files and Folders Fundamentals of Programming in Visual Basic 3.1 Visual Basic Controls 3.2 Visual Basic Events... [Page 2] 1.1 An Introduction to Computers An Introduction to Programming Using Visual Basic 2005 is a book about problem solving using computers The programming language used is Visual Basic 2005 (hereafter shortened to. .. Read-Only Attribute 1.4 An Introduction to Visual Basic 2005 18 Why Windows and Why Visual Basic? How You Develop a Visual Basic Application The Different Versions of Visual Basic 1.5 Biographical History of Computing

Ngày đăng: 25/03/2019, 16:33

Từ khóa liên quan

Mục lục

  • An Introduction to Programming Using Visual BasicR 2005, Sixth Edition

  • Table of Contents

  • Copyright

    • Preface

    • Acknowledgments

      • The Companion Website for Students and Instructors

      • Using This Book for a Short or Condensed Course

      • Chapter 1. An Introduction to Computers and Visual Basic 2005

        • Section 1.1. An Introduction to Computers

        • Section 1.2. Using Windows

        • Section 1.3. Files and Folders

        • Section 1.4. An Introduction to Visual Basic 2005

        • Section 1.5. Biographical History of Computing

        • Chapter 2. Problem Solving

          • Section 2.1. Program Development Cycle

          • Section 2.2. Programming Tools

          • Chapter 3. Fundamentals of Programming in Visual Basic

            • Section 3.1. Visual Basic Controls

            • Section 3.2. Visual Basic Events

            • Section 3.3. Numbers

            • Section 3.4. Strings

            • Section 3.5. Input and Output

            • Chapter 3 Summary

            • Chapter 3 Programming Projects

            • Chapter 4. General Procedures

              • Section 4.1. Sub Procedures, Part I

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan