|
CEN134 Algorithms and Programming 2 |
|
|
|
Lecture Lab settings
|
:
:
|
Thursday 14:30 - 17:20
Friday 10:30 - 12:20 (Computer Engineering)
Monday 15:30 - 17:20 (Electronics Engineering)
|
| Language |
: |
English |
| Class room |
: |
L-03 |
| Lab |
: |
A-502, A-503 |
| Units |
: |
3+2 |
| - |
- |
- |
| Instructor |
: |
Asst. Prof. Dr. Orhan DAĞDEVİREN |
| Office room |
: |
C-201 |
| Office hours |
: |
|
| Office Tel. |
: |
232-2464949 |
| - |
- |
- |
|
Teaching
Assistants
|
: |
Deniz ÖZSOYELLER, (Office Room: A-201)
Esra RÜZGAR, Züleyha AKUSTA (Office Room: A-107)
|
| Office room |
: |
A-201, A-107 |
| Office hours |
: |
|
| Office Tel. |
: |
232-2464949 |
| 1.Prerequisites |
: |
None |
| 2.Contents |
: |
C language. Iterative and Recursive Programming techniques, functions and parameter passing, pointers and dynamic storage allocation, multidimensional arrays, record structures, file systems and file processing. Program specification, document and testing. |
| 3.Objectives |
: |
This course is to give in-depth training in programming in C language. |
4.Textbook/ Lecture notes |
: |
Deitel & Deitel, C How to Program, Prentice Hall. |
| 5.Attendance |
: |
Compulsory attendance for theory lectures is 70% and for lab lectures 80%. |
| 6.Grading |
: |
|
7.Academic dishonesty |
: |
Academic dishonesty is related to cheating and plagiarism. Copying in whole or in part others’ assignments, lab works or exams, is considered cheating respectively plagiarism. All parties involved will receive a zero score for the lab, assignment or the exam. |
| Week |
Topics |
Lecture Notes
|
| 1 |
Introduction, compilation, program specification,
documentation, and testing, expressions, types
|
All Lecture materials are on Online Courses
|
| 2 |
Types, Operators and Expressions Variable Names. Data Types and Sizes. Constants . Declarations. Arithmetic Operators.
|
|
| 3 |
Assignment Operators and Expressions. Conditional Expressions.
Precedence and Order of Evaluation |
|
| 4 |
Control Flow. Statements and Blocks. If-Else. Else-If. Switch. Loops - While and For. Loops - Do-While.
|
|
| 5 |
Functions, scopes, parameter passing
Recursion |
|
| 6 |
Recursion
|
|
| 7 |
MIDTERM
|
|
| 8 |
Arrays |
|
| 9 |
Pointers. Pointers and Addresses. Pointers and Function Arguments. Pointers and Arrays. Address Arithmetic. Character Pointers and Functions.
|
|
| 10 |
Initialization of Pointer Arrays. Pointers vs. Multi-dimensional Arrays. Command-line Arguments. Pointers to Functions.
|
|
| 11 |
Structures. Basics of Structures. Structures and Functions. Arrays of Structures. Pointers to Structures. Self-referential Structures. |
|
| 12 |
Input and Output. Standard Input and Output. Formatted Output – printf. Variable-length Argument Lists. Formatted Input – Scanf |
|
| 13 |
File Access. Error Handling - Stderr and Exit. Line Input and Output . |
|
| 14 |
Miscellaneous Functions. String Operations. Character Class Testing and Conversion. Command Execution. Storage Management.
|
|
|