Muutke küpsiste eelistusi

Learn Pascal in Three Days 3rd New edition [Pehme köide]

  • Formaat: Paperback / softback, 324 pages, kaal: 765 g
  • Ilmumisaeg: 25-Sep-2001
  • Kirjastus: Wordware Publishing Inc.
  • ISBN-10: 1556228058
  • ISBN-13: 9781556228056
Teised raamatud teemal:
  • Formaat: Paperback / softback, 324 pages, kaal: 765 g
  • Ilmumisaeg: 25-Sep-2001
  • Kirjastus: Wordware Publishing Inc.
  • ISBN-10: 1556228058
  • ISBN-13: 9781556228056
Teised raamatud teemal:
Learn Pascal in Three Days, Third Edition provides the novice programmer with the fundamentals of the language and is ideal for those wanting a solid foundation in structured programming. This update of one of the best-selling introductions to Pascal is designed for beginning programmers with its chapter summaries, review questions, hands-on examples, and easy-to-follow drills. Readers start with simple programs and end up with useful real-world applications. Among the topics covered are building and evaluating arithmetic expressions, using structures and loops, creating arrays, manipulating text data, writing procedures and functions to make programs more modular, and declaring and using pointers.

With this book, learn about the design of structured Pascal programs; problem-solving algorithms; simple and structured data types; variables, operators, and expressions; iteration, branching, and selection statements; pointers and linked lists; manipulating data files; real-life applications and solved drills.

A&P Binding: PB Saleable
Preface v
Acknowledgments vi
About the Author vii
Hello Pascal
1(18)
Your First Pascal Program
1(1)
Comments
1(1)
Program Heading
2(1)
Syntax and Conventions
2(1)
Displaying Text: WRITELN, WRITE
3(1)
Crunching Numbers
4(1)
Integers and Real Numbers
5(2)
Evaluation of Arithmetic Expressions
7(2)
Using Variables
9(1)
Variable Declaration
9(1)
The Assignment Statement
10(2)
Named Constants
12(1)
Type Conversion: ROUND, TRUNC
13(1)
Reading from the Keyboard: READLN, READ
14(1)
Formatting Output
15(2)
Summary
17(1)
Exercises
18(1)
Answers
18(1)
Language Elements
19(20)
Standard Data Types and Functions
19(1)
Numeric Data Types
19(1)
Numeric Types in Turbo Pascal
20(1)
Standard Arithmetic Functions
21(2)
Example: The Power Function
23(1)
Example: Grocery Store
23(2)
Turbo Pascal Additional Functions
25(1)
The Character Type: CHAR
26(1)
Standard Functions for Characters
27(2)
Strings in Standard Pascal
29(1)
The STRING Type
30(1)
Declaration of a String
30(1)
The Length of a String
31(1)
The BOOLEAN Type
32(1)
Simple Boolean Expressions
32(2)
Compound Boolean Expressions
34(1)
Turbo Pascal Operators
35(1)
Precedence of Operators
35(1)
Summary
36(2)
Exercises
38(1)
Answers
38(1)
Decisions
39(22)
Making Decisions
39(1)
The Simple Decision: IF-THEN
40(1)
Example: Pascal Credit Card
40(2)
Using Blocks
42(1)
The IF-THEN-ELSE Construct
43(2)
The ELSE-IF Ladders
45(1)
Example: A Character Tester
46(1)
Nested Conditions
47(1)
Example: Scores and Grades
47(3)
Tips on the IF-ELSE Puzzles
50(1)
The Multiple Choice: CASE
51(1)
Example: A Vending Machine
51(1)
Example: Number of Days in a Month
52(2)
Unconditional Branching: GOTO
54(1)
Repetition Loops
55(1)
Turbo Pascal Features: EXIT, CASE-ELSE
56(1)
Summary
57(2)
Exercises
59(1)
Answers
60(1)
Loops
61(16)
Looping
61(1)
The FOR Loop
62(2)
Example: Powers of Two
64(1)
Example: The Average
65(1)
Stepping Up and Stepping Down
66(1)
Example: The Factorial
67(1)
Nested Loops
68(1)
The WHILE Loop
69(3)
The REPEAT Loop
72(2)
Summary
74(1)
Exercises
75(1)
Answers
76(1)
Data Architecture
77(24)
Ordinal Data Types
77(1)
Enumerations
77(2)
Subranges
79(2)
The TYPE Section
81(1)
Renaming Types
81(1)
Naming User-Defined Types
82(1)
Arrays as Data Structures
83(2)
One-Dimensional Arrays
85(1)
Example: Scores of One Student
85(2)
Displaying Tabulated Results
87(3)
Declaration of Arrays in the TYPE Section
90(1)
Example: Sorting an Array
90(3)
Two-Dimensional Arrays
93(1)
Example: Scores of Students
94(2)
Array Initialization
96(1)
Summary
97(1)
Exercises
98(1)
Answers
99(2)
Text Processing
101(20)
Manipulating Text Data
101(1)
Tips on OUTPUT Statements
101(1)
Tips on INPUT Statements
102(1)
Using READLN for Numeric Input
102(2)
Using READ for Numeric Input
104(1)
Using READ for Character Input
105(2)
Using READLN for Character Input
107(1)
Input of Mixed Types
108(1)
Example: Scrambling Letters
109(2)
Reading a Line of Text: EOLN
111(1)
Example: Character Counter
111(1)
Reading a File of Text: EOF
112(1)
Example: Frequency Counter
112(1)
String Manipulation
113(1)
Tips on String Input/Output
113(1)
Example: Sorting Names
114(2)
String Functions and Procedures
116(1)
LENGTH
116(1)
CONCAT
117(1)
COPY
117(1)
POS
117(1)
DELETE
117(1)
INSERT
118(1)
Summary
119(1)
Exercises
119(1)
Answers
120(1)
Program Architecture
121(16)
Programs and Subprograms
121(1)
Procedures
121(1)
Procedure Definition
122(1)
Passing Values to Procedures
123(3)
Passing Back Values from Procedures
126(1)
Global and Local Variables
127(1)
Example: Sorting Procedure
127(3)
Functions
130(1)
Tips on the Scope of Variables
131(2)
Recursion
133(1)
Summary
134(1)
Exercises
134(1)
Answers
135(2)
Sets and Records
137(18)
Sets
137(1)
Set Declaration and Assignment
138(1)
Rules and Restrictions
139(1)
Set Operators and Operations
140(1)
Union
140(1)
Intersection
140(1)
Difference
140(1)
Tips on Using Set Operators
140(1)
Relational Operators
141(1)
Example: Text Analyzer
142(2)
Records
144(1)
Record Declaration
144(1)
Accessing Fields
145(1)
The WITH Statement
146(3)
Nesting Records
149(2)
Summary
151(1)
Exercises
152(1)
Answers
153(2)
Files and Applications
155(28)
Data Files
155(1)
TEXT Files
156(1)
Reading a TEXT File
156(1)
File Variables
156(1)
File Parameters
157(1)
Opening a File for Input: RESET
157(1)
Closing the File
158(1)
File Input Procedures: READ, READLN
158(1)
The EOF and EOLN Functions
159(1)
Example: Disk-File Text Analyzer
159(3)
Displaying a TEXT File
162(1)
Reading a TEXT File as a Set of Strings
163(1)
Reading Multiple Strings
164(1)
Creating a TEXT File: REWRITE
165(1)
File Output Procedures: WRITE, WRITELN
165(1)
Example: Employee File
166(2)
Example: Payroll
168(4)
Non-TEXT Files
172(1)
Example: Payroll System
173(3)
Appending a File
176(2)
Using the File Buffer Variable
178(1)
Summary
179(1)
Exercises
180(1)
Answers
181(2)
Using Variant Records
183(34)
Variant Records
183(2)
Example: Enhanced Payroll System
185(7)
Deleting Records from the File
192(9)
Updating Records
201(3)
Enhance the Program Modularity
204(10)
Suggestions
214(1)
Summary
214(1)
Exercises
215(1)
Answers
215(2)
Pointers and Linked Lists
217(40)
Dynamic Memory Allocation
217(1)
Pointers
217(3)
Pointer Operations
220(2)
Pointers to Records
222(2)
Passing Pointers as Parameters
224(1)
Basics of Linked Lists
225(1)
List Declaration
225(1)
Building a List
225(2)
Reading a List
227(2)
Example: A Linked List Demo
229(3)
Storing Lists in Files
232(1)
Reading Lists from Files
233(1)
Example: A List of Records
234(1)
Searching Lists
235(8)
Deleting Nodes from Lists
243(10)
Summary
253(1)
Exercises
254(1)
Answers
255(2)
The Next Step
256(1)
Appendix A: The ASCII Character Set 257(4)
Appendix B: Reserved Words and Standard Identifiers 261(4)
Appendix C: Answers to Drills 265(52)
Index 317


Sam Abolrous is a software engineer with an extensive background in software design and programming development. He is currently a programming writer at Microsoft Corporation. He was the lead writer of the first two releases of the C# language reference and the J# language reference. He has published many articles in leading programming journals and has written over 52 books on computer science and programming languages ranging from C# to COBOL, including Learn Pascal in Three Days (Third Edition) from Wordware Publishing.