Archived · Spring 2024

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 2024. 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. 2023, zyBooks.
    • Sign in or create an account at: learn.zybooks.com
    • Enter zyBook code: ETOWNCS222EGR222LiSpring2023
    • Subscribe. Subscription fee: $58. 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: 01/18/2023

Week Starting Topics Reading Notes
1 1/15/24 M: MLK Day, No Classes Tue: HW1 out
W: Lec1 - Course introduction; Google Cloud intro Thur: HW1 due
F: Lec2 - Unix and Linux; Command line interface Week 1-1
2 1/22/24 M: Lec3 - C language; Compilation in Linux Week 2-1 Mon: Project 1 out
W: Lec4 - Data Types; Systems programming Week 2-2
F: Lec5 - printf and scanf; Linux Kernel Week 2-3
3 1/29/24 M: Lec6 - If and switch statements Week 3-1 Mon: HW2 out
W: PE1 - Flowchart and debugging Week 3-2
F: Lab1 Week 3-3
4 2/5/24 M: Lec7 - Writing a Makefile Week 4-1
W: Lec8 - While and do-while loops Week 4-2
F: Lec9 - For loops Week 4-3
5 2/12/24 M: PE2 - Conditionals and loops Week 5-1 Mon: HW2 due
W: Lab2 Week 5-2
F: Lec10 - Functions Week 5-3
6 2/19/24 M: Lec11 - Function exercises Week 6-1 Mon: Project 1 due
W: Lec12 - Module 1 summary & exam 1 preview Week 6-2
F: Exam 1
7 2/26/24 M: Lec13 - Cloud computing and containerization Week 7-1 Mon: Project 2 out
W: Lec14 - Docker exercises Week 7-2
F: Lec15 - Pointers and pointer arguments Week 7-3
8 3/4/24 M: Spring Break; No Classes
W: Spring Break; No Classes
F: Spring Break; No Classes
9 3/11/24 M: PE3 - Functions and pointers Week 9-1 Mon: HW 3 out
W: Lab3 Week 9-2
F: Lec16 - C arrays Week 9-3
10 3/18/24 M: Lec17 - 2D arrays; arrays with functions Week 10-1
W: Lec18 - Character arrays and strings Week 10-2
F: Lec19 - Structures Week 10-3
11 3/25/24 M: Lec20 - Nested structures Week 11-1 Mon: HW 3 due
W: PE4 - Structures Week 11-2
F: College Holiday, No Classes
12 4/1/24 M: Lab4 Week 12-1 Mon: Project 2 due
W: Lec21 - Module 2 summary & exam 2 preview Week 12-2
F: Exam 2
13 4/8/24 F: Lec22 - Dynamic Memory Allocation (DMA) Week 13-1 Mon: Project 3 out
M: Lec23: DMA examples Week 13-2
W: Lec24: Linked list part 1 Week 13-3
14 4/15/24 M: Lec25: Linked list part 2; PE5 start Week 14-1 Mon: HW 4 out
W: PE5 - DMA Week 14-2
F: Lab5 Week 14-3
15 4/22/24 M: Lec26 - File I/O Week 15-1
W: Lec27 - Character and line I/O Week 15-2
F: Lec28 - Bitwise operation Week 15-3
16 4/29/23 M: Lec29 - Course review and final exam preview Mon: HW 4 due
W: Final exam Q&A
F: No class
17 5/6/23 M: No class Mon: Project 3 due
Tue 5/7: Final exam 7:30 - 10:30 AM
F: Enjoy your summer break!

Grading Policies

Grading Weights

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

  • 4% : A number of in-class pop quizzes.
  • 15%: Bi-daily reading assignments.
  • 16%: 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 Plagiarism

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

Statement on the Use of ChatGPT and Generative AI Tools

To maintain course integrity and ensure equal opportunity for all students, submissions generated by artificial intelligence (AI) systems, including ChatGPT, Bing Chat, Claude, Google Bard, or similar tools, are not allowed for classwork or assessments. Such AI usage diminishes the development of critical skills vital for academic success. While students can use AI for research and idea generation, all submitted work must be their original writing. It’s essential to recognize both the advantages and limitations of AI in learning and research. AI suggestions aren’t always accurate, so students should assess AI outputs critically. Breaching this guideline results in academic misconduct. Seek clarification if uncertain about AI usage in assignments.

Statement on Disability

Full statement can be found at: Course Syllabus on Disability Services, Religious Observances, and COVID related expectations.

Diversity and Inclusivity Statement

I consider this classroom to be a place where you will be treated with respect, and I welcome individuals of all ages, backgrounds, beliefs, ethnicities, genders, gender identities, gender expressions, national origins, religious affiliations, sexual orientations, ability - and other visible and non-visible differences. All members of this class are expected to contribute to a respectful, welcoming and inclusive environment for every other member of the class.

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@7c67d16 (2024-01-16).