Electromechanical Engineering
Faculty of Engineering
Somali National University
Course Name : Elementary Programing Concept
Course code : EPC 2309
Abdikadir Yusuf
February 17, 2020
Lecturer Outline
OVERVIEW
What is Programming Language?
Types of Programming Languages
What is C?
History of C
Facts about C
Why Use C?
Why Mechanical & Electrical Engineering need programing
language?
What is Programming Language?
Program A set of coded instructions that a computer can understand to solve a problem or
produce a desired result.
Programming the act or process of planning or writing a program.
A programming language is a notation designed to connect instructions to a machine or a
computer.
A programming language is a formal language, which comprises a set of instructions that
produce various kinds of output. Programming languages are used in computer programming to
implement algorithms.
Programming languages are mainly used to control the performance of a machine or to express
algorithms.
Types of Programming Languages
Procedural Programming Language
The procedural programming language is used to execute a sequence of statements
which lead to a result. Typically, this type of programming language uses multiple
variables, heavy loops and other elements.
Functional Programming Language
Functional programming language typically uses stored data, frequently avoiding loops in
favor of recursive functions. The functional programing’s primary focus is on the return
values of functions.
Object-oriented Programming Language
This programming language views the world as a group of objects that have internal
data and external accessing parts of that data. The aim this programming language is
to think about the fault by separating it into a collection of objects that offer services
which can be used to solve a specific problem.
Types of Programming Languages
Scripting Programming Language
These programming languages are often procedural and may comprise object-
oriented language elements, but they fall into their own category as they are
normally not full-fledged programming languages with support for development of
large systems.
Logic Programming Language
These types of languages let programmers make declarative statements and then
allow the machine to reason about the consequences of those statements. In a sense,
this language doesn’t tell the computer how to do something, but employing
restrictions on what it must consider doing.
What is C?
The C language is a basic programming language and it is a very popular language,
particularly used in game programming.
C is a general-purpose programming language that is extremely popular, simple and flexible.
It is machine-independent, structured programming language which is used extensively in
various applications.
C is a powerful general-purpose programming language. It is fast, portable and available in
all platforms.
C is a computer programming language. That means that you can use C to create lists of
instructions for a computer to follow. C is one of thousands of programming languages
currently in use.
History of C
C was originally designed for and implemented on the UNIX operating system on the DEC PDP-ll, by Dennis
Ritchie.
C is the result of a development process that started with an older language called BCPL. BCPL was developed by
Martin Richards, and it influenced a language called B, which was invented by Ken Thompson. B led to the
development of C in the 1970s.
In 1978, Brian Kernighan and Dennis Ritchie produced the first publicly available description of C.
Many of the ideas of C language were derived and taken from 'B' language.
Basic Combined Programming Language (BCPL) and Combined Programming Language (CPL) are previous
versions of 'B'
language.
As many features came from B it was named as 'C'.
Facts about C
• C was invented to write an operating system called UNIX.
• C is a successor of B language which was introduced around the early 1970s.
• The language was formalized in 1988 by the American National Standard Institute
(ANSI).
• The UNIX OS was totally written in C.
• Today C is the most widely used and popular System Programming Language.
• Most of the state-of-the-art software have been implemented using C.
• Today's most popular Linux OS and RDBMS MySQL have been written in C.
Why Use C?
C was initially used for system development work, particularly the programs
that make-up the operating system.
C was adopted as a system development language because it produces code
that runs nearly as fast as the code written in assembly language. Some
examples of the use of C might be :
Operating Systems Language Compilers Assemblers Text Editors
Network Drivers Modern Programs Databases Language
Interpreters Utilities
Why Mechanical & Electrical Engineering need programing
language?
It will help you strengthen your logic thinking.
It will help you strengthen your systems thinking.
It will help you strengthen your problem-solving skills,
It will drive your creativity while developing solutions.
It will help you understand processes better.
It will make you feel more confident while taking decisions.
It will take you out of your comfort zone.
END