Programming in C

Lectures

Goal

The main objective of the course is to familiarize students with the use of the S programming language in the process of solving a number of technical problems. The characteristic use of S in mechanical engineering, which is characterized by the analysis of data collected in real time, will be particularly emphasized. Students must be: • familiar with basic data types and data structures;• recognize the basic use of the C programming language; • use basic C commands, and with their help solve simple engineering problems; • become familiar with the use of C for data analysis characteristic of mechanical engineering; • are familiar with basic programming techniques, which are not characteristic of C only.

Outcome

After successfully completing the course provided by this subject, the student will be able to: • recognize the possible use of the C programming language in solving some problems of mechanical engineers. • acquire basic knowledge of the principles of programming in the C language; • use files.

Theoretical teaching

Data types and sizes. Constants. Operators. Priority and order of calculation. Statements and blocks. Program branching statements. Loops. Unconditional jump statements. Basic concepts about functions. External variables. Scope rules. Using files.

Practical teaching

It consists of lecture and laboratory exercises that follow the course content. Basic examples of the C programming language.

Attendance requirement

High school mathematics and programming.

Resources

The necessary software for this course is under the GNU license - it is free. If you use LINUX, then C/C++ is immediately available to you. If you use another operating system, you can download C/C++ from the appropriate WEB location (see URL) or at the URL itself. To run the necessary software, it is enough to have the simplest PC computer.

Assigned hours

Total assigned hours: 45

Active teaching (theoretical)

New material: 15
Elaboration and examples (recapitulation): 3

Active teaching (practical)

Auditory exercises: 2
Laboratory exercises: 16
Calculation tasks: 0
Seminar paper: 0
Project: 0
Consultations: 0
Discussion/workshop: 0
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: 0
Review and grading of the project: 0
Test: 4
Test: 4
Final exam: 1

Knowledge test (100 points total)

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

Literature

C Programming Language, Dennis M. Ritchie, Brian W. Kernighan, ISBN 0-13-110362-8, Mikroknjiga, 2003;