Problem Solving and Programming in C / Edition 1

Problem Solving and Programming in C / Edition 1

by Jeri R. R. Hanly, Frank L. Friedman, Elliot B. Koffman
     
 

ISBN-10: 0201576538

ISBN-13: 9780201576535

Pub. Date: 01/01/1993

Publisher: Addison-Wesley

This bestselling text maintains its classic features like the gradual introduction of pointers and the connection between problem solving skills and effective software development. It features early coverage of functions, logical operators, and operators with side effects. The third edition offers updated C code and provides a new "On to C++" chapter, preparing

Overview

This bestselling text maintains its classic features like the gradual introduction of pointers and the connection between problem solving skills and effective software development. It features early coverage of functions, logical operators, and operators with side effects. The third edition offers updated C code and provides a new "On to C++" chapter, preparing students for future object-oriented programming and C++ courses.

Product Details

ISBN-13:
9780201576535
Publisher:
Addison-Wesley
Publication date:
01/01/1993
Edition description:
Older Edition
Pages:
750
Product dimensions:
7.42(w) x 9.15(h) x 1.24(d)

Table of Contents

OVERVIEW OF COMPUTERS AND PROGRAMMING


Electronic Computers Then and Now * Introduction to Computer Hardware * Computer Software * The Software Development Method * Applying the Software Development Method * Case Study: Converting Miles to Kilometers
OVERVIEW OF C
C Language Elements * Variable Declarations and Data Types * Executable Statements * General Form of a C Program * Arithmetic Expressions * Case Study: Evaluating a Collection of Coins * Formatting Numbers in Program Out put * Interactive Mode, Batch Mode, and Data Files * Common Programming Errors
TOP-DOWN DESIGN WITH FUNCTIONS
Building Programs from Existing Information * Case Study: Finding the Area and Circumference of a Circle * Case Study: Computing the Weight of a Batch of Flat Washers * Library Functions * Top-Down Design and Structure Charts * Case Study: Drawing Simple Diagrams * Functions without Arguments * Functions with Input Arguments * Common Programming Errors
SELECTION STRUCTURES: IF AND SWITCH STATEMENTS
Control Structures * Conditions * The if Statement * If Statements with Compound Statements * Decision Steps in Algorithms * Case Study: Water Bill Problem * More Problem Solving * Case Study: Water Bill with Conservation Requirements * Nested if Statements and Multiple-Alternative Decisions * The switch Statement * Common Programming Errors
REPETITION AND LOOP STATEMENTS
Repetition in Programs * The while Statement * Computing a Sum or Product in a Loop * Counting Loops and the for Statement * Conditional Loops * Loop Design * Nested Loops * The do-while Statement and Flag-Controlled Loops * Problem Solving Illustrated * Case Study: Computing Radiation Levels * How to Debug and Test Programs * Common Programming Errors
MODULAR PROGRAMMING
Functions with Simple Output Parameters * Multiple Calls to a Function with Input/Output Parameters * Scope Names * Formal Output Parameters as Actual Arguments * A Program with Multiple Functions * Case Study: Arithmetic with Common Fractions * Debugging and Testing a Program System * Common Programming Errors
SIMPLE DATA TYPES
Representation and Conversion of Numeric Types * Representation and Conversion of type char * Enumerated Types * Iterative Approximations * Case Study: Bisection Method for Finding Roots * Common Programming Errors
ARRAYS
Declaring and Referencing Arrays * Array Subscripts * Using for Loops for Sequential Access * Using Array Elements as Function Arguments * Array Arguments * Searching and Sorting an Array * Multidimensional Arrays * Array Processing Illustrated * Case Study: Analysis of Sales Data * Common Programming Errors
STRINGS
String Basics * String Library Functions: Assignment and Substrings * Longer Strings * Concatenation and Whole-Line Input * String Comparison * Arrays of Pointers * Character Operations * String-to-Number and Number-to-String Conversions * String Processing Illustrated * Case Study: Text Editor * Common Programming Errors
RECURSION
The Nature of Recursion * Tracing a Recursive Function * Recursive Mathematical Functions * Recursive Functions with Array and String Parameters * Case Study: Finding Capital Letters in a String * Case Study: Recursive Selection Sort * Problem Solving with Recursion * Case Study: Operations on Sets * A Classic Case Study in Recursion: Towers of Hanoi * Common Programming Errors
STRUCTURE AND UNION TYPES
User-Defined Structure Types * Structure Type Data as Input and Output Parameters * Functions Whose Result Values are Structures * Problem Solving with Structure Types * Case Study: A User-Defined Type for Complex Numbers * Parallel Arrays and Arrays of Structures * Case Study * Universal Measurement Conversion * Union Types (Optional) * Common Programming Errors
TEXT AND BINARY FILE PROCESSING
Input/Output Files: Review and Further Study * Binary Files * Searching a Database * Case Study: Database Inquiry * Common Programming Errors
PROGRAMMING IN THE LARGE
Using Abstraction to Manage Complexity * Personal Libraries: Header Files * Personal Libraries: Implementation Files * Storage Classes * Modifying Functions for Inclusion in a Library * Conditional Compilation * Arguments to Function main * Defining Macros with Parameters * Common Programming Errors
DYNAMIC DATA STRUCTURES
Review of C Pointers * Pointers to Dynamically Allocated Memory * Linked Lists * Linked List Operators * Representing a Stack with a Linked List * Representing a Queue with a Linked List * Ordered Lists * Case Study: Maintaining an Ordered List of Integers * Binary Trees * Common Programming Errors
ON TO C++
C++ Control Structures, Input/Output, and Functions * C++ Support for Object-Oriented Programming * C++ Constructs * Programming Projects
APPENDICES
Character Sets * ANSI C Standard Libraries * C Operators * Pointer Arithmetic * ANSI C Reserved Words

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >