My Account Log in

1 option

Programming for Everyone in Java / by Per B. Hansen.

Ebook Central Academic Complete Available online

View online
Format:
Book
Author/Creator:
Hansen, Per B., Author.
Language:
English
Subjects (All):
Computer programming.
Compilers (Computer programs).
Programming Techniques.
Compilers and Interpreters.
Local Subjects:
Programming Techniques.
Compilers and Interpreters.
Physical Description:
1 online resource (XVIII, 240 p.)
Edition:
1st ed. 1999.
Place of Publication:
New York, NY : Springer New York : Imprint: Springer, 1999.
Language Note:
English
Summary:
This is a book about computer programming for everyone: artist, poet, student, doctor, accountant, or engineer. It assumes you know very little or nothing about how computers work. This book will show you how to write understandable computer programs in Java, a programming language widely used on the Internet. Why should we be interested in learning computer programming? Even though most readers will not wish to become professional programmers, programming is fun and useful. You will enjoy learning a new skill and becoming good at it. And, in today's world it is important for professionals in any field to appreciate what computers can (and cannot) do well. To reach this level of understanding, you must go beyond the routine skills of a computer user and learn the art of programming in some depth. While emphasizing general principles of programming this book: * Uses examples from the humanities only, requiring no math or engineering knowledge * Explains all programming concepts by means of complete programs * Concentrates on exercises solved by writing complete programs * Takes the reader from text input/output to object-oriented programming in the equivalent of a one semester class. * Gives the reader a solid background for follow-on courses on the graphics and networking facilities of Java. This book is a sound and complete introduction to programming and not just another Java reference book for those who already know how to program. Although the book uses Java, the same methods can be used for systematic programming in other languages, such as C, Fortran, and Pascal. The book makes a splendid text for a one semester course on beginning programming and for such a course there are teaching aids available at the author's website. Professor Per Brinch Hansen, is one of the leading pioneers in computer programming, and his insight and experience make learning proper computer programming in Java fun and easy for everyone.
Contents:
1 Simple Programs
1.1 How Computers Work
1.2 The First Program
1.3 Input/Output
1.4 Keywords and Names
1.5 Variables and Types
1.6 More Input/Output
1.7 Programming Exercises
2 Simple Choice
2.1 If Statements
2.2 String Comparison
2.3 The Type Boolean
2.4 Structured Statements
2.5 The Empty Statement
2.6 Boolean Input/Output
2.7 Program Assertions
2.8 Java Pitfalls
2.9 Programming Exercises
3 Multiple Choice
3.1 Switch Statements
3.2 3.3 3.4 3.5 3.6 Program Testing
3.3 Random Choice
3.4 Programming Style
3.5 Java Pitfalls
3.6 Programming Exercises
4 Simple Repetition
4.1 For Statements
4.2 Nested Repetition
4.3 Stepwise Programming
4.4 Programming Exercises
5 Unbounded Repetition
5.1 While Statements
5.2 More Stepwise Programming
5.3 Blocks and Scope
5.4 For Statements Revisited
5.5 Programming Exercises
6 Text Files
6.1 Sequential Files
6.2 Reading a File
6.3 Writing a File
6.4 Copying a File
6.5 Data Extraction
6.6 Data Conversion
6.7 Syntax-Directed Programming
6.8 Programming Exercises
7 Simple Arrays
7.1 The Purpose of Arrays
7.2 Text Analysis
7.3 Java Pitfalls
7.4 Programming Exercises
8 Matrices
8.1 Rectangular Matrices
8.2 Square Matrices
8.3 Programming Exercises
9 Methods
9.1 Program Composition
9.2 Simple Functions
9.3 Simple Procedures
9.4 Parsing Methods
9.5 Array Parameters
9.6 Scope Rules of Methods
9.7 Array Functions
9.8 Abstraction
9.9 Advantages of Methods
9.10 Java Pitfalls
9.11 Programming Exercises
10 Recursion
10.1 Recursive Methods
10.2 Mutual Recursion
10.3 Programming Exercises
11 Classes
11.1 The Class Concept
11.2 Data Structures
11.3 Class Hierarchies
11.4 The Traveling Salesperson
11.5 Final Remarks
11.6 Java Pitfalls
11.7 Programming Exercises
Appendix A Java Text Program
A.1 Installing the Text Program
A.2 The Basic Class
A.3 The Output Class
A.4 The Input Class
A.5 The Random Class
Appendix B Sample Class Schedule
References.
Notes:
Bibliographic Level Mode of Issuance: Monograph
Includes bibliographical references and index.
ISBN:
1-4612-1514-5

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account