C/C++

ID: 1489
Course type: scientific and vocational
Course coordinator: Lazović M. Goran
Lecturers: Lazović M. Goran
Contact: Lazović M. Goran
Level of studies: M.Sc. (graduate) Academic Studies – Mechanical Engineering
ECTS: 6
Final exam type: project design
Department: Department of Information Technologies in Mechanical Engineering

Lectures

Goal

Introduce to C/C++; Structure of C/C++ and usability. Solving simple problems in mechanical engineering using C/C++. Art of pointers. Saving acquisition data in files, use that files and discuss results.

Outcome

After successful completion of the program provided for in this case the student can: Program simple programs in C/C++ to solve problems in mechanical engineering. Use basic patterns in C/C++. Use pointers and simple data structures. Solve simple mechanical engineering problems with acquisition data in files.

Theoretical teaching

Basic types. Constants. Operators and priority of operators. Blocks. If statement. Cycles. goto, break and exit statements. Domain rules and variable declaration. Statical and registar variables. Definition and declaration of functions. Initialisation and recursion. Structures and fields. char arrays and strings. Basic facts about pointers. Arrays and pointers. Adress aritmetic based on pointers. Command line arguments. Pointers to functions. Standard streams. Files and buffers. Some rules on using memory.

Practical teaching

Workshops with basic examples in C/C++.

Attendance requirement

Knowledge of Programming, Computer tools, Numerical methods, Mathematics 1, Mathematics 2.

Resources

The necessary software for this case under the GNU license - free of charge. If necessary use the Linux C/C++ as it is available to you immediately. If you use another operating system, C/C++ can be downloaded from the appropriate Web site (see URL) or the URL. To run the software it is enough to possess simplest PC.

Assigned hours

Total assigned hours: 75

Active teaching (theoretical)

New material: 25
Elaboration and examples (recapitulation): 5

Active teaching (practical)

Auditory exercises: 0
Laboratory exercises: 15
Calculation tasks: 0
Seminar paper: 8
Project: 4
Consultations: 0
Discussion/workshop: 3
Research study work: 0

Knowledge test

Review and grading of calculation tasks: 0
Review and grading of lab reports: 0
Review and grading of seminar papers: 4
Review and grading of the project: 4
Test: 0
Test: 2
Final exam: 5

Knowledge test (100 points total)

Activity during lectures: 5
Test/test: 35
Laboratory practice: 0
Calculation tasks: 0
Seminar paper: 30
Project: 0
Final exam: 30
Requirement for taking the exam (required number of points): 35

Literature

Laslo Kraus; Programski jezik C++ sa rešenim zadacima; Akademska misao; 2014; Stanley B. Lippman, Josee Lajoie, Barbara E. Moo; C++ Primer; Addison-Wesley Professional; 2012