Computer Science 523
Advanced Programming
Summer 2014, The College of Saint Rose
Instructor and Course Information
Instructor: | Dr. James D. Teresco, Albertus Hall 400-2, (518) 485-3755 |
Electronic mail: | terescoj AT strose.edu (best contact method) |
Twitter: | @JTeresco_StR_CS |
Class URL: |
[Link]
|
Class hour: | Tuesday, 4:30-7:30, Albertus Hall 205 |
Office hours: | Tuesday 2:00-3:00, by appointment |
|
Texts
The required text for the course is Starting Out with Java, From Control Structures through Objects, Fourth Edition
(Addison Wesley, 2010, ISBN 978-0-13-608020-6) by Tony Gaddis. This is available from the Saint Rose
Bookstore (and elsewhere).
We will also make some use of Java Structures: Data
Structures in Java for the Principled Programmer,
"Root 7" Edition
(a free online textbook) by Duane Bailey. This is a free textbook
available in PDF!
Course News
- Well done, all! Thank you for an enjoyable class.
Submission Guidelines
Your submissions for lab assignments will include several types of
items. Different requirements apply to each, as described below. It
is important that you adhere to file format and naming requirements to
facilitate grading. Submissions that do not meet these requirements
will not be accepted. Any document that does not include the name(s)
of all authors at the top will not be accepted.
- Lecture Assignment and Lab Questions
- The answers to all
"lecture assignment questions" and "lab questions" for a
particular lab should be included within a single plain-text or PDF
file named labn.txt or labn.pdf, as
appropriate, where n is the lab number. The file should start
with your name and the lab number. If you use plain text, your file
should be appropriately line-wrapped for easy reading in a window or
on a printed page with a width of 80 characters.
The distinction is that lecture assignment questions are usually
graded on completeness rather than correctness, and cannot be
submitted late. The reason for this is that we will normally go over
the lecture assignment questions during class on the due date.
Note: for lecture assignment and lab questions that ask you to draw a
diagram, you have a few options. You may attempt to represent the
diagram with plain text, but that is difficult to construct and read.
Ideally, you would use a drawing program and submit in your PDF file,
but you are also permitted to draw the diagram on paper and submit a
scan or photograph, as long as the diagram is legible in that form.
- Practice Programs
- Your submissions for practice programs are
graded primarily on correctness, but you will be required to include
your name at the top of the program, and you must use the file name
specified. You will normally demonstrate practice programs and
submit them electronically, but no printout needs to be submitted.
You are of course encouraged to practice good documentation,
formatting, and style for these programs, but the grade will depend
only on correctness (and having your name in a properly-named file).
- Programming Assignments
- These are the most formal submissions
and will be graded on design, documentation, style, correctness, and
efficiency (where appropriate). A good design will use an
appropriate algorithm, data structures, and language constructs to
solve the problem. A well-documented program will include a comment
at the top of each file that includes your name, the assignment, and
a description of the contents of the file. There should also be
comments for each constructor or method definition (including a
brief description of the method's purpose, its parameters, and
return value), each variable or group of related variables, and any
section of code whose purpose and/or behavior is not obvious from
context or the code itself. Style requirements include appropriate
formatting (sufficient and consistent indentation, spacing, and
punctuation, wrapping long lines of code), good use of named
constants, and meaningful and appropriate names for variables,
methods, constants, and parameters. Correctness, of course,
requires the expected output be produced for a set of test inputs
(which will normally not be provided in advance). Efficiency will
be more important in some assignments than others, and requires that
the program does not do any unnecessary computation or use any more
memory than needed. And, of course, you must use the file name(s)
specified. You will normally be required to demonstrate programming
assignments, submit your source code electronically, and submit a
printout of your program.
Related Information and Links
- Style Guide for CSC 523 Programs
- College of Saint Rose links
- [Alternate Textbook and Structure Package Documentation]
- Java
- Java API documentation
- Java download
page
to install or update Java on your own computer. Important note:
you will need a JDK (Java Development Kit) rather than a
JRE (Java Runtime Environment) to be able to compile your
own programs.
- BlueJ home page for documentation and installation on your own computer
- Note: You may follow the steps below or (once you
have Java installed) copy a properly-configured BlueJ
installation from a USB key I usually bring to class and to my
office (yes, this is the easiest and most highly recommended
method).
- To use BlueJ for some of our class assignments, you will also need
to get the structure package library
(bailey.jar)
- download and save this file but do not try to open it.
- After putting bailey.jar in a reasonable
place (like your folder for class work), you need to tell
BlueJ where to find it. To do that, start BlueJ. Open the
BlueJ menu and select "Preferences". Then select
"Libraries". Click the "Add" button. This should open a
file browser. Find bailey.jar and click
"Choose".
- Another preference that I recommend that you set is on
the "Editor" tab. Select "Display line numbers".
- Less relevant, but more fun:
[XKCD]
[Dilbert]
[Fox Trot]