Libro

Solo disponible en BuenasTareas
  • Páginas : 423 (105629 palabras )
  • Descarga(s) : 0
  • Publicado : 1 de septiembre de 2012
Leer documento completo
Vista previa del texto
PROBLEM SOLVING
& PROGRAMMING
CONCEPTS

This page intentionally left blank

Ninth Edition

PROBLEM SOLVING
& PROGRAMMING
CONCEPTS

Maureen Sprankle
Professor Emeritus, College of the Redwoods

Jim Hubbard
HGC Technology LLC
Software Consulting

Prentice Hall
Boston Columbus Indianapolis New York San Francisco Upper Saddle River
Amsterdam Cape Town Dubai London MadridMilan Munich Paris Montreal Toronto
Delhi Mexico City Sao Paulo Sydney Hong Kong Seoul Singapore Taipei Tokyo

To our spouses, Norm and Tamara
and our children, Bonnie, Heidi, Tamara, John and Maliyah
for their continuing support and understanding.

Editorial Director: Marcia Horton
Editor-in-Chief: Michael Hirsch
Executive Editor: Tracy Dunkelberger
Editorial Assistant: StephanieSellinger
Vice President of Marketing: Patrice Jones
Marketing Manager: Yezan Alayan
Marketing Coordinator: Kathryn Ferranti
Vice President, Production: Vince O’Brien
Managing Editor: Jeff Holcomb
Production Project Manager: Kayla Smith-Tarbox

Senior Operations Supervisor: Lisa McDowell
Art Director: Kristine Carney
Cover Designer: Rachael Cronin
Cover Image: © ronfromyork/Shutterstock
MediaEditor: Dan Sandin/ Wanda Rockwell
Project Manager: Pat Brown
Editorial Production and Composition Service: Sarvesh Mehrotra /
Aptara®, Inc.
Printer/Binder: Edwards Brothers
Cover Printer: Lehigh-Phoenix Color/Hagerstown

Copyright © 2012, 2009, 2006, 2003, 2001 by Pearson Education, Inc., publishing as Pearson, 1 Lake Street, Upper Saddle River,
New Jersey 07458. All rights reserved.Manufactured in the United States of America. This publication is protected by Copyright, and
permission should be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in
any form or by any means, electronic, mechanical, photocopying, recording, or likewise. To obtain permission(s) to use material from
this work, please submit a writtenrequest to Pearson Education, Inc., Permissions Department, 1 Lake Street, Upper Saddle River, New
Jersey 07458.
Pearson® is a registered trademark of Pearson PLC.
Many of the designations by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations
appear in this book, and the publisher was aware of a trademark claim, the designations havebeen printed in initial caps or all caps.
Library of Congress Cataloging-in-Publication Data
Sprankle, Maureen.
Problem solving and programming concepts / Maureen Sprankle, Jim Hubbard. — 9th ed.
p. cm.
Includes index.
ISBN-13: 978-0-13-249264-5
ISBN-10: 0-13-249264-4
1. Computer programming. 2. Problem solving—Data processing. I. Hubbard, Jim, 1955– II. Title.
QA76.6.S684 2011005.1—dc22
2010053156

10 9 8 7 6 5 4 3 2 1—EB—14 13 12 11 10

ISBN-10:
0-13-249264-4
ISBN-13: 978-0-13-249264-5

Contents

Preface ix
UNIT ONE INTRODUCTION TO PROBLEM SOLVING AND PROGRAMMING, 1
Chapter 1

General Problem-Solving Concepts 3

Problem Solving in Everyday Life
Types of Problems
Problem Solving with Computers
Difficulties with Problem Solving

Chapter 2

Summary
NewTerms
Questions
Problems

7
7
7
8

Beginning Problem-Solving Concepts for the Computer 11

Constants and Variables
Data Types
How the Computer Stores Data
Functions
Operators

Chapter 3

3
5
6
6

13
16
20
21
23

Expressions and Equations
Summary
New Terms
Questions
Problems

27
34
35
35
37

42
43

Coding the Solution
Software Development Cycle
SummaryNew Terms
Questions
Problems

61
62
62
63
63
63

Planning Your Solution 41

Communicating with the Computer
Organizing the Solution
Introduction to UML
(Unified Modeling Language)
Using the Tools
Testing the Solution

55
59
61

UNIT ONE Supplementary Exercises, 65
UNIT TWO LOGIC STRUCTURES, 69
Chapter 4

An Introduction to Programming Structure 71

Pointers for...
tracking img