描述
开 本: 16开纸 张: 胶版纸包 装: 平装-胶订是否套装: 否国际标准书号ISBN: 9787121295430丛书名: 国外计算机科学教材系列
*全书给出了100多个示例和大量的练习
*英文叙述简洁、易懂
Chapter 1 Visual Basic, Controls, and Events 1
1.1 An Introduction to Visual Basic 2015 1
1.2 Visual Basic Controls 3
1.3 Visual Basic Events 21
Chapter 2 Variables, Input, and Output 36
2.1 Numbers 36
2.2 Strings 54
2.3 Input and Output 74
Chapter 3 Decisions 93
3.1 Relational and Logical Operators 93
3.2 If Blocks 101
3.3 Select Case Blocks 122
3.4 Input via User Selection 136
Chapter 4 General Procedures 154
4.1 Function Procedures 154
4.2 Sub Procedures, Part I 170
4.3 Sub Procedures, Part II 185
4.4 Program Design 196
4.5 A Case Study: Weekly Payroll 199
Chapter 5 Repetition 212
5.1 Do Loops 212
5.2 For . . . Next Loops 226
5.3 List Boxes and Loops 240
Chapter 6 Arrays 256
6.1 Creating and Using Arrays 256
6.2 Using LINQ with Arrays 282
6.3 Arrays of Structures 296
6.4 Two-Dimensional Arrays 322
6.5 A Case Study: Analyze a Loan 335
Chapter 7 Additional Controls and Objects 352
7.1 List Boxes and Combo Boxes 352
7.2 Eight Additional Controls and Objects 360
7.3 Multiple-Form Programs 375
7.4 Graphics 387
Chapter 8 Object-Oriented Programming 406
8.1 Classes and Objects 406
8.2 Working with Objects 423
8.3 Inheritance 434
Chapter 9 Databases 454
9.1 An Introduction to Databases 454
9.2 Editing and Designing Databases 478
Chapter 10 Text Files 488
10.1 Managing Text Files 488
10.2 StreamReaders, StreamWriters, and Structured Exception Handling 504
10.3 A Case Study: Recording Checks and Deposits 522
Appendices…………………………………………………………………………………………………535
Appendix A ANSI Values 535
Appendix B How To 537
Appendix C Files and Folders 549
Appendix D Visual Basic Debugging Tools 550
Visual Basic has been a widely used programming language since its introduction in 1991. Its latest incarnation, Visual Basic 2015, brings continued refinement of the language. Visual Basic programmers are enthusiastically embracing the powerful capabilities of the language. Likewise, students learning their first programming language will find VB the ideal tool to understand the development of computer programs.
My objectives when writing this text were as follows:
1. To develop focused chapters. Rather than covering many topics superficially, I concentrate on important subjects and cover them thoroughly.
2. To use examples and exercises with which students can relate, appreciate, and feel comfortable. I frequently use real data. Examples do not have so many embellishments that students are distracted from the programming techniques illustrated.
3. 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.
4. 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 object-oriented programming principles.
5. To provide insights into the major applications of computers. What’s New in the Tenth Edition Among the changes in this edition, the following are the most significant.
1. Visual Basic Upgraded The version of Visual Basic has been upgraded from Visual Basic 2012 to Visual Basic 2015, and relevant new features of Visual Basic 2015 have been addressed.
2. Additional Exercises Sixty new exercises have been added, most of which are application exercises.
3. Updated Data The real-world data appearing in exercises, examples, and data files has been updated.
4. Decimal Data Type The Decimal data type has been introduced and used in all examples and exercises dealing with financial data.
5. Short-Circuit Evaluation AndAlso and OrElse are introduced for the evaluation of logical operators.
6. Windows 10 The screen captures have been updated from Windows 8 to Windows 10 captures.
7. New Statements and Methods The Exit Sub and Exit Function statements and the string methods Remove and Replace are discussed.
Unique and Distinguishing Features
Exercises for Most Sections. Each section that teaches programming has an exercise set. The exercises both reinforce the understanding of the key ideas of the section and challenge the student to explore applications. Most of the exercise sets require the student to trace programs, find errors, and write programs. The answers to all the odd-numbered exercises in Chapters 2 through 7 and the short-answer odd-numbered exercises from Chapters 8, 9, 10, and 11 are given at the end of the text. A screen capture accompanies most programming answers.
Practice Problems. Practice Problems are carefully selected exercises located at the end of a section, just before the exercise set. Complete solutions are given following the exercise set. The practice problems often focus on points that are potentially confusing or are best appreciated after the student has thought about them. The reader should seriously attempt the practice problems and study their solutions before moving on
to the exercises.
Programming Projects. Beginning with Chapter 3, every chapter contains programming projects. The programming projects not only reflect the variety of ways that computers are used in the business community, but also present some games and general-interest topics. The large number and range of difficulty of the programming projects provide the flexibility to adapt the course to the interests and abilities of the students. Some programming projects in later chapters can be assigned as end-of-thesemester projects.
Comments. Extensions and fine points of new topics are deferred to the “Comments” portion at the end of each section so that they will not interfere with the flow of the presentation.
Captions. Every example
评论
还没有评论。