Special Topics - Programming in C

CS197C - UMass Amherst - Fall 2017

Course Information

InstructorJohn Foley jfoley@cs.umass.edu
TimeW 4:00-5:15 - Lecture / Coding Lab
LocationEdlab LGRT225 Not what it says on SPIRE
PrerequsitesCS121 & CS187
TextbookNone required; try: Wikibook on C Programming
Office HoursI don't have a private office! I'll probably arrange to be hanging out somewhere before class on Wednesdays, but don't hesitate to email me for a meeting.

Course Description

A brief introduction to the C programming language for students with a good working knowledge of Java and data structures. This course is good preparation for COMPSCI 230 and courses that use C and C++. Prerequisites: COMPSCI 121 and 187. Runs for 6 weeks. This course is for CS minors and majors only, but it does not count towards either degree. 1 credit.

Course Goals & objectives

The goal of this course is to provide a hands-on experience with C programming. A successful student will be comfortable compiling C programs at the command line and is familiar with basic structured programming concepts: structs, unions, functions, enums, loops, switch statements, and standard IO mechanisms.

Grading

This class is a 1-credit P/F class. If you get a 65 or higher you will “Pass” and it will not affect your GPA. If you receive a lower grade, 1 credit point of a zero will be averaged into your GPA.

30% - Class Exercises

Usually we will begin class with an example program for you to type into the computer, compile & run. In this workshop time, we will discuss concepts. You will receive full credit if your program compiles and runs by the midnight the following week.

  • Class Exercise 1 (13 Sept 2017) Guessing Game and umassc Login
  • Class Exercise 2 (20 Sept 2017) Compilation, Math, Simple Arrays & Files

    ssh you@umassc.ddns.net; cd class2; cat instructions.md

  • Class Exercise 3 (27 Sept 2017): TBD
  • Class Exercise 4 (4 Oct 2017): TBD
  • Class Exercise 5 (11 Oct 2017): TBD
  • Class Exercise 6 (18 Oct 2017): TBD

30% - Worksheets

Your worksheet assignments will be C files that are partially created by me. By filling out the function definitions and blocks you will be able to edit and get full credit on these files. These are also due midnight the following week.

The worksheets will be located on the umassc.ddns.net machine under the worksheet1 ... worksheet6 directories

40% - Projects

Starting Week 2 or 3, you will know enough C to be able to work on a small project. We will work on selecting one or two appropriate projects together. You will not be able to work in groups or to use any projects from other classes (i.e., CS230) for these projects. You will either do 1 medium sized project (40pts) or 2 small projects (20 pts each). More information on the projects will be distributed then.

Where are the slides?

This class is not a puzzle where you decode the slides and shuffle them into the assignments. The code itself will be your resource, and you are encouraged to use high quality resources on the internet to help in certain circumstances. I may occasionally present slides, but I find them to be a poor method of learning new programming languages: you’re only likely to learn new syntax, ideas, and concepts if you put them to use.