CPSC425A Principles of Programming Languages

CPSC425A Principles of Programming Languages
Spring 2014


Instructor: Mr. Scotty Smith
Office Hours: Tuesday/Thursday 3:00 pm - 5:00 pm
Office: Trexler 365-B
E-Mail: chssmith AT roanoke DOT edu
Phone: 375-4962

Course Objectives


This course provides an introduction to the principles of programming language design, and programming in multiple paradigms, including functional programming, logic programming and object-oriented programming. We will discuss the design issues, syntax and semantics, and implementation of various programming language features, including control structures, abstract data types and memory management (garbage collection).

Intended Learning Outcomes: At the end of the course the successful student will be able to

  1. Understand and be able to program in a functional language, logic language, and an object-oriented language.
  2. Choose an appropriate programming paradigm and language for solving a given problem.
  3. Understand the various issues that need to be considered in the design of a programming language.

Course Content


Text: Modern Programming Languages: A Practical Introduction by Adam Brooks Webber, 2nd Edition. Franklin Beedle & Associates Publishing.

Assignments: In addition to regular reading there will be multiple assignments during the semester. These assignments are designed to give the student the opportunity to put into practice the new language paradigms learned. As such they are one of the most important aspects of the course both for student learning and for assessment. The assignments, most of which involve writing programs, will vary in length and difficulty. You are encouraged to start on them immediately when assigned and get help from the instructor as needed.

Important: Assignments are to be done individually. You may ask class members, lab assistants, and others for help with system questions (e.g., "How do I start the ML interpreter?" or "How do I get a printout of my program?") or general information about a topic covered in class (e.g. "What is the symbol for boolean AND?") provided you can do so without divulging or receiving information specific to the solution of the assignment problem. You may not discuss any aspect of the design or coding of a program with anyone except the instructor. This policy will be strictly enforced; see the section on Academic Integrity below.

Quizzes, Tests, and Exams: Short weekly quizzes will be given to make sure you are understand the concepts and are keeping up with the course work. Quizzes will be at the beginning of class. The lowest quiz grade will be dropped when final grades are calculated. No make-up quizzes will be given. Two tests and one comprehensive final exam will be given.

Test Dates: Test #1 Thursday, February 6
Test #2 Thursday, March 20
CPSC 425 A Final Exam Thursday, April 24 (8:30AM - 11:30AM)

MCSP Conversations: The Department of Mathematics, Computer Science, and Physics (MCSP) is offering a series of discussions that appeal to a broad range of interests related to these fields of study. These co-curricular sessions will engage the community to think about ongoing research, novel applications, and other issues that face our disciplines. You are invited to attend all of these events but participation in at least 3 is mandatory. Within one week of attending an event you must submit a one page paper reflecting on (not just summarizing!) the discussion. If you do not turn the paper in within the one week time frame you may not count that event as one you attended. The MCSP discussions are generally scheduled for Wednesdays at 5:30 or Tuesday or Thursday at 7:00. A schedule will be provided soon and will be posted on the course web page. Please discuss scheduling conflicts with the instructor ASAP.

Grading: Course grades are assigned based on the following weights and scale:

Grade Weights: quizzes..............20% tests..................30% final exam.......25%
assignments......22% co-curricular......3%
Grade Scale: 93-100A        83-86B        73-76C        63-66D
90-92A-        80-82B-        70-72C-        60-62D-
87-89B+        77-79C+        67-69D+        below 60F

Course Policies


Academic Integrity: It is accepted that you have read and understood the standards for academic integrity at Roanoke College. All tests, quizzes, assignments and exams are to be the work of the individual student. You are encouraged to get help from the instructor if you need help with any aspect of the course including programs and assignments. Student assistants, tutors, and classmates may help you understand course concepts but may not show you how to do any particular aspect of an assignment. Students may discuss lab work (including the pre-lab assignments) and help each other out but in all cases the work you turn in must be your own. Copying someone else's work or turning in someone else's work is NEVER allowed. Using someone else's work or ideas as your own is plagiarism and an academic integrity offense. Examples of academic integrity violations include copying a program or part of a program (even one line) from someone else, writing code for someone else, telling someone else how to solve a problem or having someone tell you how to solve a problem. Discussion among students about programming projects should be limited to general concepts, not specific aspects of how to complete the work.

Computer Use Policies: All students must abide by the Computer Use policies of Roanoke College. Failure to do so will result in involuntary withdrawal from the course.

Attendance Policy: Class attendance is vital to your success in this course; material covered during missed sessions is the responsibility of the student. Conversations held in class illuminate the published class materials and are subject to evaluation on subsequent tests and quizzes. Moreover, quizzes and in-class assignments are not available for make-up.

Late Assignments: Unless otherwise specified, assignments are to be turned in before the start of class on the due date. If you anticipate being unable to meet a deadline, talk to me at least 24 hours before the deadline. In extenuating circumstances we may be able to make special arrangements. Please note that this must be discussed -- just sending an email does not automatically grant you extra time. If you have not been granted extra time ten percent per calendar day (24 hours) will be deducted for late work (including weekends and holidays); work more than 2 days late will receive no credit. Electronic "glitches" do not waive your responsibility to submit your work in a timely manner.

Make-up Policy: Everyone is expected to take tests, quizzes, and the exam at the scheduled time. Make-ups will be given only for legitimate, documented absences that the instructor has been notified of ahead of time. Make-up tests, if given, may be oral. There will be no make-up quizzes.

Electronic Devices: All cell phones and pagers must be turned off prior to entering the classroom or lab. The use of any electronic device during a test or quiz is prohibited. This includes cell phones, PalmPilots, Blackberrys, PocketPCs, and laptops. Any use of such a device during a test or quiz will be considered a breach of academic integrity.

Special Services: If you are on record with the College's Special Services as having special academic or physical needs requiring accommodations, please meet with me during my regular office hours or schedule an appointment as soon as possible.. We need to discuss your accommodations before they can be implemented. Also, please note that arrangements for extended time on exams and testing in a semi-private setting must be made at least one week before every test or exam. If you believe you are eligible for accommodations but have not yet formally contacted Special Services, please call 375-2248 or drop by the Center for Learning and Teaching in Fintel Library.

Tentative Schedule:

Week 1Introduction and Grammars
Week 2Syntax, Semantics, Lexical Analysis
Week 3Introduction to ML
Week 4Continuing ML
Week 5Polymorphism
Week 6Scope, Parameters, and Runtime Memory Models
Week 7Heap Management
Week 8Introduction to Python for Java Programmers, Object Orientation, and Exception Handling
Week 9Introduction to Prolog
Week 10Continuation of Prolog
Week 11Cost Models
Week 12Formal Semantics
Week 13Wrapping up