Syllabus, CMPSCW 8, Winter 2024

Basic Facts

Required Resources

Official UCSB Catalog Description

CMPSC 8/8W: Introduction to Computer Science

Enrollment Comments: Not open for credit to students who have completed Computer Science 16 or Engineering 3 or ECE 3.
Repeat Comments: Legal repeat for CMPSC 5AA-ZZ.

Introduction to computer program development for students with little to no programming experience. Basic programming concepts, variables and expressions, data and control structures, algorithms, debugging, program design, and documentation.

A few course policies in brief

What this course is about

This class serves as an introduction to programming and computer science. We will use the Python language and write Python programs throughout the course. We will be using Python 3 in the class. The Python Interpreter can be downloaded for free from Python’s download page http://python.org/downloads/. I encourage everyone to install Python on their local computer in order to practice programming in your own time.

If you find yourself working on a computer that doesn’t have Python installed, you can run simple Python code (along with several other languages) on the web with tools such as Python Tutor and IDEOne. This is not a requirement for the course, but you may find it to be a useful tool.

Learning how to program requires A LOT of practice like learning any new skill. Making mistakes is an essential part of learning as long as you learn from them! Questions like “I wonder what will happen if I do this…” or “How will Python behave in this case…” is a great way to investigate and observe the functionality and limitations of a programming language (there are many programming languages available to software developers and each have their specific pros and cons that may or may not be the best choice for the problems you are trying to solve).

I find the best way to practice is to rapid prototype constantly. Writing simple snippets of code to test and confirm your understanding allows you to 1) practice typing out code, which makes you more comfortable with the language and 2) solidify your understanding of the specific behavior of the programming language functionality.

Programming is the study of algorithms, i.e. step-by-step instructions telling the computer what it needs to do. There are MANY algorithms that can solve a problem and it’s important to consider the computational time, memory space, and correctness of the algorithms you create.

Why Python?

What you need to learn to become a skilled beginning level programmer

So, what is it that you need to know to be a skilled beginning-level programmer in Python? Here’s the list of what you’ll need to be ready for CMPSC 9 / 16 (the next programming courses):

  • Problem solving
    • breaking down a problem into a sequence of steps
    • abstracting specific problems into general ones
      and finding general solutions
  • Memory concepts
    • variables, primitive vs. reference variables, name, type, value
    • assignment statements
    • scope of variables
  • Control structures
    • for loops, if/else, while loops
  • Lists in Python (similar to arrays in other languages)
    • index vs. value, finding sum, min, max, average, count of elements matching some condition, making a new list of elements containing only those that match some condition
  • Functions
    • function call vs. function definition
    • formal vs. actual parameters (arguments)
  • Testing
    • How to test your code
  • Input/output concepts
    • Writing to the terminal
    • Reading from the keyboard
    • Reading and writing to files
    • Neatly formatting output
  • Program style
    • How to write code that other people can read and understand

Piazza Etiquette

Here are some general rules about Piazza, to keep it from getting cluttered, make sure you can benefit the most from having this forum, and to make it easier for us to answer your questions. Class communication will be done through this platform (reminders / announcements / etc).

So, when you have a question:

  1. Search through existing Piazza questions to make sure your question hasn’t been answered before.
  2. Use the filters (lab, lecture, logistics, etc.) to navigate between questions easily.
  3. If you believe that other students will benefit from the answer, make the question public. Else, make it private.
  4. Please DO NOT post your code in your public questions. Snippets of code are generally fine, but should be framed in a generic way not specific to an assignment.
  5. We do our best to get to your questions answered in a timely manner. However, if you find a question that you can help with, please do! We encourage students’ participation in answering questions.
  6. Remember that Piazza has a feature that will allow you to post anonymously - this will not reveal the author of a question/contribution to other students (but will be known to the course staff).

Course Grades

Letter grades will be determined by the end of the course after all components have been computed. I can say that I will not grade harder than a traditional straight scale (90% = A-, 80% = B-, etc.). However, I will adjust the letter grades accordingly based on the class’ overall performance at the end of the course. If you are concerned about your grade in the class, I encourage you to discuss the matter with me during my office hours. Please come talk to me sooner rather than later so there can be some time where we can help you succeed in the course.

Your course grade will be determined as follows:

Grade Item Percentage of Final Grade
Quizzes (Fridays, Week 2,4,6,8,10) 25 %
Final (Wednesday 3/20), 12pm - 2pm 20 %
zyBooks Participation Activities (PA) 5 %
zyBooks Challenge Activities (CA) 15 %
zyBooks Lab Activities (LA) 25 %
Gradescope Labs 10 %

Workload

Programming, like all subjects, takes a lot of time and practice to master. UCSB estimates that a 4-unit course is equivalent to approximately 12 hours of work per week https://catalog.ucsb.edu/academicsandpolicies/policies/academicpoliciesprocedures#units-of-credit1.

Late Policy and Regrade Requests

I will consider late submissions / accommodations only for medical or family emergencies and only when formal documentation can be provided. This does not include overwhelming workload from other courses, scheduling conflicts, technical difficulties, or vacation plans.

I recognize that some absences (e.g. minor illnesses, mishaps, etc.) are unavoidable. Litigating whether each of these is “excused” or not isn’t a good use of anyone’s time. The late work policy below accounts for absences (or failure to submit work) in a way that does not unduly penalize your grade unless it becomes excessive. The policy (unless stated otherwise) are:

Accommodations for disabilities

Students with disabilities may request academic accommodations for exams online through the UCSB Disabled Students Program at http://dsp.sa.ucsb.edu/. Please make your requests for exam accommodations through the online system as early in the quarter as possible to ensure proper arrangement.

Managing stress

Personal concerns such as stress, anxiety, relationships, depression, cultural differences, can interfere with the ability of students to succeed and thrive. For helpful resources, please contact UCSB Counseling & Psychological Services (CAPS) at 805-893-4411 or visit http://counseling.sa.ucsb.edu/.

Responsible scholarship

Honesty and integrity in all academic work is essential for a valuable educational experience. The Office of Judicial Affairs has policies, tips, and resources for proper citation use, recognizing actions considered to be cheating or other forms of academic theft, and students’ responsibilities, available on their website at: https://studentconduct.sa.ucsb.edu/academic-integrity. Students are responsible for educating themselves on the policies and abide by them.

Furthermore, for general academic support, students are encouraged to visit Campus Learning Assistance Services (CLAS) early and often. CLAS offers instructional groups, drop-in tutoring, writing and ESL services, skills workshops and one-on-one consultations. CLAS is located on the third floor of the Student Resource Building, or visit http://clas.sa.ucsb.edu

Standard Disclaimer

This syllabus is as accurate as possible, but is subject to change at the instructor’s discretion, within the bounds of UC policy.