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/29/2021
| Week | Starting | Topics | Reading | Notes |
|---|---|---|---|---|
| 1 | 1/25/21 | M: Lec1: Course introduction | Reading 1 | HW1 out |
| W: Lec2: Linux system | HW1 due on Thur midnight | |||
| F: Lec3: C language and compiling | ||||
| 2 | 2/1/21 | M: Lec4: Data representation and data types | Reading 2 | |
| W: Lec5: Input and output | ||||
| F: Lec6: Conditionals - if statement and range checking | ||||
| 3 | 2/8/21 | M: Lec7: Switch statement and scope | Reading 3 | HW2 out. |
| W: PE1 – Flowchart and Debugging | ||||
| F: Lab 1 | ||||
| 4 | 2/15/21 | M: Lec8: Writing a simple Makefile | Reading 4 | Project 1 out. |
| W: Lec9: While loops and do-while loops | ||||
| F: Lec10: For loops | ||||
| 5 | 2/22/21 | M: PE2: Conditionals and loops | Reading 5 | HW2 due Mon; HW3 out. |
| W: Lab 2 | ||||
| F: Lec11: Functions | ||||
| 6 | 3/1/21 | M: Lec12: Function examples | Reading 6 | |
| W: No Class - Day of Service | ||||
| F: Lec13: Advanced Makefile - compiling multiple files | ||||
| 7 | 3/8/21 | M: Lec14: Pointers and pointer arguments | Reading 7 | HW3 due Mon. |
| W: Lec15: More on pointers | ||||
| F: Midterm preview; bring your questions | ||||
| 8 | 3/15/21 | M: Midterm exam | Reading 8 | Project 1 due Mon; Project 2 out. |
| W: PE3: Functions and pointers | ||||
| F: Lab3 | ||||
| 9 | 3/22/21 | M: Lec16: 1D Arrays | Reading 9 | HW4 out. |
| W: Lec17: 2D arrays; arrays with functions | ||||
| F: Lec18: Character arrays and strings | ||||
| 10 | 3/29/21 | M: Lec19: Structures | Reading 10 | |
| W: Lec20: Nested structures | ||||
| F: No Class - College Holiday | ||||
| 11 | 4/5/21 | M: PE4: Structures | Reading 11 | HW4 due Mon; HW5 out. |
| W: Lab 4 | ||||
| F: Lec21: Dynamic memory allocation | ||||
| 12 | 4/12/21 | M: Lec22: Dynamic memory allocation examples | Reading 12 | Project 2 due Mon; Project 3 out. |
| W: Lec23: Linked lists - add/search | ||||
| F: Lec24: Linked lists - delete | ||||
| 13 | 4/19/21 | M: No Class | Reading 13 | HW5 due Mon; |
| W: PE5: Dynamic memory allocation | HW6 out on Wed. | |||
| F: Lab 5 | ||||
| 14 | 4/26/21 | M: Lec25: File I/O | Reading 14 | |
| W: Lec26: Character and Line I/O | ||||
| F: Lec27: Bitwise operators | ||||
| 15 | 5/3/21 | M: Final exam preview | ||
| W: Final exam QA | ||||
| F: No Class - Reading Day | HW6 due Fri. | |||
| 16 | 5/10/21 | Final exam: Wed 5/10, 11 AM - 2 PM | Project 3 due Mon. | |
| 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 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 (https://etown.instructure.com/) before the end of the class. 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. Typically, you will have about two weeks to complete each assignment.
All projects are team projects in this course. For each project, all students must form teams of two members. Students are permitted to select their own teams; however, no two students may partner up for more than one project. In other words, each team will be different for each project. Students should select their teams by using the Groups tab under People, on the Canvas webpage.
Teams are responsible for dividing their workload and meeting offline for at least 3 times. Documented meeting minutes have to be submitted as part of the deliverable. 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. Projects must not be stored in a public folder. If the project does not compile, the student will receive a score of 0.
Homework and projects will be graded based on the following criteria:
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.
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 Etown email accounts via Canvas Announcements. You are responsible for signing up for this service and checking your emails regularly.
Every student should sign up for Microsoft Teams and join the course discussion channel “EGR-CS222-SP21”. Discussions are encouraged to be posted on this channel. Private instant messages can be sent directly to your recipient, e.g. the instructor “Dr. Li”.
Join my Teams group: link.
Attendance is expected of every student at every lecture. Students are responsible for all content covered in class as well as assigned book chapters. Students should come to class with their text books, having read the material to be covered that day. Students who have not prepared for class may be asked to leave.
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. Students are expected to refrain from using the computers for non-course related purposes during class time and will be penalized 1% of the final grade for each occurrence. Cell phones and similar devices should be turned off before entering the classroom. 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 posted through Piazza group. 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.
Please refer to the Student Handbook for the college’s policy. All projects and assignments must be completed by students individually, without assistance from anyone other than the instructor. Students can discuss the course material with each other at a conceptual level, but each student must do his or her own work. For projects, exams, and all other activities in the course, students are expected to act according to the official policy on academic dishonesty and the highest standards of personal integrity.
The first infraction of academic honesty in this course will carry a penalty of a 0 for the project, lab, or exam in question and a reduction of a full letter grade in the final grade. If a second infraction occurs, the students involved will fail the course, and the instructor will seek the maximum penalty possible under the college’s regulations, up to and including expulsion.
Full statement can be found at link. Elizabethtown College welcomes otherwise qualified students with disabilities to participate in all of its courses, programs, services, and activities. If you have a documented disability and would like to request accommodations in order to access course material, activities, or requirements, please contact the Director of Disability Services, Lynne Davies, by phone (361-1227) or e-mail daviesl@etown.edu. If your documentation meets the college’s documentation guidelines, you will be given a letter from Disability Services for each of your professors. Students experiencing certain documented temporary conditions, such as post-concussive symptoms, may also qualify for temporary academic accommodations and adjustments. As early as possible in the semester, set up an appointment to meet with the instructor to discuss the academic adjustments specified in your accommodations letter as they pertain to my class.
All students are expected to adhere to the established community expectations around safety, including: daily digital health reporting, physical distancing, proper wearing of facial coverings within buildings and classrooms and when within six feet of individuals outdoors, frequent handwashing, and participation in cleaning and sanitizing protocols as requested. You will be turned away from class if you do not have a face covering. Students diagnosed with a health condition that precludes mask wearing can contact Lynne Davies in Disability Services (daviesl@etown.edu) to request remote learning as a reasonable accommodation.
If you are exhibiting any symptoms of COVID or fail to pass the daily health screen, do not come to class. Failure to adhere to the established community expectations around safety will result in notification of Campus Security and application of the student conduct process for failure to comply, endangering the well-being of others, and/or disorderly conduct. The student code of conduct applies also to participation in all virtual activities, including Zoom sessions and discussion boards
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.
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@7f21e9c (2021-04-29).