CS
140 Handbook
An Accompaniment for
CS 140
Introduction to Computer Science
Computer Science Department
California State Polytechnic University, Pomona
September, 1998
Preface
This handbook is intended for students in CS 140, Introduction to Programming and Problem Solving, although others may find it useful as well. It is organized such that Chapters 2 through 5 serve as a guide to laboratory exercises that introduce the use of the Sun SPARC workstation computers, the Unix operating system, and a variety of software capabilities that will be important tools for the computer science student.
This edition is a major revision of the January, 1996 edition, reflecting the change to Java as the introductory programming language and the incorporation of the Computer Science laboratory into the intranet. Handbook editions earlier than this one were based on the use of the Ada programming language.
We are very interested in obtaining feedback from students regarding the Handbook’s usefulness, the clarity of its presentation, and the scope of its coverage. Please feel free to make comments about the Handbook to your instructors. If you prefer, you may convey written suggestions (anonymously if you so choose) through the department office.
Computer Science Department
California State Polytechnic University, Pomona
September, 1998
Table of Contents
Corrigenda Read First!
Chapter
1. The Study of Computer Science 1
2. Campus Computing Facilities 6
3. Files and Directories under Unix 12
4. Compiling and Running Java Programs 24
5. Programming Style 27
Appendix
A. Disk Storage 35
B. Sub-Directories 36
C. Bibliography: Java and Unix 38