This course covers advanced programming and machine representation of data and data structures, including dynamic structures and files.
Dr. Peilong Li
Esbenshade 284B
By email
4
This course covers advanced programming and machine representation of data and data structures, including dynamic structures and files. Topics include C language syntax, memory allocation, run-time data organization, function linkage and parameter passing, and the relationship between high-level and machine languages. C is the primary language of instruction with Java being a comparative language. Linux operating system and command line skills will be introduced throughout the course.
By the end of the course, students will be able to:
Note this tentative schedule is subject to change. Please check the schedule regularly.
Last updated: 04/09/2022
| Week | Starting | Topics | Reading | Notes |
|---|---|---|---|---|
| 1 | 1/17/22 | M: MLK Day, No Classes | Reading 1 | HW1 out |
| W: Lec1: Course introduction | HW1 due on Thur midnight | |||
| F: Lec2: Linux and command line | ||||
| 2 | 1/24/22 | M: Lec3: C language; Compilation in Linux | Reading 2 | |
| W: Lec4: Data types; | ||||
| F: Lec5: Printf and scanf; Linux Kernel | ||||
| 3 | 1/31/22 | M: Lec6: If and switch statements | Reading 3 | HW2 out. |
| W: PE1 - Flowchart, debugging | ||||
| F: Lab 1 | ||||
| 4 | 2/7/22 | M: Lec7: Simple Makefile | Reading 4 | Project 1 out. |
| W: Lec8: While, Do-while loops | ||||
| F: Lec9: For loops | ||||
| 5 | 2/14/22 | M: Lec10: Functions | Reading 5 | HW2 due Mon; HW3 out. |
| W: Lec11: Function examples | ||||
| F: PE2 - Conditionals and loops | ||||
| 6 | 2/21/22 | M: Lab 2 | Reading 6 | |
| W: Lec12: Module 1 summary and exam 1 preview | ||||
| F: Exam 1 | ||||
| 7 | 2/28/22 | M: Spring Break, No Classes | ||
| W: Spring Break, No Classes | ||||
| F: Spring Break, No Classes | ||||
| 8 | 3/7/22 | M: Lec13: Cloud computing and Docker | Reading 7 | HW3 due Mon; Project 1 due Mon. |
| W: Lec14: Pointers and pointer arguments | ||||
| F: Lec 15: More on pointers | ||||
| 9 | 3/14/22 | M: PE3 - Functions and pointers | Reading 8 | Project 2 out. |
| W: Lab3 | ||||
| F: Lec16: C Arrays | ||||
| 10 | 3/21/22 | M: Lec17: 2D arrays; arrays with functions | Reading 9 | |
| W: Lec18: Character arrays and strings | ||||
| F: Lec19: Structures | ||||
| 11 | 3/28/22 | M: Lec20: Nested structures | Reading 10 | HW4 out |
| W: PE4 - Structures | ||||
| F: Lab 4 | ||||
| 12 | 4/4/22 | M: Lec21: Module 2 summary and exam 2 preview | Reading 11 | |
| W: Dr. Li fighting with stomach bug | ||||
| F: Exam 2 | ||||
| 13 | 4/11/22 | M: Lec22: Dynamic memory allocation | Reading 12 | Project 2 due Mon; Project 3 out. |
| W: Lec23: Dynamic memory allocation examples | ||||
| F: College Holiday, No Classes | ||||
| 14 | 4/18/22 | M: Lec24: Linked lists - add/search | Reading 13 | HW4 due Mon; HW5 out. |
| W: PE5: Dynamic memory allocation Part 1 | ||||
| F: PE5: Dynamic memory allocation Part 2 | ||||
| 15 | 4/25/22 | M: Lab 5 | Reading 14 | |
| W: Lec26: File I/O | ||||
| F: Lec27: Character and Line I/O | ||||
| 16 | 5/2/22 | M: Lec28: Course review and final exam preview | All notes | HW5 due Mon |
| W: Final exam Q&A | ||||
| F: No Class | ||||
| 17 | 5/9/22 | M: No Class | Project 3 due Mon. | |
| W: Final Exam 7:30 - 10:30 AM | ||||
| Week # | Reading # | Assignments |
|---|---|---|
| 1 | Reading 1 | C: 1.1, 2.1-2.8, 7.4, Linux: 1.1-1.2 |
| 2 | Reading 2 | C: 3.1-3.4, Linux: 2.1-2.7 |
| 3 | Reading 3 | C: 3.5-3.7, Linux: 6.1-6.7 |
| 4 | Reading 4 | C: 4.1-4.4 |
| 5 | Reading 5 | C: 4.5, 4.8-4.11 |
| 6 | Reading 6 | C: 5.1-5.2, 5.4, 5.11 |
| 7 | Reading 7 | Tutorial1, Tutorial2, Tutorial3 |
| 8 | Reading 8 | C: 1.6, 5.3-5.9 |
| 9 | Reading 9 | C: 6.1-6.4, 6.7 |
| 10 | Reading 10 | Tutorial4, Linux 7.1 |
| 11 | Reading 11 | Tutorial5, C: 6.5 |
| 12 | Reading 12 | Tutorial6 |
| 13 | Reading 13 | C: 7.5, 7.7, Linux: 4.1-4.7 |
| 14 | Reading 14 | All notes |
The final grade for this course depends upon the grades and scores earned on course components weighted as follows:
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 |
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.
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 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.
I recognize that students may need to miss classes due to personal health reasons or for community measures necessary to promote public health. I have already prepared to substitute a reasonable educational experience aligned with that day’s learning objectives for students who miss class due to illness or quarantine.
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.
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 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.
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.
Check out the up-to-date statement from: Elizabethtown College Catalog, “Academic Judicial System”
Full statement can be found at: Course Syllabus on Disability Services, Religious Observances, and COVID related expectations.
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.
You need an Integrated Development Environment (IDE) that contains a GCC compiler, and a machine that supports Linux command line in this course.
There are many IDEs you can choose, e.g., Eclipse, Code::Blocks, Visual Studio, and CLion, etc, but for the purpose of in-class demonstration, I will stick with Visual Studio Code.
Downlaod VS Code from this link. Follow the instructions from HW1 to install the C/C++ extensions.
For Windows users, install MinGW-64 for the GCC compiler. For Mac users, install Apple’s version of GCC - Clang: Tutorial 1, or Tutorial 2.
Windows Options: 1) use Windows and Ubuntu 18.04 (or newer) dual-boot systems; 2) running Ubuntu on a virtual machine (e.g. virtualbox); 3) Ubuntu App on Windows 10; 4) Use Windows PowerShell; 5) Use the campus server cs64.etown.edu.
MacOS Options: Use the default Terminal.app application.
Linux Options: You are on your own.
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@606f37f (2022-04-23).