Türkçe | English
FACULTY of ENGINEERING / DEPARTMENT of MECHANICAL ENGINEERING

Course Catalog
http://www.muhfak.ktu.edu.tr/makina
Phone: +90 0462 377 2905
MF
FACULTY of ENGINEERING / DEPARTMENT of MECHANICAL ENGINEERING /
Katalog Ana Sayfa
  Katalog Ana Sayfa  KTÜ Ana Sayfa   Katalog Ana Sayfa
 
 

ME1004Computer Programming2+1+0ECTS:3
Year / SemesterSpring Semester
Level of CourseFirst Cycle
Status Compulsory
DepartmentDEPARTMENT of MECHANICAL ENGINEERING
Prerequisites and co-requisitesNone
Mode of Delivery
Contact Hours14 weeks - 2 hours of lectures and 1 hour of practicals per week
LecturerDoç. Dr. Nurhan GÜRSEL ÖZMEN
Co-LecturerAsist. Prof. Dr. Caner SANCAK
Language of instruction
Professional practise ( internship ) None
 
The aim of the course:
This course provides an introduction to the Programming Languages. Insights and basic knowledge of solving engineering problems by using MATLAB. Presentation of MATLAB features and most important MATLAB statements. Background information for object-oriented language. language
 
Learning OutcomesCTPOTOA
Upon successful completion of the course, the students will be able to :
LO - 1 : understand the syntax and structure of MATLAB programs4,73
LO - 2 : edit, compile, execute and get hard copy of a simple program4,74
LO - 3 : develop algorithms to solve engineering problems4,73
LO - 4 : identify run-time error and test a program for debugging purposes4,71
LO - 5 : write a program using appropriate selection statements such as if-else and switch4,71
LO - 6 : write a program using appropriate looping statements such as while, for and do-while4,71
LO - 7 : write a program using functions with parameters passed by value and by reference4,71
CTPO : Contribution to programme outcomes, TOA :Type of assessment (1: written exam, 2: Oral exam, 3: Homework assignment, 4: Laboratory exercise/exam, 5: Seminar / presentation, 6: Term paper), LO : Learning Outcome

 
Contents of the Course
The origin of programming and the basics of MATLAB commands. Variables, Constant Operators, and Expressions. Program Control Statements and Loops. Functions. Arrays. Pointers. Data Structures, Input/Output with Files. Data storage and plotting tools
 
Course Syllabus
 WeekSubjectRelated Notes / Files
 Week 1The basic of programming and origin of MATLAB
 Week 2Expressions in Matlab : Numbers, Variables, operators, functions, Data types
 Week 3Operators (+ - / * % && || +++ and --) Basic writing rules
 Week 4Constant operators and expressions
 Week 5Programming steps, control statements
 Week 6if-else-else if structure
 Week 7Iteration Structure, while loop
 Week 8Calculations element by element in matlab, using break and continue in the loop
 Week 9Mid-term exam
 Week 10for loop, and Selective Structure: switch-case
 Week 11Standard (Predefined) Functions - User-Defined Functions
 Week 12Functions (continue)
 Week 13Plotting with matlab
 Week 14Plot, title, xlabel, ylabel and hold Command, Multi Graphics, legend, figures and subplot Functions
 Week 15Input/Output in MATLAB, solutions of equations.
 Week 16End-of-term exam
 
Textbook / Material
1Dal D., 2015, MATLAB ile Programlama, Ekin Yayınevi, İstanbul
 
Recommended Reading
1Arifoğlu U., Kubat C., 2003, MATLAB ve Mühendislik Uygulamaları, alfa Yayıncılık, İstanbul
 
Method of Assessment
Type of assessmentWeek NoDate

Duration (hours)Weight (%)
Mid-term exam 9 17/04/2024 25
Homework/Assignment/Term-paper 4,6,8,10 23/04/2024 7 25
End-of-term exam 16 05/06/2024 50
 
Student Work Load and its Distribution
Type of workDuration (hours pw)

No of weeks / Number of activity

Hours in total per term
Yüz yüze eğitim 3 14 42
Sınıf dışı çalışma 1 14 14
Arasınav için hazırlık 2 6 12
Arasınav 2 1 2
Ödev 1 6 6
Dönem sonu sınavı için hazırlık 2 6 12
Dönem sonu sınavı 2 1 2
Total work load90