COSC121-25S2 (C) Semester Two 2025

Introduction to Computer Programming

15 points

Details:
Start Date: Monday, 14 July 2025
End Date: Sunday, 9 November 2025
Withdrawal Dates
Last Day to withdraw from this course:
  • Without financial penalty (full fee refund): Sunday, 27 July 2025
  • Without academic penalty (including no fee refund): Sunday, 28 September 2025

Description

An introduction to imperative computer programming using Python. Topics include: expressions, assignment, selection and iteration, structured data (lists, dictionaries, tuples, arrays), functional decomposition, file processing, using library code, and an introduction to object-oriented programming.

*This is an alternative course to COSC131, which is a required course for the engineering intermediate and has a special emphasis on numerical computation.*

*COSC121 IS TAUGHT THROUGH ONLINE VIDEO LECTURES AND IN-PERSON LABS*

Covid-19 Update: Please refer to the course page on AKO | Learn for all information about your course, including lectures, labs and assessments.

In COSC121 you will learn the fundamentals of computer programming using the Python language and can be taken by students who have no previous programming background

Programming is the nuts and bolts of computer science; it is an essential tool but only a small part of the overall subject. Programming involves using a special language to issue a series of instructions to the computer in order to have it solve a particular problem. COSC121 is a prerequisite for all 200-level Computer Science, Computer Engineering and Software Engineering courses and is normally required as preparation for COSC122.

* Videos, Not Traditional Lectures *

Learning to program is necessarily a hands-on process, and traditional hour-long lectures poorly support hands-on learning. Lectures also proceed at a fixed rate but some students require a much faster or slower pace. And when students discover gaps in their understanding while programming, videos of hour-long lectures are an inefficient way for students to review the lecture-based theory associated with their problem.

To fix these problems, we have replaced traditional lectures and associated learning activities with dedicated Learning Modules.  Each learning module covers a particular topic (or sub-topic) with a mixture of notes, short videos (10-15 minutes) with examples, and quiz questions to develop and reinforce understanding of a particular programming concept. Students will engage in the learning modules in their own time and place, and preferably they will periodically pause the videos and experiment with the concepts, rewinding as appropriate.

The course is designed with one learning module per week in mind.  It is important not to fall behind in the material.  Each module builds upon earlier modules and it is easy for the work to become insurmountable.

To support your learning we run a lab session per week and a "Clinic".  Student need to allocate themselves to one of the lab sessions each week and are welcome to "drop-in" to other lab session times if there is a free seat.  "Clinic" sessions provide a group learning experience to address specific problems with material already covered. No new material will be presented at the Clinic Class. Instead, the lecturer will answer students' questions and provide live examples to clarify concepts that the students ask about.

There is a single traditional lecture during week one of course, in which we explain how the course is run. The lecture is delivered several times; all students are expected to attend one of the options.

Learning Outcomes

1. Apply with fluency imperative programming to well defined problem definitions [WA1]
2. Apply program reasoning and debugging skill [WA2]
3. Incorporate third-party program code into solutions [WA1]
4. Apply elementary object oriented programming [WA1]
5. Implement simple imperative program design for semi-complex problems [WA3]

University Graduate Attributes

This course will provide students with an opportunity to develop the Graduate Attributes specified below:

Employable, innovative and enterprising

Students will develop key skills and attributes sought by employers that can be used in a range of applications.

Restrictions

Timetable Note

Check your personal timetable on My Timetable. Note that you are welcome to attend extra lab sessions provided there are free machines available.

Depending on final student numbers, some of the advertised lab/tutorial streams may not run. Final lab/tutorial options will be available for self-allocation closer to the start of the semester through My Timetable.

* In the timetable the Pals A slots are optional and part of the (PALS) Peer Assisted Learning Support.

Course Coordinators

Aluna Everitt and Andreas Willig

Assessment

Assessment Due Date Percentage  Description
Assignment Super Quizzes (x2) 15%
Learning Modules (x11) 15%
Week 3 Check-Point Quiz 5% Week 3
Mid-Course Test 15%
Final Exam 50%


There are five assessment components: weekly Learning Module quizzes (x11), a Week 3 Check-Point Quiz during lab time, a Mid-Course Test, Assignment Super Quizzes (x2), and the final exam.

* Tests and Exams *
Tests and exams are sat in computer laboratories around campus. You will be expected to develop and test code during the exams, for which you will have your normal programming tools (VS Code, Wing IDE and Python documentation) available. As in the assignments and the weekly laboratories, you will submit your code and receive immediate marks and other feedback. Marks are typically awarded only for code that is completely correct, but you can correct and resubmit failing code for at most a small penalty.

Under Departmental Policy, you must obtain a weighted average of at least 45% in the tests and exams to obtain a passing grade.

As programming is a practical skill, fluency can only be assessed via the test and exam, consequently grades will not be derived under the Special Consideration policy.  Please see our additional notes below. for information on how the University Special Consideration rules apply to this course.

* Assignment Super Quizzes *
The assignment will be a series of programs for you to write, handed out at regular intervals throughout the course. They will for the most part be automatically marked by our online program tester, but some of them will also be assessed by staff for readability and `style'. This set of assignment programs will also be referred to as the assignment superquiz.

* Learning Module Quizzes - Laboratory Work *
Practical work is an essential part of learning to program; your goal is to achieve fluency in programming rather than a non-practical general understanding of it.  The learning modules, which include embedded quizzes,  are designed to be completed on a weekly basis.  Quiz questions include programming exercises, where you develop code on the lab machines and then submit the code to the quiz server for instant grading. If your answer is marked wrong you can resubmit for a small penalty.

The sum of all your lab quiz marks from the learning modules contributes 15% of your total course mark. You are to work on each in your own time and by using the help in the lab sessions.  However you must submit each quiz by its closing date, which is published on each learning module page.   There is a system to apply for automatic extensions, Special Consideration for individual Learning Modules cannot be applied for.

The lab tutors will help you work through the exercises when you are stuck, but try to solve the problems yourself before calling for help. In programming there are infinitely many possible programming exercises and each one has a huge number of possible solutions. It's not the solution to the problem that's important; it's the mental processes you use to get even one solution that matter. Tutors can provide only limited assistance with guiding your mental processes - ultimately you yourself have to acquire the necessary problem-solving skills.

Keep in mind that in tests and exams you will have to program on your own, and a high degree of fluency is required.

Textbooks / Resources

There are two main options for books to use to supplement the lectures and support your lab work.

- "Practical Programming: An Introduction to Computer Science Using Python 3" by Campbell, Gries, Montojo and Wilson, 2nd or 3rd edition. This is available from the bookshop or as an e-copy from  https://pragprog.com/book/gwpy3. Our course was originally built around the first edition of this text, but the text and our course have evolved in somewhat different directions since then. However, it is still an excellent text with many good exercises.

- "How To Think Like a Computer Scientist'' is available free online at https://runestone.academy/runestone/books/published/thinkcspy/index.html

Notes

There are several important documents available online about departmental regulations, policies and guidelines at the following site. We expect all students to be familiar with these.

Notices about this class will be posted to the class forum in the Learn system.

COSC students will also be made members of a class called “CSSE Notices”, where general notices will be posted that apply to all classes (such as information about building access or job opportunities).

Additional Course Outline Information

Academic integrity

Every year several students fail the course because of dishonest practice. Please do not be among them. You are encouraged to discuss the general aspects of a problem with others. However, anything you submit for credit must be entirely your own work and not copied, with or without modification, from any other person.

If you share details of your work with anybody else then you are likely to be in breach of the University's General Course and Examination Regulations and/or Computer Regulations (both of which are set out in the University Calendar) and/or the Computer Science Department's policy. The Department treats cases of dishonesty very seriously and, where appropriate, will not hesitate to notify the University Proctor.

If you need help with specific details relating to your work, or are not sure what you are allowed to do, then contact your tutors or lecturer for advice.

Grade moderation

The Computer Science department's grading policy states that in order to pass a course you must meet two requirements:
1. You must achieve an average grade of at least 50% over all assessment items.
2. You must achieve an average mark of at least 45% on invigilated assessment items.

The 50% requirement and the 45% requirement refer to weighted averages.

If you satisfy both these criteria, your grade will be determined by the following University-wide scale for converting marks to grades: an average mark of 50% is sufficient for a C- grade, an average mark of 55% earns a C grade, 60% earns a C+ grade and so forth. However if you do not satisfy both the passing criteria you will be given either a D or E grade depending on marks. Marks are sometimes scaled to achieve consistency between courses from year to year.

Students may apply for special consideration if their performance in an assessment is affected by extenuating circumstances beyond their control.

Applications for special consideration should be submitted via the Examinations Office website within five days of the assessment.

Where an extension may be granted for an assessment, this will be decided by direct application to the Department and an application to the Examinations Office may not be required.

Special consideration is not available for items worth less than 10% of the course.

Students prevented by extenuating circumstances from completing the course after the final date for withdrawing, may apply for special consideration for late discontinuation of the course. Applications must be submitted to the Examinations Office within five days of the end of the main examination period for the semester.

Laboratory Work

Practical work is an essential part of learning to program.

A new laboratory exercise will be made available each week and you are expected to work on that exercise during your scheduled lab for that week. Laboratory exercises take the form of an online quiz consisting of information panels interleaved with quiz questions. Quiz questions include programming exercises, where you develop code on the lab machines and then submit the code to the quiz server for instant grading. If your answer is marked wrong you can resubmit for a small penalty. The sum of all your lab quiz marks contributes 10% of your total course mark. If you have not finished the lab by the end of your scheduled session you can continue to work on it in your own time through into the start of the following week if you wish. However you must submit each quiz by its close date, which is typically the Tuesday night of the week in which the lab exercise was opened.

The lab tutors will help you work through the exercises when you are stuck, but try to solve the problems yourself before calling for help. In programming there are in infinitely many possible programming exercises and each one has a huge number of possible solutions. It's not the solution to the problem that's important; it's the mental processes you use to get even one solution that matter. Tutors can provide only limited assistance with guiding your mental processes - ultimately you yourself have to acquire the necessary problem-solving skills.

Costs

Your usercode on our computer system enables you to access a range of services. Some of these services are not free and you are responsible for ensuring that your account contains sufficient funds to cover any charges you incur. If your account balance becomes negative then you may be unable to use any computer facilities until you have cleared this debt. The Computer Science Department is not involved with the financial details of your account - you should go to the Information and Communications Technology Services (ICTS) Department for this.
The main chargeable service you are likely to make use of is printing.

To use chargeable services you will need to have money loaded on your Canterbury Card.

See the Information and Communication Technology Services (ICTS) Department home page for details of services and charges.

Help!

If you need help or are feeling lost, seek help immediately. Do not wait until the day before your assignment is due. There is plenty of help available - it is up to you to make use of it.

Sources of help
There are a variety of ways for you to get help.
•   The Learn COSC121 forums provide electronic noticeboards for use by all students and staff involved with COSC121. You can post any course-related queries to these forums and other students or staff can answer them. You can access the forum by logging into Learn.
However, there are a few rules to be observed:
•    Be courteous. The forum should be a pleasant place for everyone. Rude, angry or arrogant postings will rapidly destroy the value of the forum.
•   Don't be too helpful. By that we mean don't destroy someone else's learning experience by posting direct answers to test, exam or assignment questions. Rather, try to guide someone towards the solutions by hints or suggestions as to where the answers can be found. Never post assignment-related code.
•   If time permits, some problems may be discussed with your tutors during normal laboratory sessions or with your lecturer during the clinics.
•   Your lecturers are happy to help. However, their time is limited so please try to arrange an appointment by email to ensure that sufficient time will be available to deal with your queries effectively.

Note that the department is not responsible for computer systems and networks around the campus. The ICTS help desk (x6060) is the place to get help with technical problems outside the department.

Working on your home computer

Many students will do at least some of their laboratory and assignment work on home computers.
To do that, you will need to install some course-specific software as follows:
•   Python, version 3.6 or later. This can be downloaded from www.python.org. NB: Version 2.7 is NOT appropriate, as it is not compatible with version 3, which will be using in the course.
•   Wing101 Version 6 or later, the IDE (Integrated Development Environment) we use in COSC121. This can be downloaded from http://www.wingware.com/downloads/wingide-101 . [This is not strictly essential; you can, if you wish, develop your programs using the IDLE IDE that comes with Python. Wing101 is what we will use in the lectures and laboratories, however.]
•  Enjoy the Course!!!

Special Consideration Applications for the Final Exam

Please click HERE for the CSSE Department's policy for the academic remedy of applications for a special consideration for final exams.

Indicative Fees

Domestic fee $998.00

International fee $5,188.00

* All fees are inclusive of NZ GST or any equivalent overseas tax, and do not include any programme level discount or additional course-related expenses.

For further information see Computer Science and Software Engineering .

All COSC121 Occurrences