Archived · Fall 2025

CS 122 Computer Science II

All offerings: Fall 2024Fall 2025 Current course page →
This is the course website as it was published for Fall 2025. Dates, links and policies reflect that semester and may be out of date; see the current course page for the latest version.

Course Info

To continue the presentation of the essentials of computer software development using Java. Emphasis will be placed on algorithm construction using reference variables, data structures, concurrent programming using threads, file processing, exception handling, classes and object oriented programming. GUI programming will be covered and used extensively.

Instructor:

Dr. Peilong Li

Office:

Esbenshade 284B

Appointments:

By email

Number of Credits

4

Pre-requisites

  • CS 121 Computer Science I

Textbooks

  • (Required) CS 122: Computer Science II. ZyBooks.
    Sign-up with: link.
    Enter zyBooks code: ETOWNCS122Fall2025, then subscribe.

Course Overview

Course Coverage

To continue the presentation of the essentials of computer software development using Java. Emphasis will be placed on algorithm construction using reference variables, data structures, concurrent programming using threads, file processing, exception handling, classes and object oriented programming. GUI programming will be covered and used extensively.

Student Learning Outcomes

By the end of the course, students will be able to:

  • Learn and understand object oriented programming concepts;
  • Be able to use existing objects from a library or API;
  • Be able to design and create new objects and to extend existing objects using inheritance;
  • To be able to design and create new user interfaces using a GUI;
  • Understand and be able to program standard sequential file operations;
  • To understand error and exception conditions and be able to implement exception handling;
  • Understand the basic concepts of multi-processing using threads and be able to implement multi-threaded programs;
  • Understand the basic data structures of arrays and linked lists and how to use them;
  • Understand the concept of recursion and be able to use it to solve programming problems.

Course Schedule

Schedule

Note this tentative schedule is subject to change. Please check the schedule regularly.

Last updated: 08/21/2025

Week Starting Topics Reading Notes
1 8/25/24 M: Lec1 - Course Intro & Java Lang
W: Lec2 - Data Types & Variables Week 01-1
F: Lec3 - Decisions Week 01-2
2 9/1/24 M: Labor Day, No Classes Tue: HW1 out.
W: Lec4 - Loops Week 02-1
F: Lec5 - Methods Week 02-2
3 9/8/24 M: PE 1 Week 03-1
W: Virtual Day: “Lab 1” Online Week 03-2
F: Lec6 - 1D and 2D Arrays Week 03-3
4 9/15/24 M: Lec7 - Array Lists Week 04-1 Mon: HW1 due; Project 1 out
W: Lec8 - I/O and Exception Week 04-2
F: Lec9 - Objects and Classes Week 04-3
5 9/22/24 M: Lec10 - Inheritance Week 05-1 Mon: HW2 out
W: Lec11 - Interfaces Week 05-2
F: Lec12 - GUI Week 05-3
6 9/29/24 M: PE 2 Week 06-1
W: Lab 2 Week 06-2
F: Lab Test 1
7 10/6/24 M: Exam 1 Preview Week 07-1 Mon: HW2 due
W: Exam 1
F: Fall Break, No Classes
8 10/13/24 M: Lec13 - Tank World Phase 1 Week 08-1 Mon: Project 1 due; Project 2 out
W: Lec14 - Advanced GUI Week 08-2
F: Lec15 - Object-oriented Design Week 08-3
9 10/20/24 M: Lec16 - Recursion Week 09-1 Mon: HW3 out
W: Lec17 - Recursion Examples Week 09-2
F: Lec18 - Sorting Week 09-3
10 10/27/24 M: Lec19 - Searching Week 10-1
W: PE 3 Week 10-2
F: Lab 3 Week 10-3
11 11/3/24 M: Lec20 - Tank World Phase 2
Multithreading
Week 11-1 Mon: Project 2 due; Project 3 out
W: Lec21 - Synchronization Week 11-2
F: Lec22 - Avoiding Deadlocks Week 11-3
12 11/10/24 M: PE 4 Week 12-1 Mon: HW3 due; HW4 out
W: Lab 4 Week 12-2
F: Lab Test 2
13 11/17/24 M: Lec23 - Java Collections Week 13-1
W: Lec24 - Linked Lists Week 13-2
F: Lec25 - Sets and Maps Week 13-3
14 11/24/24 M: Lec26 - Choosing a Collection Week 14-1 Mon: HW4 due
W: Virtual Day - Project Q&A Week 14-2
F: Thanksgiving Break, No Classes
15 12/1/24 M: Exam 2 Preview Mon: Project 3 due
W: Exam 2
F: Final Exam Preview
16 12/8/24 M: No Classes
W: No Classes
Thur 11-2 PM: Final Exam

Grading Policies

Grading Weights

The final grade for this course depends upon the grades and scores earned on course components weighted as follows:

  • 5% : A number of in-class pop quizzes.
  • 15% : Bi-daily reading assignments.
  • 12%: 4 individual homework.
  • 15%: 3 team projects.
  • 12%: 4 in-class labs.
  • 16%: 2 midterm exams.
  • 10%: 2 lab tests.
  • 15%: Final exam or project.

Grades will be computed by rounding numerical percentages to the nearest integer and applying the following table:

Letter Range Letter Range Letter Range
A 93-100 B- 80-82 D+ 67-69
A- 90-92 C+ 77-79 D 63-66
B+ 87-89 C 73-76 D- 60-62
B 83-86 C- 70-72 F 0-59

In-class Team Labs

All labs are to be done in class, with the assistance of the instructor. Students are required to form a team of two to solve the lab assignments together. Each assignment will be given near the beginning of a class and must be uploaded to Canvas before the due time. Some of the labs allow for late submission till midnight with late penalty, but no submission is allowed beyond the lab day. To receive full credit, a programming assignment must compile, but partial credit will be awarded based on the understanding of the material demonstrated by the student’s code.

Individual Homework and Team Projects

All homework assignments have to be completed individually in this course. Homework assignments are “lab-like” small programs that need to be completed in a week or two.

All projects are team projects in this course. For each project, students must form a team of 2 members. Teams are responsible for dividing their workload and meeting offline for at least 2 times for each project. Documented meeting minutes have to be submitted as part of the deliverable. Students should select their teams by using the Groups tab under People, on the Canvas webpage.

Except under extreme circumstances, all members of the team will receive the same grade for each project. One member of each team is designated the leader. The files for each project should be zipped up and uploaded by the team leader using Canvas before the due date. If the project does not compile, the student will receive a score of 0.

Late Policy

In general, homework and projects will be graded by the autograder. For that reason, it is imperative that project output matches sample output to the character.

Late assignment will lose equation points per day, including weekends and holidays. For example, -1 after 1 day, -2 after 2 days, -4 after 3 days … until 8+ days students will receive 0 score. Under no circumstances should any student disclose their code, or copy the code written by other students or from an outside source. Both students will receive 0 score on the disclosed/copied assignment.

Policy Statements

Course Schedule

The most up-to-date course schedule will be posted on course website schedule page: https://peilong.github.io/courses/cs122/schedule/. Students are responsible for checking the schedule regularly. Schedule page will include: 1) teaching topics for each meeting; 2) reading assignments for each week and 3) special notes on specific days.

Course Announcements & Discussion

All course announcements will be sent to your Etown email accounts via Canvas Announcements. You are responsible for signing up for this service and checking your emails regularly.

I have created a Microsoft Teams channel (link) to facilitate course related discussion. Discussions are encouraged to be posted on the “QA” channel from Teams. Private instant messages can be sent directly to your recipient by search your recipient’s name on the “search” bar.

Attendance Policies

Attendance is expected of every student at every lecture. Students are responsible for all content covered in class as well as assigned book chapters. Due to their nature, pop quizzes cannot be made up.

Except in the case of documented emergencies, neither exams nor in-class labs can be made up afterwards. For excused absences, students must arrange to take the exam or do the lab before the normally scheduled time. Arrangements must be made with the instructor at least two weeks prior to the scheduled time.

Students are expected to maintain an attitude of respect at all times toward their colleagues, the equipment, and the instructor. Cell phones and similar devices is prohibited from using during lecturing time. Students who use offensive language, misuse computing facilities, or are otherwise disruptive of the classroom will be asked to leave.

Statement on School Closure

In the event that classes do not meet because Elizabethtown College is closed or delayed due to inclement weather or some other emergency, the slides that would have been covered during the missed classes will be posted through Canvas. Students are expected to do the assigned reading, review the slides, and e-mail the instructor with any questions. There will also be an opportunity to ask questions about the material when classes resume.

If a scheduled exam or lab is missed, it will normally be made up on the day that classes resume. If the College is closed on a day when a project is due, the project due date will also normally be extended until the day when classes resume. If circumstances render either of these makeup policies unreasonable, the instructor will send an e-mail explaining an alternative makeup opportunity to each student’s Elizabethtown e-mail account.

Statement on Academic Integrity

Check out the up-to-date statement from: Elizabethtown College Catalog, “Academic Judicial System”

Statement on the Use of ChatGPT and Generative AI Tools

The use of GenAI tools like ChatGPT to generate source code is prohibited for your assignments in this course unless otherwise noted in the syllabus. Therefore, your instructor will consider it a violation of academic integrity to use a GenAI tool for any purpose that is not explicitly outlined in assignment instructions. While this new technology can be very useful in certain contexts, it is important to make sure that its usage in the classroom setting is limited in order to ensure that you are doing original work and developing your critical thinking skills. In circumstances in which AI usage is permitted in class, you must acknowledge that usage and provide the chatbot with credit when it is a cited source. For instance, to cite ChatGPT in APA, the APA provides some direction at https://apastyle.apa.org/blog/how-to-cite-chatgpt. If you have any questions or uncertainty over the use of AI in this course, please reach out to the instructor.

Respect for Diversity

It is my intent that students from all backgrounds and perspectives be well served by this course, that students’ learning needs be addressed both in and out of class, and that the diversity that students bring to this class be viewed as a resource, strength, and benefit. I also intend to present materials and activities that respect diversity: gender, sexuality, disability, age, socioeconomic status, ethnicity, race, and culture. Please let me know if there are ways to further serve the diverse needs you or other students may have.

Religious Observances

The College is eager to facilitate individual religious beliefs and practices whenever possible while retaining course student learning outcomes. It is your responsibility to meet with the class instructor in advance to request arrangements related to your religious observances that may conflict with this class, and to make appropriate plans to make up any missed work. The following is a link from the Chaplain’s Office website where a list of Religious Holidays needing accommodations (if requested) is posted: https://www.etown.edu/offices/chaplain/index.aspx

Mental Health and Counseling Resources

Counseling Services provides a broad range of counseling and mental health support services that facilitate students’ personal, social, and academic development. The licensed mental health professionals provide short-term individual counseling, group counseling, crisis intervention, and consultation to currently enrolled students for no additional charge. Counseling services are provided in a confidential and diversity-affirming environment to help students address a variety of mental health, situational, and developmental concerns. The office is located in the Baugher Student Center, Suite 216. Appointments can be made in person or by calling 717-361-1405. Urgent walk-in services are also available. To access the after-hours crisis services, please call the 24/7 Campus Security number of 717-361-1111. For more information, please visit www.etown.edu/offices/counseling.

ADA Statement

Elizabethtown College is committed to providing access for all students to courses, programs, services, and activities. If you have a documented disability such as a learning disability, chronic illness, or a new circumstance such as a concussion and would like to request accommodations, contact Dr. Michele Moohr, Coordinator of Disability Services by phone (717-361-1227) or e-mail (moohrm@etown.edu). The Office of Disability Services can provide resources to you and facilitate communication with faculty about reasonable accommodations. After meeting with the Office of Disability Services, students must set up an appointment to meet with me, the instructor, to discuss the accommodations as they pertain to my class. Common accommodations may include extra time on exams, an alternate exam location, the ability to record class lectures, and access to content with a screen reader.

Modifications for Non-native English Speakers

Elizabethtown College is committed to providing equitable access to all courses, programs, and services for non-native (international and domestic) English speakers. Students may request tutoring, learning resources, course modifications, and learning opportunities. Students interested in seeking a course modification should contact Ms. Maria Petty (pettym@etown.edu), International Student Programs Advisor, at (717) 361-1594.

Title IX

Elizabethtown College and its faculty are committed to creating a safe and open learning environment for all students. If you or someone you know has experienced sexual harassment, including sexual assault, dating or domestic violence, and stalking, please know that help and support are available. Etown strongly encourages all members of the community to take action, seek support, and report incidents of sexual harassment to the Title IX Office. You may contact the Title IX Coordinator at reedg@etown.edu or learn more by visiting https://www.etown.edu/offices/diversity/titleix/index.aspx. 

Please be aware that faculty members are required to disclose information about suspected or alleged sexual harassment or other potential violations of the College Sexual Misconduct Policies and Procedures to the Title IX Coordinator. If the Title IX Coordinator receives information about an incident, they will reach out to offer information about resources, rights, and procedural options as a member of the campus community. Community members are not required to respond to this outreach. If you, or another student you know, wishes to speak to a confidential resource who does not have this reporting responsibility, please contact Counseling Services at 717-361-1405.

Software

Visual Studio Code

Downlaod VS Code from this link and install the Java extension. Follow the instructions posted on Canvas as “Java JDK and VSCode Installation Guide”.

Java Development Kit (JDK)

JDK comes with different vairations provided by different vendors. Some popular ones are OpenJDK, Oracle Java SE, Amazon Corretto, etc. I recommend installing Adoptium’s Temurin via VS Code – it’s so much easier for beginners. The tutorial can be found on the instructions posted on Canvas as “Java JDK and VSCode Installation Guide”.

Note:

All the software and operating systems are available on the computers in the Esbenshade 281, Hoover 108 and Nicarry 208 computer laboratories and in the Computer Science commons area (E284).

Archived from Peilong/Peilong.github.io@9d5af58 (2025-08-25).