Computer Science 121: Introduction to Problem Solving with Computers (A Java Language Course).
What is CS 121 about?
121 is intended to teach you how to program in Java, one of the most popular modern computer languages. Java brings a discipline to programming, called the object-oriented paradigm, and the course teaches how to use this paradigm as a framework for programming.
Note that 121 teaches you how to program in Java. Broadly, while the class is intended for well-prepared students (good general computer skills, basic math skills), no previous programming experience is assumed. Still, the course is the first required class for the UMass computer science major; it is also required of Informatics majors, electrical engineering majors, and mathematics majors at UMass-Amherst. In addition to basic programming constructs such as looping, conditions, arrays, file handling, and methods (Java subprograms), much attention is given to the Java object model as well as to Java's event model and its relation to graphical user interfaces.
How can I register for CS121?
If you are not able to enroll yourself, you will need to request an override via the online form. After you submit your override request you will be added to the waitlist and if we are able to offer you a seat we will contact you via email. To read more about the override process and for the online form please visit this link:https://www.cics.umass.edu/ugrad-education/overrides
How does the course work?
CS121 uses both Moodle and the OWL system. The course website is on Moodle: moodle.umass.edu. Moodle has a course forum, as well as code and other resources covered in weekly lectures.
OWL is separate from Moodle. The course is based on an interactive textbook called iJava. The text runs as part of the OWL learning management system. The textbook, homework, and programming projects provided by the OWL system, are accessed via OWL directly. There is a fee for an access code to the OWL/iJava material.
Where does the class meet?
Lectures are given twice per week. NOTE: As of Fall 2017, lecture attendance is mandatory. Lab sections, also mandatory, are held once per week.
Do I have to attend class?
Lecture attendance is mandatory. You attend the lecture on the week day for your section i.e. if you enrolled in the Tuesday section, then your lecture is on Tuesday, and if you enrolled in the Thursday section, then your lecture is on Thursday.
Lab attendance is mandatory. You must attend the section you registered for. Lab sections are held once per week. You will develop code and discuss the concepts covered that week in groups. Lab grades include attendance and submission of a lab document.
How hard is CS 121?
CS 121 is actually quite challenging. It has an R2 designation (a general designation at UMass for analytical reasoning courses), and it's about as hard as any R2 on campus.
Don't take this course lightly. There are a great many small assignments so it's critical to keep up. To succeed in 121 you've got to stay on top of the assigned material.
Do I need a computer to do the class?
You will need access to a desktop or laptop computer for this class. Chromebook computers are not a workable option. iClickers are required for lectures.
Are there special software tools that I need for this class?
You'll need the Java development kit (JDK) as well as a development tool that contains project management and a debugger. We use jGrasp as a development environment as it is easy to install and learn. Students may choose other tools, as long as they support project management and debugging. Note that we will provide support for jGrasp but no other IDE. While the above software is free, there is a fee for an access code to the OWL/iJava material.
How can I get help with COMPSCI 121?
- Attend lecture and lab.
- Visit Instructor/TA office hours.
- Get tutoring at the DuBois Library Learning Resource Center.
- Attend the LRC group review such as ExSEL and Supplemental Instruction.
- Study with a peer.
Important Course Structure Information
This course uses Moodle and OWL. Moodle is used for posting lecture and discussion material, as well as exam session selection. All assigned work including homework and programming projects is accessible through Interactive Java /OWL system. Students purchase access to Interactive Java /OWL at the beginning of the semester.
Each week you will have a chapter in the Interactive Java text to read and answer questions about, as well as a set of homework style problems to solve. There will be approximately six programming projects assigned over the semester. There will be two midterm exams and one final exam.
The main elements of this course are:
- iClicker questions in lecture
- OWL weekly online, auto graded homework assignments
- Programming Projects
- Weely Labs
- Two midterm exams
- A final exam
Approximate List of Topics Covered
- Coding style
- Commenting and documentation
- Modular code design
- Diagramming techniques
- Skeleton code (stubbing)
- Test your code
- Project management
PRIMITIVE DATA TYPES
- Numeric: int, double
- Logical, character: boolean, char
- literal values
ABSTRACT DATA TYPES (Classes)
- Java library classes: String, Scanner, Random, etc.
- User-defined classes/interfaces
- Assignment and Arithmetic Operators
- Relational Operators, Increment Operator, Logical Operations, Concatenation
- Memory model of assignment and reference
- Initialization of Instance Variables
- Type Conversion, Numeric Cast
- The final Keyword
- Static final Variables
- Flow of Control: if, else
- Null References
- Import Statements
RUNNING A PROGRAM
- The main Method
- Using System Resources
- Compiling Java source files
- Using a debugger
- Importing Java libraries
- Defining a Class
- Public Class Files
- Objects and Encapsulation
- Instance Members, Class Members and Finalization
- Setter and Getter Methods
- Member Classes
- Local Classes
- Nested Top-Level Classes
- Casting (generics)
- Method Signature
- Access level, return type, name, arguments
- Method Overloading
- Static Methods
- Methods and encapsulation
GRAPHICAL USER INTERFACE (GUI)
- The event model, callbacks
- Java libraries awt and swing
- String manipulation
- String class methods
- The StringBuffer class
- Handling Errors Using Exceptions
- Common Exceptions
- Checked and Unchecked Exceptions
- Chained Exceptions in Java
- Standard Input and Output Stream Classes
- File I/O using Scanner
INHERITANCE BY EXTENSION
- Extending a superclass (generalization) abstract classes
INTERFACES (Inheritance by implementation)
- Interfaces and polymorphic behavior
- Polymorphism Based on Overloaded Methods
- Polymorphism, Type Conversion, Casting, etc.
- Runtime Polymorphism through Inheritance
- Polymorphism and the Object Class
- Arrays of Primitive Types
- Array indexing
- Length of an array
- Arrays of Objects
- 2D Arrays