CPSC 124 | Introduction to Programming | Fall 2004 |
Programming is the art and science of explaining to a computer how to carry out a task. The art is in constructing something that not only works, but is also beautiful - efficient, elegant, and organized. The science comes from developing (and making use of) theory and principles to help programmers create larger, more complex programs.
Programming is at the heart of computer science, but it is not all of computer science. It requires creativity, logical thinking, and problem-solving skills. It can be frustrating when you are trying to track down why your program isn't quite working right, but it is even more rewarding when you finish and can point to your creation.
This course is an introduction to the theory and practice of computer programming, emphasizing techniques of program development in the object-oriented paradigm. The course is taught using Java, a relatively new language which has grown in popularity due its Web-friendly characteristics. Standard topics such as control structures, subroutines, objects, and arrays are covered. Attention will also be given to "how to think like a programmer" - that is, the fundamental logical thinking and problem-solving skills which are independent of the particular language being used.
Instructor |
Stina Bridgeman |
---|---|
Office Hours |
M 1:30-2:30pm, T 2:30-3:30pm, W 4:00-5:00pm, F 9:30-10:30am |
CS Tutor Hours |
Sun 6:30-10pm, Tue 7-10pm, Wed 7-10pm (Lansing 3rd floor) |
Class Hours and Meeting Place |
Lecture MWF 11:15am-12:10pm, Lansing 300 Lab R 10:20am-11:45am, Gulick 208 |
Course Web Page |
http://math.hws.edu/~bridgeman/courses/124/f04/ You are expected to regularly consult the course web page for announcements, assignments, and most handouts. |
Text |
Introduction to Programming Using Java, an online text written by Professor Eck. Printed copies will be handed out early in the semester (this is what the $25 course fee covers), but you are encouraged to continue to refer to the online version (where you can interact with the applets and search the text). Additional material will be handed out or posted on the course webpage. |
Prerequisites |
No prerequisite, though CPSC 120 or equivalent experience is recommended. Some familiarity with computers is useful. |
Rationale |
Computer science revolves around programs - creating programs, analyzing programs, making programs more efficient and easier to understand, making it easier to create and maintain programs, considering what programs can and cannot do...the list goes on. As a consequence, one of the first courses in computer science is typically a programming course. Such a course has two goals: the most obvious, perhaps, is to teach the rules and grammar of a particular programming language so that programs can be constructed. Somewhat less obvious is teaching how to think like a programmer - how to take an idea of what you want to do, and turn it into a series of steps the computer can follow. This requires logical thinking and problem solving. These skills are more fundamental to programming than the particular language involved, and are useful even for those who have no intention of becoming programmers or computer scientists. Like a single semester of a foreign language course, this course will not teach you everything you need to know to be a good programmer and and it won't even teach you everything there is to know about Java. You will, however, learn enough to be able to create interesting and useful programs, and you will have a solid basis for continuing your study. (Shameless plug for CPSC 225 here.) |
Course Content Overview |
The course material can be divided into four sections: the basics of the Java language and Java programs, object-oriented programming with Java, applets and graphical user interfaces, and basic data structures. Programming Basics: The first part of the course will deal with many of the basic building blocks of programming. The Java language will be introduced, along with programming concepts such as types, variables, assignment statements, expressions, conditionals, loops, subroutines, functions, parameters, return values, and I/O (input/output). Object-Oriented Programming: The second part of the course will move on to programming in the object-oriented paradigm, and will introduce the concepts central to object-oriented programming: classes, objects, instance variables and methods, inheritance, and polymorphism. There will also be an increasing amount of attention paid to the design and organization of good programs. Applets and GUIs: One of the features which has made Java popular is the ease with which programs can be integrated into Web pages. Java programs embedded in Web pages are known as "applets". This part of the course will address how to create applets and the graphical user interfaces (GUIs) which applets and most other modern programs provide. Data Structures: The last part of the course will begin to look at some of the advanced topics which will be explored more fully in CPSC 225. Programs are all about manipulating data, and data structures are used to organize data. Choosing an appropriate data structure for a particular application is important for the program's efficiency and simplicity. The simplest and most basic (but still extremely useful) data structure, the array, will be introduced. |
Assignments and Evaluation |
Exams: There will be two midterm exams and a final exam. The midterms will be in-class, written (no programming), and closed book/notes. The final will be cumulative, but will have a somewhat greater emphasis on material covered after the second midterm (as much as it is possible to do so). The final will be entirely in the scheduled timeslot, and may contain a programming component (the exact form will be announced later in the semester). Quizzes: There will be short quizzes assigned on most Mondays (and one Friday) throughout the semester, intended to make sure that you keep up with material. They will generally be based on the previous week's reading and lecture material. They will be administered online (via Blackboard) and are due by the next class period after they are assigned. You may choose to take the quiz at any time between when it is assigned and when it is due, but once you look at the quiz, you must finish it in the same session. Quizzes are closed book and closed notes. Labs: There will be weekly labs, generally due one week after the lab session in which they are assigned. It is likely that you will not be able to complete the entire lab during the lab period - this is to be expected, and finishing it outside of class will be homework. Attendance in lab sessions is required, and absences (for any reason) will result in a penalty on that lab assignment. Individual Programming Assignments: There will be two individual programming assignments, in addition to the weekly labs. These will be more sizable programs than the labs. Final Project: There will also be a final project on a topic of your choosing, to be completed individually or in a small group of two or three. The project will give you an opportunity to work on a larger program than the others you'll create for the course. More details will be provided later in the semester. Lecture Attendance and Participation: You are expected to attend and participate in class. The course material is cumulative, and it is difficult to catch up if you fall behind. As a result, attendance will be taken regularly and more than three absences (for any reason) will lower your final grade. "Participation" means that you are engaged in class - you are not expected to volunteer for everything, but you should contribute to the class in a meaningful way multiple times throughout the semester. Grades: Grades in this course will be computed as follows:
|