Programming Fundamentals and Programming Languages Concepts
230 views
25 slides
Nov 04, 2019
Slide 1 of 25
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
About This Presentation
Programming Fundamentals:
What is a Computer?
Software & Hardware?
Operating System
Programming Languages Concepts
Why do we need programming languages?
Why C Still Useful?
Size: 1.18 MB
Language: en
Added: Nov 04, 2019
Slides: 25 pages
Slide Content
Programming Fundamentals:
What is a Computer? An electronic device which is capable of receiving information (data) in a particular form and of performing a sequence of operations to produce a result in the form of information.
What is a Computer? Is it a machine with a fantastic brain and incredible intelligence? Of course NOT. A computer has no reasoning power. It does exactly what we tell it to do -no more and no less. If we tell it to do something stupid, it does it. If we tell it to do sensible/clever things it does it as well. The important thing is that computers do what we ask them to do very -very quickly and without making mistakes.
Software & Hardware? Computer Instructions or data, anything that can be stored electronically is Software . Hardware is one that is tangible. The storage devices (Hard disk, CD’s etc.,), mouse, keyboard CPU and display devices (Monitor) are Hardware . Computer hardware would be useless without software , the lists of instructions which tell the hardware what to do. Computers require various types of software to make them useful. These can be classified as follows:
Types of Software
Three of the main types of software are: 1. Application Software 2. Operating Systems (Systems Software) 3. Utility Software Types of Software
Application Software Application software is computer software designed to help the user to perform specific tasks. Applications do useful tasks, creating and editing files of data , e.g.
Application Software Applications do useful tasks, creating and editing files of data , e.g. Spreadsheet Word Processor Database Management System Presentation Software Graphics Software Animation Software Accounts Program A collection of applications is called a suite of applications or an application package , e.g. Microsoft Office, Adobe Creative Suite. Web Design Software
Operating System System software is computer software designed to operate the computer hardware and to provide a platform for running application software . The operating system runs the computer. It works between the hardware and the application software…
Operating System The operating system runs the computer. It works between the hardware and the application software… Operating System Application Software
Operating System Hardware: Mouse, Keyboard, CPU, Hard Drive, Motherboard, CD Drive, Printer, etc. Operating System Application Software The operating system runs the computer. It works between the hardware and the application software… Without an operating system , a computer would just be a box of circuit boards and wires that wouldn’t do anything.
Operating System The most popular operating system is Windows . In most operating systems, the desktop is the main GUI (Graphical User Interface) which gives the user access to all parts of the computer. It is the operating system which… Allows you to see the contents of any drive attached to your system. Allows you to copy and paste between different applications. Copies data to and from an external drive.
Operating System Manages the memory (RAM). Manages the processor time (the different tasks waiting to be processed queue up, like people waiting in line at a post office). Detects and manages the input and output devices that are attached to the computer. The most popular operating system is Windows . It is the operating system which… In most operating systems, the desktop is the main GUI (Graphical User Interface) which gives the user access to all parts of the computer. WIMP is sometimes used to describe this type of operating system ( W indow, I con, M enu, P ointer)
Utility Software
Utility Software A utility program looks after the safe and proper running of the computer, such as… Device Driver Defragmenter Anti-spyware File Recovery Anti-virus Crash Protection Firewall Copying to CD Utility software helps to keep the computer running safely, protects it from viruses and attacks, and can carry out software repairs if necessary. Examples of popular brands are Norton and AVG.
What is a Computer? Is it a machine with a fantastic brain and incredible intelligence? Of course NOT. A computer has no reasoning power. It does exactly what we tell it to do -no more and no less. If we tell it to do something stupid, it does it. If we tell it to do sensible/clever things it does it as well. The important thing is that computers do what we ask them to do very -very quickly and without making mistakes.
What is a programming language? A "programming language" is a means of communication between a human being (programmer) and a computer. A programmer uses this means of communication in order to give the computer instructions. These instructions are called "programs". A programming language is a set of rules that provides a way of telling a computer what operations to perform . A programming language can be used to write programs that control the hardware e.g.: Embedded processor in Refrigerator, Air conditioner, Microwave oven etc. Programming Languages Concepts
What is a programming language? The description of a programming language is usually split into the two components of syntax (form) and semantics (meaning ). A program can execute only if it is both syntactically and semantically correct. Programming Languages Concepts
Why do we need programming languages ? A computer cannot understand our language that we use in our day to day conversations, and likewise, we cannot understand the binary language that the computer uses to do it’s tasks. Programming languages have been developed for the purpose of communicating with computers. Facilitate users in performing tasks which are: Faster, Correct, and Economically cheaper Programming Languages Concepts
What is a Computer Program? A computer program is a sequence of instructions. The computer does not obey these instructions while we write them. Instead, it stores them in a file and when we finish, we can ask the computer to execute them. The process of constructing (or writing) a program is called programming .
What is a programming language? A "programming language" is a means of communication between a human being (programmer) and a computer. A programmer uses this means of communication in order to give the computer instructions. These instructions are called "programs". A programming language is a set of rules that provides a way of telling a computer what operations to perform . A programming language can be used to write programs that control the hardware e.g.: Embedded processor in Refrigerator, Air conditioner, Microwave oven etc. Programming Languages Concepts
Why do we need programming languages ? A computer cannot understand our language that we use in our day to day conversations, and likewise, we cannot understand the binary language that the computer uses to do it’s tasks. Programming languages have been developed for the purpose of communicating with computers. Facilitate users in performing tasks which are: Faster, Correct, and Economically cheaper Programming Languages Concepts
What are the types of programming language? Programming languages may be divided into three (03) general types: Machine languages Assembly languages High-level languages Programming Languages Concepts
Machine languages Machine language is the only language that a computer understands Strings of 0’s and 1’s telling computers to perform basic operations one at a time; e.g.: 01001110 00111001 01101010 Machine language is a low-level programming language. It is easily understood by computers but difficult to read by people. Machine dependent i.e., a code written for one machine may not run on the other. Programming in machine languages is too slow, tedious, and error-prone. Programming Languages Concepts
Assembly languages Assembly language is a representation of machine language Symbolic operation codes replaced binary operation codes; e.g.: LOAD R1 , sessional LOAD R2 , final ADD R1, R2 STORE total_marks The advantage of assembly language is that its instructions are readable. For example, assembly language statements like LOAD and ADD are more recognizable than sequences of 0s and 1s. Assembly language programs needed to be “assembled” for execution by the computer. Each assembly language instruction is translated into one machine language instruction . Very efficient code and easier to write. Though assembly language statements are readable, the statements are still low-level. Another disadvantage of assembly language is that it is not portable. In other words, assembly language programs are specific to a particular hardware. Programming Languages Concepts