Sams Teach Yourself Beginning Programming in 24 Hours

 Greg Perry Dean Miller

Beginning Programming

Third Edition

Sams Teach Yourself Beginning Programming in 24 Hours, Third Edition

Copyright ? 2014 by Pearson Education

All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher. No patent liability is assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions. Nor is any liability assumed for damages resulting from the use of the information contained herein.

ISBN-10: 0-672-33700-2

ISBN-13: 978-0-672-33700-0

Library of Congress Catalog Card Number: 2013951919

Printed in the United States of America

First Printing: December 2013

Trademarks

All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Sams Publishing cannot attest to the accuracy of this information. Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark.

Warning and Disclaimer

Every effort has been made to make this book as complete and as accurate as possible, but no warranty or fitness is implied. The information provided is on an "as is" basis. The authors and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book.

Special Sales

For information about buying this title in bulk quantities, or for special sales opportunities (which may include electronic versions; custom cover designs; and content particular to your business, training goals, marketing focus, or branding interests), please contact our corporate sales department at corpsales@ or (800) 382-3419.

For government sales inquiries, please contact governmentsales@.

For questions about sales outside the U.S., please contact international@.

Acquisitions Editor Mark Taber

Managing Editor Kristy Hart

Project Editor Elaine Wiley

Indexer Brad Herriman

Proofreader Anne Goebel

Technical Editor Siddhartha Singh

Publishing Coordinator Vanessa Evans

Cover Designer Mark Shirar

Compositor Nonie Ratcliff

Contents at a Glance

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Part I: Start Programming Today HOUR 1 Hands-On Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 Process and Techniques . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3 Designing a Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 4 Getting Input and Displaying Output . . . . . . . . . . . . . . . . . . . . . . . 57 5 Data Processing with Numbers and Words . . . . . . . . . . . . . . . . . . . 75 6 Controlling Your Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 7 Debugging Tools. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

Part II: Programming Fundamentals HOUR 8 Structured Techniques . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 9 Programming Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 10 Having Fun with Programming . . . . . . . . . . . . . . . . . . . . . . . . . . 173 11 Advanced Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187

Part III: Object-Oriented Programming with Java HOUR 12 Programming with Java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 13 Java's Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221 14 Java Has Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 15 Applets and Web Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255

Part IV: Other Programming Languages HOUR 16 HTML5 and CSS3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269 17 JavaScript and AJAX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285 18 Scripting with PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301 19 Programming with C and C++ . . . . . . . . . . . . . . . . . . . . . . . . . . . 333 20 Programming with Visual Basic 2012 . . . . . . . . . . . . . . . . . . . . . . 359 21 C# and the .NET Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375

Part V: The Business of Programming

HOUR 22 How Companies Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389 23 Distributing Applications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407 24 The Future of Programming. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413 Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download