![]() |
Reminder: These notes will be taken down permanently on Friday, December 16, 2016. If you want to save a copy for yourself, please download them before that time. |
![]() |
"There is no doubt that learning the fundamentals of a programming language is not as much fun as writing programs. However, not knowing the fundamentals makes writing programs a lot less fun." -- Kenneth A. Reek
Information
If you have any questions about any assignment, please post the questions in the CS120 Forum on the CS120 Moodle website. There are many people that can answer your question. If you just send your question to me in an email, it may be a while until (or if) I get back to you. Also, if you have a question about the assignment, it's very likely that many other students have the same question and they will benefit from the posted answers.
References
C Library References:
The zip file contains version 5.4.0 of the GNU C/C++ compilers and command-line utilities. The zip file is about 530 MB and extracts to about 1.5 GB. Creates a folder named cygwin64 on the C: drive.
This will list all of the directories in the PATH with each on a separate line. That is:path | tr ; "\n"
Token Meaning path Displays the PATH as one long line | A vertical bar (pipe symbol), usually on the key with the backslash (\) tr The translate command ; A semi-colon (usually to the right of the letter 'L' on the keyboard). On Linux and Mac OS X it's a colon instead. "\n" A double quote, backslash, lowercase letter 'N', double quote
Version 5.4.0 is what is installed with Cygwin on the computers at Digipen. That's also the
version in the download for Cygwin. For non-Windows users, if you can't get version 5.4.0,
any 5.x.x version will probably be fine. We won't be using any of the advanced features of
C that are in 5.x, but you do want to have the closest version possible so that you will
get the same errors and warnings that 5.4.0 emits.
For Linux people, I recommend Linux Mint 18, which comes with version 5.4.0, although any
distribution that includes that compiler version will work.
Notes
Homework Assignments
Assignment | You should have completed the work by the end of this date. (You aren't turning anything in for these assignments.) |
---|---|
Read Chapter one in the textbook. | Friday, September 9, 2016. |
1. Read chapters 1 and 2 from An Introduction to GCC 2. Install Cygwin on your own computer (if you intend on programming on your own computer) | Monday, September 12, 2016. |
Chapter 2: Exercises #1 - 10 | Friday, September 16, 2016. |
Chapter 3: Exercises #1, #2, #4, #5 | Friday, September 23, 2016. |
Study quiz #1 | |
Study quiz #2 | |
Chapter 4: Exercises #1, #9, #10, #11, #12, #14, #15 | Wednesday, September 28, 2016. |
Chapter 5: Exercises #1, #2, #3, #5, #6, #7, #8, #10, #11 | Friday, September 30, 2016 |
Study quiz #3 | |
Chapter 6: Exercises #1, #2, #3, #4, #5, #8, #11, #14 | Wednesday, October 5, 2016 |
Chapter 9: Exercises #1, #2, #3, #4, #7, #8, #9 | Friday, October 7, 2016 |
Study quiz #4 | |
Study quiz #5 | |
Chapter 8: Exercises #1, #2, #3, #5, | Friday, October 21, 2016 |
Chapter 7: Exercises #2, #3, #4, #5, #6, #9 through #14 | Monday, October 24, 2016 |
Chapter 11: Exercises #1, #2, #3, #5, #6 | Wednesday, October 26, 2016 |
Chapter 12: Exercises #1, #2, #3, #5, #6, #8 | Wednesday, November 2, 2016 |
Chapter 13: Exercises #1, #2, #5, #7, #8, #9, #10, #12, #14 | Friday, November 4, 2016 |
Study quiz #6 | |
Study quiz #7 | |
Chapter 22: Exercises #1, #2, #3, #11, #12, #13 | Monday, November 7, 2016 |
Familiarize yourself with these functions: sprintf, strcat, strcpy, fopen, fclose, fread, malloc, memset | Thursday, November 10, 2016 |
Study quiz #8 | |
Chapter 16: Exercises #1, #2, #3, #5, #6, #9 | Wednesday, November 16, 2016 |
Chapter 17.1-17.6: Exercises #1, #2, #3, #4, #7 | Friday, November 18, 2016 |
Study quiz #9 | |
Study quiz #10 | |
Read section 8.2 in the textbook | |
Read The Perils Of Java Schools This is why Digipen grads are sought after by many of the biggest software companies around. If you want an "easy" CS degree, go somewhere else. There are plenty of schools to choose from. Here's another good article from Joel that maybe should help you appreciate why we do it this way. | Wednesday, December 7, 2016 |
Additional Reading Assignments (required)
Interesting Reading (optional for everyone)
Advanced Reading (optional for the advanced student)