Archived · Spring 2025

CS/EGR 222 Systems Programming

All offerings: Spring 2019Spring 2020Spring 2021Spring 2022Spring 2023Spring 2024Spring 2025 Current course page →
This is the course website as it was published for Spring 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

Advanced system programming course covering C, Linux, Virtual Machines, Cloud Computing, and Containers in modern programming contexts.

Instructor:

Dr. Peilong Li

Office:

Esbenshade 284B

Appointments:

By email

Number of Credits

4

Pre-requisites

  • CS 122 Computer Science II

Textbooks

  • (Required) Peilong Li. CS 222/EGR 222 Systems Programming. 2025, zyBooks.
    • Sign in or create an account at: learn.zybooks.com
    • Enter zyBook code: ETOWNCS222EGR222LiSpring2025
    • Subscribe. Subscription fee: $89. Valid through end of May.

Course Overview

Course Coverage

This course provides an in-depth exploration of advanced programming, emphasizing system programming, machine representation of data, dynamic structures, and files. It covers C language syntax, memory allocation, run-time data organization, function linkage, parameter passing, and the interplay between high-level and machine languages. The curriculum also introduces Linux OS and command-line skills, and integrates concepts of Virtual Machines, Cloud Computing, and Container technologies, reflecting current trends in the system programming landscape.

Student Learning Outcomes

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

  • Apply knowledge of computing and mathematics appropriate to the discipline, including common data structures and basic algorithms, to solve problems
  • Analyze a problem and identify and define the computing requirements appropriate to its solution
  • Design, implement, and evaluate a computer-based system, process, component or program, including operating systems, to meet desired needs
  • Function effectively on teams and use software engineering principles to accomplish a common goal
  • Understand fundamentals of procedural programming with applications in electrical and computer engineering and embedded systems
  • Understand hardware and software elements of data communications and computer networking
  • Compare and contrast the features of the Java and C programming languages
  • Manage memory allocation explicitly
  • Perform low-level file access in programs

Course Schedule

Schedule

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

Last updated: 03/09/2025

Week Starting Topics Reading Notes
1 1/13/25 M: Lec1 - Course introduction; Google Cloud intro Mon: HW1 out
W: Lec2 - Unix and Linux; Command line interface Week 1-1 Thur: HW1 due
F: Lec3 - C language; Compilation in Linux Week 1-2
2 1/20/25 M: MLK Day; No Classes Wed: Project 1 out
W: Lec4 - Data Types; Linux basics Week 2-1
F: Dr. Li on travel; No Classes Week 2-2
3 1/27/25 M: Lec5 - printf and scanf; Linux Kernel Week 3-1 Mon: HW2 out
W: Lec6 - If and switch statements; PE1 - Debugging Week 3-2
F: Lab1 Week 3-3
4 2/3/25 M: Lec7 - Writing a Makefile Week 4-1
W: Lec8 - While, do-while and for loops Week 4-2
F: Lec9 - Functions Week 4-3
5 2/10/25 M: PE2 - Control flow and functions Week 5-1 Mon: HW2 due
W: Lab2 Week 5-2
F: Lec10 - Cloud computing and containerization Week 5-3
6 2/17/25 M: Lec11 - Docker exercises Week 6-1 Mon: Project 1 due; Project 2 out
W: Lec12 - Pointers and pointer arguments Week 6-2
F: Lec13 - Module 1 summary & exam 1 preview Week 6-3
7 2/24/25 M: Exam 1
W: Dr. Li on travel; No Classes
F: Dr. Li on travel; No Classes
8 3/3/25 M: Spring Break; No Classes
W: Spring Break; No Classes
F: Spring Break; No Classes
9 3/10/25 M: Lec14 - Exam review & Project 2 Week 9-1 Mon: HW3 out
W: PE3 - Functions and pointers Week 9-2
F: Lab3 Week 9-3
10 3/17/25 M: Lec15 - C arrays Week 10-1
W: Lec16 - 2D arrays; arrays with functions Week 10-2
F: Lec17 - Character arrays and strings Week 10-3
11 3/24/25 M: Lec18 - Structures Week 11-1 Mon: HW 3 due
W: Lec19 - Nested structures Week 11-2
F: PE4 - Structures Week 11-3
12 3/31/25 M: Lab4 Week 12-1 Mon: Project 2 due; Project 3 out
W: Lec20 - Module 2 summary & exam 2 preview Week 12-2
F: Exam 2
13 4/7/25 M: Lec21 - Dynamic Memory Allocation (DMA) Week 13-1 Mon: HW 4 out
W: Lec22: DMA examples Week 13-2
F: Lec23: Linked list part 1 Week 13-3
14 4/14/25 M: Lec24: Linked list part 2; PE5 start Week 14-1
W: PE5 - DMA Week 14-2
F: Easter Break; No Classes
15 4/21/25 M: Lab5 Week 15-1 Mon: HW 4 due
W: Lec25 - File I/O Week 15-2
F: Lec26 - Character and line I/O Week 15-3
16 4/28/25 M: Lec27 - Course review and final exam preview Mon: Project 3 due
W: Final exam Q&A
F: Final exam 11:00 AM - 2:00 PM

Grading Policies

Grading Weights

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

  • 8% : A number of in-class pop quizzes.
  • 15%: Bi-daily reading assignments.
  • 12%: 4 individual homework.
  • 15%: 3 team projects.
  • 15%: 5 in-class labs.
  • 20%: 2 midterm exams.
  • 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 Labs

All labs are to be done individually, in class, with the assistance of the instructor. 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 with the diff utility. 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/cs222/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 E-Town 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 Lynne Davies, Director of Disability Services by phone (717-361-1227) or e-mail (daviesl@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 our 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

In recognition of the diverse linguistic backgrounds of our international students, we offer several accommodations to ensure a fair and supportive learning environment.

  • Exams: If you encounter unfamiliar terms not covered in class, the Testing Center proctors are authorized to assist with translations. This support aims to clarify the meaning without providing an advantage.
  • Oral Presentations: International students, along with those who have auditory processing challenges, may request extended time for presentations. You are also permitted to use written notes to aid your delivery. Time adjustments will be made on a case-by-case basis to ensure you can effectively convey your knowledge while staying within reasonable limits.

If you require these or other accommodations, please communicate your needs in advance so appropriate arrangements can be made.

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

Google Cloud Platform

Google Cloud Platform (GCP) is the main development environment we will be using in this course. Refer to the guide on Canvas for setup. link.

Once the setup is ready, you will have:

  • A virtual machine running with Ubuntu 20.04 LTS
  • A lightweight desktop GUI that allows for remote desktop connection
  • GNU C development toolset: GCC compiler, GDB debugger, make utility, etc.
  • Docker engine.
  • Visual Studio Code IDE, and other desktop applications.

Archived from Peilong/Peilong.github.io@43ba252 (2025-03-31).