ebook img

Computing with C# and the .NET Framework PDF

883 Pages·2016·29.53 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Computing with C# and the .NET Framework

SECOND Art Gittleman California State University Long EDITION Beach Computing C# with and the .NET Framework World Headquarters Jones & Bartlett Learning 40 Tall Pine Drive Sudbury, MA 01776 978-443-5000 [email protected] www.jblearning.com Jones & Bartlett Learning Canada 6339 Ormindale Way Mississauga, Ontario L5V 1J2 Canada Jones & Bartlett Learning International Barb House, Barb Mews London W6 7PA United Kingdom Jones & Bartlett Learning books and products are available through most bookstores and online booksellers. To contact Jones & Bartlett Learning directly, call 800-832-0034, fax 978-443-8000, or visit our website, www.jblearning.com. Substantial discounts on bulk quantities of Jones & Bartlett Learning publications are available to corporations, professional associations, and other qualified organizations. For details and specific discount information, contact the special sales department at Jones & Bartlett Learning via the above contact information or send an email to [email protected]. Copyright © 2012 by Jones & Bartlett Learning, LLC All rights reserved. No part of the material protected by this copyright may be reproduced or utilized in any form, electronic or mechanical, including photocopying, recording, or by any information storage and retrieval system, without written permission from the copyright owner. Production Credits Chief Executive Officer: Ty Field President: James Homer SVP, Chief Operating Officer: Don Jones, Jr. SVP, Chief Technology Officer: Dean Fossella SVP, Chief Marketing Officer: Alison M. Pendergast SVP, Chief Financial Officer: Ruth Siporin Publisher, Higher Education: Cathleen Sether Senior Acquisitions Editor: Timothy Anderson Senior Editorial Assistant: Stephanie Sguigna Production Director: Amy Rose Senior Production Editor: Katherine Crighton Associate Marketing Manager: Lindsay White V.P., Manufacturing and Inventory Control: Therese Connell Cover and Title Page Design: Kristin E. Parker Cover and Title Page Images: © Herzlinde Vancura/Dreamstime.com; © Rostislav Kral/Dreamstime.com Printing and Binding: Malloy, Inc. Cover Printing: Malloy, Inc. Library of Congress Cataloging-in-Publication Data Gittleman, Art, 1941— Computing with C# and the .NET Framework / Art Gittleman. — 2nd ed. p. cm. Includes index. ISBN-13: 978-1-4496-1550-5 (pbk.) ISBN-10: 1-4496-1550-3 (pbk.) 1. C# (Computer program language) 2. Microsoft .NET Framework. I. Title. QA76.73.C154G58 2012 006.7'882--dc22 2010043007 6048 Printed in the United States of America 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 To Charlotte with love Contents Preface 1An Introduction to Computing with C# 1.1 Introduction to Computing Hardware Software HighLevel Languages Compilers Interpreters Networks 1.2 The .NET Framework The Common Language Runtime The .NET Framework Class Library 1.3 Overview of C# History C#'s Features How C# Works 1.4 The Elements of a C# Program Lexical Structure Syntax 1.5 Compiling andRunning C# Programs Using the Command Line Using Visual C# 2010 Express 1.6 Developing a C# Program Levels of Abstraction The Steps of Software Development Requirements Design Implementation Testing Making Improvements Summary 2C# Progamming Basics 2.1 Variables Identifiers Keywords The Character Set Type int Initialization 2.2 Assignment Constructing a Simple Program Constants 2.3 Input and Output Inputting from the Console Inputting an Integer Output to the Console Outputting a Table 2.4 Arithmetic Expressions Precedence of Arithmetic Operators Combining Assignment and Arithmetic Increment and Decrement Operators 2.5 Methods and Parameters Methods Passing by Value Programming with Methods Named and Optional Arguments Summary Skill Builder Exercises CriticalThinking Exercises ProgramDesign Exercises 3Software Engineering with Control Structures 3.1 Relational Operators and Expressions 3.2 if and if-eise Statements The if Statement Control Flow The if-else Statement Blocks 3.3 The Type double Scientific Notation double Values Output Input Mixed-type Expressions 3.4 Program Design with the while Loop Repetition Planning Programs Using Pseudocode Loop Termination Finding the Maximum 3.5 Debugging Getting Information Testing Carefully Using the Visual C# Debugger Summary Skill Builder Exercises CriticalThinking Exercises Debugging Exercise Program Design Exercises 4More Control Structures and Types 4.1 The AND, OR, and NOT Operators Conditional AND Conditional OR Logical Complement Short-Circuiting Operator Precedence Combining AND with OR 4.2 Nested if s and the switch Statement Nested if Statements Pairing else with if The switch Statement 4.3 The for and do Loops The for Statement The do Statement 4.4 Additional Primitive Types and Enumerations The char Type The long Type Other Predefined Types Enumerations 4.5 Using the Math Library Powers and Roots Maximum, Minimum, and Absolute Value Floor and Ceiling Pi and E 4.6 Solving Problems with C#: Iterative Development Defining the Problem Toward a Solution: The Iterative Process— Develop Pseudocode, a C# Program, and Test Toward a Solution: First Iteration—Pseudocode, Program, Test Toward a Solution: Second Iteration—Pseudocode, Program, Test Completing the C# Code: Third Iteration—Pseudocode, Program, Test Testing the C# Code Summary Addendum to Chapter 4: IO.cs Skill Builder Exercises CriticalThinking Exercises Debugging Exercise Program Modification Exercises Program Design Exercises 5Getting Started with Object-Oriented Programming 5.1 The Object Concept Objects Using Objects Defining an Object Type Instantiating Objects 5.2 Introduction to Object-Oriented Design A Definition Use Cases and Scenarios Scenarios for an ATM System Classification 5.3 Classes in C# The Structure of the BankAccount Class Instance Variables Instance Methods Constructors 5.4 Using C# Objects Reference Types Creating Objects Making an Object Behave Method Overloading 5.5 Class Variables and Methods

Description:
2nd Edition. — Jones & Bartlett Learning, 2011. —756 p. — ISBN-10: 1449615503, ISBN-13: 978-1449615505.На англ. языке.Computing with C# and the .NET Framework, Second Edition is the comprehensive one-volume reference for modern C#-based .NET technology.Thoroughly revised and updated
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.