IM 1003, Spring 2017

Programming Design

Instructor: Ling-Chieh Kung

Department of Information Management

National Taiwan University


Go

About this Course

In this course, we will introduce how to write computer programs for general purposes. The programming language we will study is C++, one of the most popular and powerful high-level programming language nowadays. We will start from the procedural programming part of C++, which is quite similar to the programming language C, and then discuss those object-oriented features of C++. While we will spend a lot of time writing "correct" programs, we will also try to write "good" programs, i.e., those run faster, using less memory, having better formats, generating friendly user interfaces, being more extendable, etc. The language C++ is just something that facilitates the delivery of the principles of computer programming. What really matter are the conceptual principles, not the C++ syntax or rules. Our objective is not to teach you how to write C++ programs; we want to make you be able to teach yourself any other programming languages. C++ is chosen to be taught in this course mainly because, in my opinion, it is a "broad" language. This will be discussed in lectures.

This is a required course for first-year undergraduate students in the Department of Information Management in National Taiwan University. We do not assume any background in computer programming, and there is no prerequisite for this course. However, some experiences in courses like Introduction to Computer Science and Discrete Mathematics helps. In most cases, all students who want to enroll in or audit this course are welcome.

Note. Though this course counts for three units officially, students are suggested to treat it as at least five units and put efforts accordingly. In my opinion, this course should be (and indeed is) heavier than most introductory programming courses in NTU. If you do not have any programming experience, you do need to spend enough time on programming to really learn something. Studying programming is definitely not easy. Please do not hesitate to let me know if you need any help.

Basic information

Instructor
  • Ling-Chieh Kung (孔令傑)
  • E-mail: lckung(AT)ntu.edu.tw
  • Office: Room 413, Management Building II
  • Tel: 02-3366-1176.
  • Office hour: by appointments.
Teaching Assistants
  • Jeff Lee (李維哲). E-mail: r04725023(AT)ntu.edu.tw.
  • Rick Lee (李昱賢). E-mail: r05725006(AT)ntu.edu.tw.
  • Jack Lin (林敬傑). E-mail: r05725007(AT)ntu.edu.tw.
  • Sophie Yang (楊佩蓉). E-mail: r05725028(AT)ntu.edu.tw.
  • Jhih-Bang Hsieh (謝志邦). E-mail: b02705021(AT)ntu.edu.tw.
Meetings
  • Lectures: 2:20-5:20 pm, Monday. Room 305, Management Building 2.
  • Labs: 6:25-8:10 pm, Wednesday. The large computer classroom, Management Building 1.
Textbook
  • C++ How to Program: Late Objects Version by Deitel and Deitel, seventh edition, Pearson Education.
    臺灣代理: 歐亞圖書, (02) 8912-1188..
References
  • A First Book of C++ by Bronson.
  • C++ Primer by Lippman, Lajoie, and Moo.
  • The C++ Programming Language by Stroustrup.
On-line resources
  • To check grades: CEIBA.
  • To download materials: This website.
  • To submit homework: PDOGS.
  • To discuss: Piazza.

Syllabus

For a detailed description about this course, including course policies, grading rules, tentative schedules, etc., please see the syllabus. Whenever there is an update, a new version will be posted with a short note describing the update.

Post Syllabus Notes
2017/2/19 Link The basic planning of this course
2017/3/4 Link Changing the classroom and adding a TA

Lecture materials

Week Topic Lecture Slides Lecture Programs Videos
1 Introduction Slides Programs N/A
2 Selection and Repetition Slides Programs Playlist
3 Variables and Arrays Slides Programs N/A
4 Functions Slides Programs N/A
5 Algorithms and Recursion Slides Programs N/A
6 (Lab Exam 1) N/A N/A N/A
7 Pointers Slides Programs Playlist
8 C Strings Slides Programs Playlist
9 Self-defined Data Types in C Slides Programs N/A
10 Classes Slides Programs N/A
11 Operator Overloading and C++ String Slides 1, Slides 2 Programs 1, Programs 2 N/A
12 (Lab Exam 2) N/A N/A N/A
13 Inheritance and Polymorphism Slides Programs N/A
14 File I/O and header files Slides Programs N/A
15 Templates, Vectors, and Exceptions Slides Programs Playlist
16 (Final Exam) N/A N/A N/A
17 Data Structures Slides Programs N/A
18 Final Project Presentations N/A N/A N/A

Related materials

All the lab materials are here.

For PDAO information, please see here.

Homework

Exam

Exam Problems Solutions TAs' Notes
Lab exam 1 Problems Solutions TAs' Notes
Lab exam 2 Problems Solutions TAs' Notes
Lab exam 3 Problems

Projects

Item Description
Midterm Project Midterm project problem description
Final Project Final project problem description