課程名稱 |
計算機程式 Computer Programming Language |
開課學期 |
112-1 |
授課對象 |
機械工程學系 |
授課教師 |
林以凡 |
課號 |
ME2009 |
課程識別碼 |
502E10100 |
班次 |
02 |
學分 |
2.0 |
全/半年 |
半年 |
必/選修 |
必修 |
上課時間 |
星期五3,4,5(10:20~13:10) |
上課地點 |
機械系計中 |
備註 |
本課程以英語授課。 總人數上限:55人 |
|
|
課程簡介影片 |
|
核心能力關聯 |
核心能力與課程規劃關聯圖 |
課程大綱
|
為確保您我的權利,請尊重智慧財產權及不得非法影印
|
課程概述 |
This is an introductory course to computer programming in Python. Introduction to programming basics (what it is and how it works), binary computation, problem-solving methods and algorithm development. Includes procedural and data abstractions, program design, debugging, testing, and documentation. Covers data types, control structures, functions, parameter passing, library functions, arrays, inheritance and object oriented design. |
課程目標 |
The objective of this course is that by the end of the semester, you will have
• understood why Python is a useful scripting language for developers;
• expressed how to design and program Python applications;
• identified how to use lists, tuples, and dictionaries in Python programs;
• described how to identify Python object types;
• demonstrated how to use indexing and slicing to access data in Python programs;
• defined the structure and components of a Python program;
• employed how to write loops and decision statements in Python;
• explained how to write functions and pass arguments in Python;
• illustrated how to build and package Python modules for reusability;
• learned how to read and write files in Python;
• elaborated how to design object-oriented programs with Python classes (if time is allowed);
• performed how to use class inheritance in Python for reusability (if time is allowed);;
• formulated how to use exception handling in Python applications for error handling. |
課程要求 |
|
預期每週課後學習時數 |
3-5 |
Office Hours |
|
指定閱讀 |
Tony Gaddis, Starting Out with Python, Pearson, 4th Ed, Global Edition, ISBN: 9781292225753, 2019. |
參考書目 |
|
評量方式 (僅供參考) |
No. |
項目 |
百分比 |
說明 |
1. |
Homework and Lab |
25% |
Three questions (basic, intermediate, and hard) are in each homework assignment. You must submit your homework within TWO weeks through NTU COOL. The deadline is on Thursdays before midnight (11:59 pm). 50% off for the late submission in week three. 0 points for week four and up. *If you copy other people’s work, you will get 0 points. However, collaboration is encouraged.
For the lab, you must submit your lab within ONE week through NTU COOL. The deadline is on Thursdays before midnight (11:59 pm). 50% off for the late submission in week two. 0 points for week three and up. *If you copy other people’s work, you will get 0 points. However, collaboration is encouraged. |
2. |
Quiz |
15% |
(5% each). The quizzes are scheduled on
– Quiz I: October 07 in class.
– Quiz II: November 03 in class.
– Quiz III: December 01 in class.
The quiz will be 30 minutes long at the beginning of the class. You will answer some short questions or complete part of the codes on NTU COOL. |
3. |
Midterms |
30% |
(15% each). The mid terms are scheduled on
– Mid-term I: October 20 in class.
– Mid-term II: December 08 in class.
The mid-term will be a two-hour computer based exam, closed-book, and closed-notes. No electronics, including calculators, cell phones, or smart watches are allowed. Mid-terms will be used to access demonstration of the learning objectives |
4. |
Final Team Project and Presentation |
30% |
Form a team with AT MOST 4 members. Choose a topic that reflects your interests and what you have learned. You will submit your work and give a 15 minute team presentation on either December 15 or December 22 in the final week. For details, check Final Project Guidelines and Rubrics. |
5. |
Class Participation |
0% |
bonus 2%. Attend the class and have discussions with your classmates/group for some class exercises. Demonstrate your code and explain your thought process in class. Also be active in class by asking questions and solving the class exercises on the blackboard. |
|
週次 |
日期 |
單元主題 |
第1週 |
9/08 |
Input, Variables, Calculations, Operators, Data Outputs |
第2週 |
9/15 |
Decision Structures and Boolean Logic |
第3週 |
9/22 |
Repetition Structures |
第4週 |
9/29 |
Moon Festival (NO CLASS) |
第5週 |
10/06 |
Functions |
第6週 |
10/13 |
Functions and Modules |
第7週 |
10/20 |
Mid-term I |
第8週 |
10/27 |
Files |
第9週 |
11/03 |
Recursion and Exceptions |
第10週 |
11/10 |
Lists and Tuples |
第11週 |
11/17 |
Strings |
第12週 |
11/24 |
School Sports Day (NO CLASS) |
第13週 |
12/01 |
Dictionaries and Sets |
第14週 |
12/08 |
Mid-term II |
第15週 |
12/15 |
Final Presentation |
第16週 |
12/22 |
Final Presentation |
|