Introduction to Computer Programming 2018-02: Difference between revisions
Line 91: | Line 91: | ||
* If you wish to use virtual machine to run linux then use the following [https://extrememanual.net/7223 link]; beware that your pc must have sufficient computation power. | * If you wish to use virtual machine to run linux then use the following [https://extrememanual.net/7223 link]; beware that your pc must have sufficient computation power. | ||
=== Installing Python | ==== Installing Python ==== | ||
* Open terminal via <code> Ctrl+Alt+T</code> or search for "Terminal" from app launcher | * Open terminal via <code> Ctrl+Alt+T</code> or search for "Terminal" from app launcher | ||
* Type the following to install Python: <code> sudo apt-get update; sudo apt-get install python3.6 </code> | * Type the following to install Python: <code> sudo apt-get update; sudo apt-get install python3.6 </code> | ||
To check if python is installed properly. | To check if python is installed properly. | ||
Line 110: | Line 104: | ||
Hello, world | Hello, world | ||
</source> | </source> | ||
* If you wish to use other IDE, such as pycharm or spyder, you can also install them by typing <code> sudo apt-get install spyder</code> | |||
* When asked password for installing the programs, use your log-in password. | |||
==== Installing Vi or emacs: the editors==== | |||
You can use vi, emacs, or other IDE to work with python. | |||
* vi and emacs comes with the operating system distribution; however, the version is not up-to-date. To upgrade the version of the programs type the following: <code> sudo apt-get install vi emacs</code> | |||
* When asked password for installing the programs, use your log-in password. | |||
=== Useful Sites === | === Useful Sites === |
Revision as of 12:20, 9 July 2018
Class Information
Class Info | |
---|---|
Class | ETA00086 - 컴퓨터 프로그래밍 기초, ETA00087 컴퓨터 프로그래밍 기초 실습 |
Lecturer | Seongjin Lee |
Time and Place | A & B Group (Theory): 407-101 Monday 14:00-16:00 |
A Group (Practice): 407-203, Friday 12:00-14:00 | |
B Group (Practice): 407-203, Friday 14:00-16:00 | |
Office Hour | Tuesday: 11:00-12:00 |
Contacts | Office: 407-314 |
Email: insight at gnu dot ac dot kr |
Course Introduction
In the Computer Engineering, the language you use determines the capabilities of the software you develop. The more powerful a language is, the easier you can increase the performance and the simpler you can write the software. We are going to learn two languages in this course, Python and C. Python is a versatile, yet powerful, language that is easy to learn as well as the ease of the use. Many of the well-known companies are using Python to solve many of the engineering problems. For example, Dropbox desktop client is written in Python. Another language we are learning in the class is C. Since Dennis Ritchie at AT&T Bell Lab in the early 1970s developed C Programming Language, it has become one of the most powerful language used by various developers working in mobile, enterprise, and embedded systems. The success of C language is the result from its portability, standard library, ready use of the hardware, and ease of optimization.
For your information, Prof. Kyounghoon Kim is teaching the same course. Do interact with all the classmates and share. Don't be a big fish in a pond.
Goal
In this course, we are going to learn the essence of Python and C. Students are going to learn the following concepts.
- Compiling and running the program
- Variables, Data Types, and Arithmetic Expressions
- Loops and Control Flows
- Arrays and Pointers
- Functions
- Data Structures
- File I/O
Textbook
Python
There are two textbooks for Python. The class is based on the first book which is elementary and an introductory textbook on python for absolute beginner, but the second book is recommend. Although there is no Korean version of Think Python, it is written in plain English with friendly style. It would be better to have this book rather than the first. Moreover, the author made it freely available on the web.
- 모두의 파이썬 20일 만에 배우는 프로그래밍 기초 | 이승찬 지음 | 길벗 | 2016년 05월 09일 출간 교보문고 바로가기
- Allen B. Downey, "Think Python: How to Think Like a Computer Scientist", 2015, 원서 바로가기 한글 비공식 번역판
C
There are two must have and one (translation available) recommended books. I also recommend you to read C언어 공부법과 책추천(by sunyzero) because it gives guide on how to study the language and provides reasons why the first two books are required textbooks. We are going to use the King's book in the class. Kernighan and Ritchie's book provides very short and concise introduction of C language in less than 50 pages, which is very helpful in understanding the capabilities of the language.
- Main K.N. King, "C Programming: A Modern Approach," W. W. Norton & Company, 2nd Edition, 2008 교보문고 바로가기 (KNK로 표기)
- Supplementary Brian W. Kernighan, Dennis M. Ritchie, "C Programming Language" Prentice Hall, 1988 (2nd Edition) (Kernighan 의 C언어 프로그래밍) 교보문고 바로가기 (K&R로 표기)
- Supplementary Stephen Prata. "C Primer Plus". Sams, 2004 (C 기초 플러스) 교보문고 바로가기
Homework and Guidelines
- Every week, you are to meet with your team and discuss the materials that you are going to master. After the discussion, you are to write the new findings in the piazza.
- Please share your email info here.
Schedule and Readings
Part I - Python
T. B. D.
Part II - C Fundamentals
T. B. D.
Part III - C Arrays and Pointers
T. B. D.
Miscellaneous
- A and B Group will be taught with the same text book, class materials, exercises, and assignments.
- Each class is graded separately.
- You are to join piazza through here
Evaluation
Categories | Ratio | Categories | Ratio |
---|---|---|---|
Attendance | 10 | Exam I | 20 |
Before Class Meet-up | 10 | Exam II | 20 |
Assignments | 10 | Exam III | 20 |
Quiz | 10 | Total | 100% |
Installing Linux
- Read the following link to install the linux on your machine
- If you wish to use virtual machine to run linux then use the following link; beware that your pc must have sufficient computation power.
Installing Python
- Open terminal via
Ctrl+Alt+T
or search for "Terminal" from app launcher - Type the following to install Python:
sudo apt-get update; sudo apt-get install python3.6
To check if python is installed properly.
James@maker:~$ python
Python 2.7.13 (default, Apr 4 2017, 08:47:57)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> print("Hello, world")
Hello, world
- If you wish to use other IDE, such as pycharm or spyder, you can also install them by typing
sudo apt-get install spyder
- When asked password for installing the programs, use your log-in password.
Installing Vi or emacs: the editors
You can use vi, emacs, or other IDE to work with python.
- vi and emacs comes with the operating system distribution; however, the version is not up-to-date. To upgrade the version of the programs type the following:
sudo apt-get install vi emacs
- When asked password for installing the programs, use your log-in password.
Useful Sites
- https://www.codesdope.com/ - Well documented online learning site for a number of programming languages.
- https://cs50.harvard.edu - People say CS50 in hazard is "Demanding, but definitely doable. Social, but educational. A focused topic, but broadly applicable skills. CS50 is the quintessential Harvard (and Yale!) course." There video lectures on c and its applications are really helpful.
- Intro to CS and Prog in Python MIT - There video lectures on python are also helpful
- Intro. to C and C++ MIT - The slide for lecture one is impressive. They give lectures on c and c++
- Practical Programming in C MIT - Yet, another lecture on C
- cs107 Stanford (archived, 2016) - For deeper understanding of C and its relationship with the system.