Computer Science: A Structured Programming Approach Using C++This book, in the words of the authors, "teaches students first how to write good functions, and then how to implement them in classes." Designed for students with no prior programming experience, the book explains each basic principle of programming first in general, language-independent terms, and then discusses how the programming construct in question is implemented in C++. Given this approach, classes are presented in the second half of the text. The book incorporates coverage of software engineering principles and procedures throughout (starting with flowcharts), with each chapter concluding with a discussion of underlying software engineering concepts. Unlike competing books that are too difficult for first-year students, Forouzan and Gilberg take special pains to make their programming examples consistent and easy to read. This careful writing makes this book a solid choice for professors looking for a book that is easy to read and follow, without compromising the material's rigor. |
From inside the book
Results 1-3 of 40
Page 50
... width uses right justification . This makes sense . When we work with numeric data , we want the data aligned so ... width rules for several different types of data . 1 / * Demonstrate the use of the set width manipulator . 2 3 4 * / 5 ...
... width uses right justification . This makes sense . When we work with numeric data , we want the data aligned so ... width rules for several different types of data . 1 / * Demonstrate the use of the set width manipulator . 2 3 4 * / 5 ...
Page 51
... width | width too small | width 5 space each | string width 10 string width 3 Demonstrate set width manipulator ( continued ) Program 2-5 Analysis Compare the results carefully with the code to make sure that you understand everything ...
... width | width too small | width 5 space each | string width 10 string width 3 Demonstrate set width manipulator ( continued ) Program 2-5 Analysis Compare the results carefully with the code to make sure that you understand everything ...
Page 302
... Width Set Fill When the fixed - point flag is on , the numbers are displayed in our normal decimal point format ... width , which determines how many display positions are to be used to display the data . 2. fill , which determines the ...
... Width Set Fill When the fixed - point flag is on , the numbers are displayed in our normal decimal point format ... width , which determines how many display positions are to be used to display the data . 2. fill , which determines the ...
Other editions - View all
Common terms and phrases
algorithm assignment average binary search bubble sort calculate calling function char character column compile error concept contains cout decimal Declarations int default defined Demonstrate digits double Dynamic arrays endl Enter evaluated example executed expression false fill character flag float num2 floating-point flowchart function call function definition getData grade header hexadecimal include iomanip.h include iostream.h initialize input insertion sort int main void int table int& integer iteration keyboard language logic Module multiply nested num1 operand operator output pass by reference postfix problem Prototype Declarations pseudocode rand random number recursive result return statement returns true score selection sort semicolon shown in Figure side effect sort algorithm Statements cout stream structure chart structured programming switch statement termFee two-dimensional array unary operator unsorted Write a function Write a program zero