Assignments.Assignments are due some Sunday nights at midnight. Programs must operate correctly on the student server. Two thirds of an assignment grade is correctness; two ninths is timeliness and one ninth is style. Source code or response text for each assignment must be submitted using the ~abrick/send program. Submissions and resubmissions after the assignment's due date cannot earn full timeliness credit, which diminishes linearly from 1 to 0 in the week after an assignment is due. No assignments at all are accepted after the due date of the semester's last assignment. If my systems or I are incapacitated or cannot receive student work, no lateness penalties will be assessed. Compare to exercises.
Caveats.All dates, scores, and texts published on this site are provisional. Please inquire if you think there may be an error.
Contact.I am always available to students by email and at my office hours. I generally respond to messages within three working days. You can make contact with me on LinkedIn when you pass one of my courses.
Enrollment.I offer add codes at my office to any students, wait listed or not, who need one during the first two weeks of a course that can accomodate them. You are responsible for dropping yourself if you decide to leave the class.
Exams.Expect two comprehensive exams per semester, each one hour in duration and consisting of five conceptual and technical problems. Books, notes, and computers are permitted. You will not be asked to compose complete programs. Students in my online classes must attend on-campus exams proctored by the instructor. Prepare for exams by reviewing the assigned reading. Late exams will not be given, but early ones can be taken at my office hours in advance of the exam date. Afterwards, you can also review your exam at my office hours or receive a copy of it in the mail by turning it in with a self-addressed stamped envelope. Ranked-choice voting assesses project success for scores in project courses.
Exercises.Exercises are ungraded work which need not be turned in. Compare to assignments.
Extra Credit.To earn extra credit while enrolled in my class, catch up on your homework assignments and propose to me an interesting or useful project you want to pursue. See also independent study.
Grades.Your current grades and detailed comments on your work will be published on this web page through the semester. Mouse over an italicized score to see details pop up in a tooltip. (If this does not work in your browser, one workaround is to read the page source.) Two thirds of the raw grade is homework; two ninths are exam(s) and one ninth is participation. Each raw score is ranked to calculate a percentile which is compressed into the top third of the scale. A final score is the mean of the raw score and the compressed percentile. A, B, C, and D grades represent final scores in the first, second, third, and fourth deciles.
Help.We all need help, all the time. Every course has group discussion in a classroom or an online forum. The Academic Computing Resource Center in Batmale Hall offers orientations and peer tutoring. You may always come to the instructor's office hours with your questions and without making an appointment.
In-person classes.Studying in person, on campus, means having more personal interaction and interchange with your peers and instructor. This context is conducive to group discussion, but requires class attendance at certain hours, which is logistically challenging for many students. See also online classes.
Independent Study.I supervise independent study projects. They have to be useful, novel, and serious to be worth our time. Propose your project to me in person so that we can discuss it. See also extra credit.
Online classes.Online study is a learning experience suited for self-starters and remote learners. While doing the same readings and assignments as your peers in an in-person class, you will be expected to communicate with peers and instructor at least weekly in a message forum, and to attend two evening exams on campus per semester. There is always an optional evening orientation when the course begins. See also in-person classes.
Participation.Expect to participate by cooperating in work, asking questions, citing resources, and assisting your colleagues. Your participation in forums and classes will be assessed using secret, random participation tokens which you redeem using the ~abrick/send program. In-person classes may receive as many as one token per meeting; online classes as many as one token per week. Your participation in projects will be calculated based on your colleagues' collective judgment of your contribution.
Plagiarism.All students must do their own work. If you turn in plagiarized work, be prepared to receive a zero or even negative credit at the instructor's discretion. See the Rules of Student Conduct.
Services. You will need to access the student Linux server hills.ccsf.edu using an ssh client. On Linux and Mac systems one is preinstalled with the name ssh. On Windows you can try PuTTY and on Android, ConnectBot; any alternative is fine. Your hills username is the same as your CCSF email name: up to eight characters long. Your initial password is based on your birthday and first and last initials, in the form jan0188.fl. Passwords will not be shown as you type them, and you will have to change the default right away. If you mean to connect wirelessly on campus, the network to use is CCSF Student.
Style.Learning to program requires learning good style. A program earning a low style score might exhibit compilation or runtime errors; lack sufficient comments in the source code; violate norms of indentation, or name capitalization; or contain redundant, copy-and-pasted code. A program earning a high score will throw no errors, have copious comments, good indentation and capitalization, and be concise. In Python, triple-quoted strings, which are true objects, are excluded from the comment assessment.
- My Spring & Fall courses
- Web4 / WebSTARS
- WiFi Instructions
- Student email accounts
- Batmale 413 Linux machines
- Computer Usage Policy
- Computer Science department
- TechSF support programs at BAVC
- Disabled Students Programs & Services
- Academic Computing Resource Center
|Welcome||none||• Course policies|
|Server||1/24 orientation||• Kevin Heard's UNIX Tutorial 1-5|
|Programs||none||• Downey 1|
|Development||none||empty, due 2/12: Make a copy of /users/abrick/resources/empty.cpp and add a comment to it.||• T.S. Nguyen's g++ Tutorial|
• Outspeaking's What is Programming
|Output||none||• Downey 2|
|Integers||none||• Downey 3|
|Mathematics||none||countyfair, due 3/5: You are hired to make and sell 1000 cups of lemonade at the county fair. How much does it cost you to prepare each serving?||• David Kieras's Formatting Numbers with C++ Output Streams|
|Pseudorandomness||none||• Alex's Random number generation|
|Conditions||3/14 exam||• Downey 4|
|Loops||none||• Programiz's C++ while and do...while Loop|
|Arrays||none||lotteries, due 4/2: Extend last week's program to plays the lottery until it wins ten times and then calculate the average number of draws it took to win.||• C++ Arrays http://www.programiz.com/cpp-programming/arrays|
|Functions||none||• Downey 5 and 6.6 through 6.11|
|Strings||none||• Kurt McMahon's C strings and C++ strings|
• Downey 7
|Parameters||none||greetbyname, due 4/23: Expand last week's program by making the greeting function expect an argument indicating the name of the person to be greeted.||• Tutorialspoint's C++ Functions|
|Input||none||• Lucia Moura's Command Line Arguments in C++|
|Files||none||• Downey 15|
|Text Analysis||none||stem, due 5/14: Write a program that shows all words in the dictionary /users/abrick/resources/english starting with the first command line argument (the stem).||• What's the difference between college-level and corporate programming?|
|Farewell||5/16 exam||• Joe Crumpton's C++ Reference Card|
|Welcome||none||• Course policies|
|Server||1/24 orientation||• Kevin Heard's UNIX Tutorial 1-5|
|Interpreter||none||name, due 2/5: Write a program that prints out your full name.||• Downey 1|
|Types||none||• Floating Point Arithmetic: Issues and Limitations|
• Downey 8
|Math||none||• Downey 2|
|Containers I||none||reverse, due 2/26: Write a program that prints out its own command line arguments in reverse order from last to first.||• Downey 10 and 12|
|Containers II||none||• Downey 3 and 11|
|Flow||none||• Downey 5 and 7|
|Functions||3/14 exam||bits, due 3/19: Write a program that responds to a positive integer passed on the command line with the number of bits needed to express that number in binary. The number can be calculated either with a logarithm or by producing a binary representation and measuring its length.||• Downey 6|
|Object orientation||none||• Downey 15 and 17|
|Exceptions||none||• Aaron Maxwell's Exceptional Logging of Exceptions in Python|
|Files||none||stem, due 4/9: Write a program that shows all words in the dictionary /users/abrick/resources/english starting with the first command line argument (the stem).||• Downey 9 and 14|
|Web service||none||• Marek Kubica's HOWTO Use Python in the web|
|Web client||none||• Mouse vs. Python's Python 101: An Intro to urllib|
|Regular expressions I||none||abcdef, due 4/30: The letters A through F are used for writing hexadecimal numbers and can also spell a few English words. Write a program that finds the longest word in the dictionary /users/abrick/resources/english that is spelled using only those six letters.||• A. M. Kuchling's Regular Expression HOWTO|
|Regular Expressions II||none||• Praveen Gollakota's Regular expressions in Python - the re module|
|Games||none||hangman, due 5/14: Implement an interactive version of hangman. The game should pick a random word from the dictionary using rules of your choosing. Give the user a series of chances to guess the letters in it. Show underscores for the letters not yet guessed. The game should end when either all the letters have been guessed (the user wins) or the user has made five incorrect guesses (the user loses and is shown the word).|
- Machtelt Garrels's Bash Guide for Beginners (2008, LDPL)
- Gareth Anderson's GNU/Linux Command-Line Tools Summary (2006, FDL)
- GNU Bash Reference Manual (2014, FDL)
- Course Outline of Record and SLOs