CPSC 124: Introduction to Programming

   Department of Mathematics and Computer Science
   Hobart and William Smith Colleges

   Spring 2017.

   Instructor:  David J. Eck  (eck@hws.edu)

   Syllabus:  http://math.hws.edu/eck/courses/cpsc124_s17.html

   Monday, Wednesday, Friday, 10:10–11:05 AM
       Room Gulick 206A.

   Lab: Thursday, 11:55–1:20 PM
       Room Rosenberg 009.
       

Lab Worksheets
Lab 1, January 19
Introduction to Linux and Java
Lab 2, January 28
Using Subroutines
 


Some Useful Links


Second Week: January 23, 25, and 27

The reading for the week is Sections 1 through 4 of Chapter 2. We will cover the basic programming "statements": variable declarations, assignment statements, and subroutine call statements. There is a lot of material here: variables, data types, and literals; expressions that involve arithmetic operations and functions; the built-in functions in the Math class; output subroutines in System.out, input functions from the non-standard TextIO class; and operations on strings.


First Week: January 17 and 19

Welcome to the course!

You should begin reading the textbook, which is available on-line at http://math.hws.edu/javanotes. During the first week of the term, we will go over some of the introductory material in Chapter 1 fairly quickly. We will cover only a part of Chapter 1 in class, but it is a good idea to read the entire chapter to get a preview of most of the topics that will be covered during the rest of the semester. However, you should not expect to fully understand everything in Chapter 1 at this time. The most important sections for now are Section 1 and Section 3. Sections 4, 5, and 6 give short overviews of many of the topics that we will cover in the rest of the semester, but they are not required reading at this time.

We will move very quickly into Chapter 2, which covers the most basic elements of Java programming. In fact, in the first lab, on Thursday, you will write your first simple Java programs. The lab web page will have enough information to get you started.

The required reading for the first week also includes the course handout!