Subject to Change Drawing Application 1 Introducing Computers, the Internet and C#

Similar documents
3 Welcome Application 41 Introduction to Visual Programming

Before You Begin 1 Graphing Application 1 Introducing Computers, the Internet and Visual Basic.NET

Simply Visual Basic 2010

Chapters and Appendix F are PDF documents posted online at the book s Companion Website (located at

Chapters are PDF documents posted online at the book s Companion Website (located at

Contents. Illustrations. 1 Introduction to Computers, the Internet, the Web and C# 1

Visual C# 2008 How to Program, 3/E Outline

Deitel Series Page How To Program Series

Before You Begin. and Visual Basic 1

Contents. Using Interpreters... 5 Using Compilers... 5 Program Development Life Cycle... 6

ощ 'ршорвшэш! цвн-эориэу ощ 'sajbpossv # PIPG DUJ 'ssjmoossv ^ PIPG pipa w н OX ЛЮН VAV

Visual Basic 2008 How to Program, 4/E Outline

C# Programming: From Problem Analysis to Program Design. Fourth Edition

C# 2008 and.net Programming for Electronic Engineers - Elektor - ISBN

This page intentionally left blank

Welcome to Starting Out with Programming Logic and Design, Third Edition.

Cowley College & Area Vocational Technical School

MyProgram m i ng Lab. get with the programming. Through the power of practice and immediate personalized

Introduction... 1 Part I: Getting Started with Excel VBA Programming Part II: How VBA Works with Excel... 31

Learning C# 3.0. Jesse Liberty and Brian MacDonald O'REILLY. Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo

Welcome Application. Introducing the Visual Studio.NET IDE. Objectives. Outline

[CHAPTER] 1 INTRODUCTION 1

Object-Oriented Programming and Data Structures

SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL. TWO MARKS

Excel Programming with VBA (Macro Programming) 24 hours Getting Started

Contents. 1 Introduction to Computers, the Internet and the World Wide Web 1. 2 Introduction to C Programming 26

Tutorial 2 - Welcome Application Introducing, the Visual Studio.NET IDE

Microsoft. Microsoft Visual C# Step by Step. John Sharp

Contents. Before You Begin. Object Technology: A Brief Review

A Web-Based Introduction

Contents. Preface. Introduction. Introduction to C Programming

PROBLEM SOLVING WITH FORTRAN 90

About the Author... xiii Introduction... xiv Acknowledgments and Thanks... xv Terminology... xvii Sample Code... xvii

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

Oracle BPM 10g R3 Programming 1 Essentials

Contents. 1 Introduction to Computers, the Internet. Before You Begin

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17

JAVA CONCEPTS Early Objects

Using Inspiration 7 I. How Inspiration Looks SYMBOL PALETTE

Standard. Number of Correlations

Acknowledgments. Who Should Read This Book?...xxiv How to Read This Book...xxiv What s in This Book?...xxv Have Fun!...xxvi

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

Murach s Beginning Java with Eclipse

JAVASCRIPT FOR PROGRAMMERS

.NET, C#, and ASP.NET p. 1 What Is.NET? p. 2 The Common Language Runtime p. 2 Introducing C# p. 3 Introducing ASP.NET p. 4 Getting Started p.

Microsoft Visual C# Step by Step. John Sharp

Acknowledgments...xvii. Introduction... Chapter 1: Getting Started Chapter 2: Build a Hi-Lo Guessing Game App!... 19

Microsoft Visual Studio 2010

Contents. 2 Introduction to C++ Programming,

Full file at Programming in Visual Basic 2010

Contents Introduction 1

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix

Tutorial 3 - Welcome Application

VB.NET. Exercise 1: Creating Your First Application in Visual Basic.NET

Contents. Before You Begin. Copyright by Pearson Education, Inc. All Rights Reserved.

HIGHER SECONDARY COMPUTER SCIENCE

CERTIFICATE IN WEB PROGRAMMING

"Charting the Course... Java Programming Language. Course Summary

Contents. iii Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1998, Revision B

AP Computer Science A Syllabus

"Charting the Course to Your Success!" MOC B Programming in C# Course Summary

Contents. Before You Begin. Copyright 2010 by Deitel & Associates, Inc. All Rights Reserved.

Visual Basic.NET. 1. Which language is not a true object-oriented programming language?

CHAPTER 1: INTRODUCING C# 3

Fundamentals of the Java Programming Language

College Board. AP CS A Labs Magpie, Elevens, and Picture Lab. New York: College Entrance Examination Board, 2013.

M Introduction to C# Programming with Microsoft.NET - 5 Day Course

Microsoft Excel 2010 Level 1

Acknowledgments Introduction. Chapter 1: Introduction to Access 2007 VBA 1. The Visual Basic Editor 18. Testing Phase 24

Chapter 1. Introduction to Programming and Visual Basic Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of

Perl Scripting. Students Will Learn. Course Description. Duration: 4 Days. Price: $2295

Course Text. Course Description. Course Objectives. StraighterLine Introduction to Programming in C++

2609 : Introduction to C# Programming with Microsoft.NET

Outsource. Laboratories. Introduction to Programming with Microsoft Visual Basic.NET. Outsource Laboratories Press

Getting started 7. Setting properties 23

Mastering BorlandC++ 4.5

Getting started 7. Setting properties 23

B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University

Table of Contents. Preface... xxi

XII CS(EM) Minimum Question List N.KANNAN M.Sc., B.Ed COMPUTER SCIENCE IMPORTANT QUESTION (TWO MARKS) CHAPTER 1 TO 5 ( STAR OFFICE WRITER)

Coding Faster: Getting More Productive with Microsoft Visual

James Foxall. Sams Teach Yourself. Visual Basic 2012 *24. Hours. sams. 800 East 96th Street, Indianapolis, Indiana, USA

Introduction to C++/CLI 3. What C++/CLI can do for you 6 The rationale behind the new syntax Hello World in C++/CLI 13


SAULT COLLEGE OF APPLIED ARTS AND TECHNOLOGY SAULT STE. MARIE, ONTARIO COURSE OUTLINE. Computer Programmer/Analyst.

Preface. The Purpose of this Book and Its Audience. Coverage and Approach

Table of Contents. Preface... iii COMPUTER BASICS WINDOWS XP

"Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary

Course 80436A C/Side Introduction in Microsoft Dynamics NAV 2013

Contents. More Controls 51. Visual Basic 1. Introduction to. xiii. Modify the Project 30. Print the Project Documentation 35

SAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE

SOME ASSEMBLY REQUIRED

HOUR 4 Understanding Events

GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4

Curriculum Map Grade(s): Subject: AP Computer Science

AP Computer Science A Course Syllabus

BCIS 3630 Dr. GUYNES SPRING 2018 TUESDAY SECTION [JAN version] GRADER COURSE WEBSITE

Contents Chapter 1 Introduction to Programming and the Java Language

SYLLABUS B.Com (Computer) VI SEM Subject Visual Basic Unit I

COWLEY COLLEGE & Area Vocational Technical School

Transcription:

CO N T E N T S Subject to Change 08-01-2003 Preface Before You Begin Brief Table of Contents i iv vii 1 Drawing Application 1 Introducing Computers, the Internet and C# 1.1 What Is a Computer? 1 1.2 Computer Organization 2 1.3 Machine Languages, Assembly Languages and High-Level Languages 3 1.4 C# 4 1.5 Other High-Level Languages 5 1.6 Structured Programming 6 1.7 Key Software Trend: Object Technology 7 1.8 The Internet and the World Wide Web 8 1.9 Introduction to Microsoft.NET 9 1.10 Test-Driving the C# Graphing Application 10 1.11 Internet and Web Resources 13 1.12 Wrap-Up 14 2 Welcome Application 18 Introducing the Visual Studio.NET IDE 2.1 Test-Driving the Welcome Application 18 2.2 Overview of the Visual Studio.NET IDE 19 2.3 Creating a Project for the Welcome Application 22 2.4 Menu Bar and Toolbar 27 2.5 Visual Studio.NET IDE Windows 28 Solution Explorer Toolbox Properties Window 2.6 Auto Hide 32 2.7 Using Help 33 2.8 Saving and Closing Solutions in Visual Studio.NET 34 2.9 Internet and Web Resources 34 2.10 Wrap-Up 35 3 Welcome Application 41 Introduction to Visual Programming xi simplycsp1_01toc.fm August 1, 2003 10:00 am 2003 by Deitel & Associates, Inc. All Rights Reserved.

xii 3.1 Test-Driving the Welcome Application 41 3.2 Constructing the Welcome Application 44 3.3 Objects used in the Welcome Application 53 3.4 Wrap-Up 54 4 Designing the Inventory Application 64 Introducing TextBoxes and Buttons 4.1 Test-Driving the Inventory Application 64 4.2 Constructing the Inventory Application 66 4.3 Adding Labels to the Inventory Application 72 4.4 Adding TextBoxes and a Button to the Form 75 4.5 Wrap-Up 77 5 Completing the Inventory Application 84 Introducing Programming 5.1 Test-Driving the Inventory Application 84 5.2 Introduction to C# Code 85 5.3 Inserting an Event Handler 91 5.4 Performing a Calculation and Displaying the Result 95 5.5 Using the Debugger: Syntax Errors 98 5.6 Wrap-Up 102 6 Enhancing the Inventory Application 109 Introducing Variables, Memory Concepts and Arithmetic 6.1 Test-Driving the Enhanced Inventory Application 109 6.2 Variables 110 6.3 Handling the TextChanged Event 114 6.4 Memory Concepts 116 6.5 Arithmetic 117 6.6 Using the Debugger: Breakpoints 120 6.7 Internet and Web Resources 124 6.8 Wrap-Up 125 7 Wage Calculator Application 131 Introducing Algorithms, Pseudocode and Program Control 7.1 Test-Driving the Wage Calculator Application 131 7.2 Algorithms 132 7.3 Pseudocode 133 7.4 Control Structures 134 7.5 if Selection Statement 136 7.6 if else Selection Statement 139 7.7 Constructing the Wage Calculator Application 141 7.8 Assignment Operators 146 7.9 Formatting Text 148 7.10 Using the Debugger: The Watch Window 150 7.11 Wrap-Up 154 8 Dental Payment Application 162 Introducing CheckBoxes and Message Dialogs 8.1 Test-Driving the Dental Payment Application 162 8.2 Designing the Dental Payment Application 164 8.3 Using CheckBoxes 165 8.4 Using a Dialog to Display a Message 167 8.5 Logical Operators 172

xiii Using && Using Using ^ Using! 8.6 Wrap-Up 177 9 Car Payment Calculator Application 184 Introducing the while Repetition Statement 9.1 Test-Driving the Car Payment Calculator Application 184 9.2 while Repetition Statement 186 9.3 Constructing the Car Payment Calculator Application 190 9.4 Wrap-Up 198 10 Class Average Application 206 Introducing the do while Repetition Statement 10.1 Test-Driving the Class Average Application 206 10.2 do while Repetition Statement 210 10.3 Creating the Class Average Application 212 10.4 Wrap-Up 218 11 Interest Calculator Application 225 Introducing the for Repetition Statement 11.1 Test-Driving the Interest Calculator Application 225 11.2 Essentials of Counter-Controlled Repetition 227 11.3 Introducing the for Repetition Statement 228 11.4 Examples Using the for Statement 231 11.5 Constructing the Interest Calculator Application 232 11.6 Wrap-Up 239 12 Security Panel Application 246 Introducing the switch Multiple-Selection Statement 12.1 Test-Driving the Security Panel Application 246 12.2 Introducing the switch Multiple-Selection Statement 248 12.3 Constructing the Security Panel Application 250 12.4 Wrap-Up 259 13 Enhancing the Wage Calculator Application 266 Introducing Methods 13.1 Test-Driving the Enhanced Wage Calculator Application 266 13.2 Classes and Methods 267 13.3 Methods 268 13.4 Using Methods in the Wage Calculator Application 277 13.5 Using the Debugger: Debug Toolbar 281 13.6 Wrap-Up 285 14 Shipping Time Application 292 Using Dates and Timers 14.1 Test-Driving the Shipping Time Application 292 14.2 Date Variables 293 Declaring a Date Variable Using Date Members 14.3 Building the Shipping Time Application: Design Elements 295 14.4 Creating the Shipping Time Application: Inserting Code 300 14.5 Wrap-Up 308

xiv 15 Fund Raiser Application 316 Introducing Scope and Pass-by-Reference 15.1 Test-Driving the Fund Raiser Application 316 15.2 Constructing the Fund Raiser Application 318 15.3 Passing Arguments: Pass-by-Value vs. Pass-by-Reference 324 15.4 Wrap-Up 332 16 Craps Game Application 338 Introducing Random-Number Generation 16.1 Test-Driving the Craps Game Application 338 16.2 Random-Number Generation 340 16.3 Using Enumerations in the Craps Game Application 342 16.4 Using Random Numbers in the Craps Game Application 346 16.5 Wrap-Up 353 17 Flag Quiz Application 359 Introducing One-Dimensional Arrays and ComboBoxes 17.1 Test-Driving the Flag Quiz Application 359 17.2 Introducing Arrays 361 17.3 Declaring and Allocating Arrays 363 17.4 Constructing the Flag Quiz Application 365 17.5 Sorting Arrays 376 17.6 Wrap-Up 380 18 Student Grades Application 387 Introducing Two-Dimensional Arrays and RadioButtons 18.1 Test-Driving the Sales Data Application 387 18.2 Two-Dimensional Rectangular Arrays 389 18.3 Creating and Customizing a Chart Graphic by Using the MSChart Control 391 18.4 Using RadioButtons 397 18.5 Inserting Code into the Sales Data Application 398 18.6 Wrap-Up 403 19 Microwave Oven Application 412 Building Your Own Classes and Objects 19.1 Test-Driving the Microwave Oven Application 413 19.2 Designing the Microwave Oven Application 415 19.3 Adding a New Class to the Project 419 19.4 Initializing Class Objects: Constructors 421 19.5 Properties 424 19.6 Completing the Microwave Oven Application 428 19.7 Controlling Access to Members 433 19.8 Using the Debugger: The Autos and Locals Windows 440 19.9 Wrap-Up 443 20 Shipping Hub Application 453 Introducing Collections, the foreach Statement and Access Keys 20.1 Test-Driving the Shipping Hub Application 453 20.2 Package Class 456 20.3 Using Properties TabIndex and TabStop 456 20.4 Using Access Keys 458 20.5 Collections 459 20.6 Shipping Hub Application: Using Class ArrayList 460

xv 20.7 foreach Repetition Statement 467 20.8 Wrap-Up 474 21 Cat and Mouse Painter Application 483 Introducing the Graphics Object and Mouse Events 21.1 Test-Driving the Painter Application 483 21.2 Constructing the Painter Application 485 21.3 Using a Graphics Object 486 21.4 Handling the MouseDown Event 487 21.5 Handling the MouseUp Event 490 21.6 Handling the MouseMove Event 492 21.7 Distinguishing Between Mouse Buttons 495 21.8 Wrap-Up 499 22 Typing Application 506 Introducing Keyboard Events, Menus and Dialogs 22.1 Test-Driving the Typing Application 506 22.2 Analyzing the Typing Application 509 22.3 Keyboard Events 510 22.4 Menus 516 22.5 Wrap-Up 530 23 Screen Scraping Application 539 Introducing String Processing 23.1 Test-Driving the Screen Scraping Application 539 23.2 Fundamentals of Strings 541 23.3 Analyzing the Screen Scraping Application 542 23.4 Locating Substrings in Strings 542 23.5 Extracting Substrings from Strings 546 23.6 Replacing Substrings in Strings 547 23.7 Other String Methods 549 23.8 Wrap-Up 551 24 Ticket Information Application 558 Introducing Sequential-Access Files 24.1 Test-Driving the Ticket Information Application 558 24.2 Data Hierarchy 560 24.3 Files and Streams 562 24.4 Writing to a File: Creating the Write Event Application 562 24.5 Building the Ticket Information Application 572 24.6 Wrap-Up 582 25 ATM Application 591 Introducing Database Programming 25.1 Test-Driving the ATM Application 591 25.2 Planning the ATM Application 594 25.3 Creating Database Connections 595 25.4 Programming the ATM Application 607 25.5 Wrap-Up 618 26 CheckWriter Application 626 Introducing Graphics and Printing 26.1 Test-Driving the CheckWriter Application 626 26.2 GDI+ Introduction 629

xvi 26.3 Constructing the CheckWriter Application 630 26.4 PrintPreviewDialogs and PrintDocuments 632 26.5 Creating an Event Handler for the CheckWriter Application 633 26.6 Graphics Objects: Colors, Lines and Shapes 637 Colors Drawing Lines, Rectangles and Ovals 26.7 Printing Each Control of the CheckWriter Application 639 26.8 Font Class 641 26.9 Previewing and Printing the Check 643 26.10 Wrap-Up 650 27 Phone Book Application 657 Introducing Multimedia Using Microsoft Agent 27.1 Microsoft Agent 657 27.2 Downloading Microsoft Agent Components 658 27.3 Test-Driving the Phone Book Application 660 27.4 Constructing the Phone Book Application 663 27.5 Wrap-Up 676 28 Bookstore Application: Web Applications 683 Introducing Internet Information Services 28.1 Multi-Tier Architecture 683 28.2 Web Servers 684 28.3 Internet Information Services (IIS) 686 28.4 Test-Driving the Bookstore Application 695 28.5 Wrap-Up 699 29 Bookstore Application: Client Tier 704 Introducing Web Controls 29.1 Analyzing the Bookstore Application 704 29.2 Creating ASPX Pages 705 29.3 Designing the Books.aspx Page 709 29.4 Designing the BookInformation Page 714 29.5 Wrap-Up 720 30 Bookstore Application: Information Tier 730 Examining the Database and Creating Database Components 30.1 Reviewing the Bookstore Application 730 30.2 Information Tier: Database 731 30.3 Using the Server Explorer and Query Builder in ASPX Pages 732 30.4 Wrap-Up 740 31 Bookstore Application: Middle Tier 743 Introducing Code-Behind Files 31.1 Reviewing the Bookstore Application 743 31.2 Programming the Books Page s Code-Behind File 744 31.3 Coding the BookInformation Page s Code-Behind File 749 31.4 Internet and Web Resources 756

xvii 31.5 Wrap-Up 757 32 Enhanced Car Payment Calculator Application 1 Introducing Exception Handling 32.1 Test-Driving the Enhanced Car Payment Calculator Application 1 32.2 Introduction to Exception Handling 4 32.3 Exception Handling in C# 5 32.4 Constructing the Enhanced Car Payment Calculator Application 8 32.5 Wrap-Up 13 A Operator Precedence Chart 33 B ASCII Character Set 34 C GUI Design Guidelines 35 D Visual Studio.NET Windows Form Designer Tools 43 E Controls, Events, Properties & Methods 44 F Keyword Chart 68 G Internet Information Services (IIS) Setup Instructions 70