Intermediate 2 Computing Unit 2 - Software Development Topic 2 - Software Development Languages and Environments.

Slides:



Advertisements
Similar presentations
GCSE Computing Lesson 5.
Advertisements

compilers and interpreters
Software Development Languages and Environments. Programming languages High level languages are problem orientated contain many English words are easier.
 A word processor is a computer that can be used for writing, editing and printing text.  We are going to use a word processing package called Microsoft.
CS 104 Introduction to Computer Science and Graphics Problems Software and Programming Language (2) Programming Languages 09/26/2008 Yang Song (Prepared.
Word Processing. ► This is using a computer for:  Writing  EditingTEXT  Printing  Used to write letters, books, memos and produce posters etc.  A.
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
Systems Software Operating Systems.
Activity 1 - WBs 5 mins Go online and spend a moment trying to find out the difference between: HIGH LEVEL programming languages and LOW LEVEL programming.
1 Chapter-01 Introduction to Computers and C++ Programming.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
Course Introduction C++ An Introduction to Computing.
Languages and Environments Higher Computing Unit 2 – Software Development.
Software – Applications software and programming languages
Systems Software & Operating systems
1 Software Development Topic 2 Software Development Languages and Environments.
Standard Grade Computing SYSTEM SOFTWARE CHAPTER 19.
Slide 1 Standard Grade Computing Studies Systems Software.
Higher Grade Computing Studies 2. Languages and Environments Higher Computing Software Development S. McCrossan 1 Classification of Languages 1. Procedural.
Standard Grade Computing System Software & Operating Systems.
1 Computing Software. Programming Style Programs that are not documented internally, while they may do what is requested, can be difficult to understand.
Algorithms and Programming
Python From the book “Think Python”
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
Software – Applications software and programming languages.
Systems Software Operating Systems. What is software? Software is the term that we use for all the programs and data that we use with a computer system.
Intermediate 2 Software Development Process. Software You should already know that any computer system is made up of hardware and software. The term hardware.
I Power Higher Computing Software Development Development Languages and Environments.
Computing System Fundamentals 3.1 Language Translators.
Chapter Three The UNIX Editors.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
1 Software. 2 What is software ► Software is the term that we use for all the programs and data on a computer system. ► Two types of software ► Program.
Compilers and Interpreters. HARDWARE Machine LanguageAssembly Language High Level Language C++ Visual Basic JAVA Humans.
Intermediate 2 Computing Unit 2 - Software Development.
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
Processing Hardware, Software. Hardware Hardware Processing is performed by a computer ’ s central processing unit and is measured by the clock speed.
Machine Machine language is PL in which program instructions are written in strings of 0s and 1s.The computer circuitry is wired in a manner that it can.
The Functions and Purposes of Translators Translators, Interpreters and Compilers - High Level Languages.
Programming Objectives What is a programming language? Difference between source code and machine code What is python? – Where to get it from – How to.
Compilers and Interpreters
The Functions and Purposes of Translators Translators, Interpreters and Compilers - High Level Languages.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
Software Design and Development Languages and Environments Computing Science.
OCR A Level F453: The function and purpose of translators Translators a. describe the need for, and use of, translators to convert source code.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Programming Languages
THE SOFTWARE Computers need clear-cut instructions to tell them what to do, how to do, and when to do. A set of instructions to carry out these functions.
Software Development Languages and Environments. Computer Languages Just as there are many human languages, there are many computer programming languages.
Programming Language Basics. What is a Programming Language? “A computer, human-created language used to write instructions for a computer.” “An artificial.
Evolution and History of Programming Languages
Computer Systems Nat 5 Computing Science
Topic 2: Hardware and Software
Why don’t programmers have to program in machine code?
Development Environment
Component 1.6.
14 Compilers, Interpreters and Debuggers
Component 1.6.
Introduction to programming
Computer Systems Nat 5 Computing Science
A451 Theory – 7 Programming 7A, B - Algorithms.
Teaching Computing to GCSE
Unit# 8: Introduction to Computer Programming
TRANSLATORS AND IDEs Key Revision Points.
Teaching Computing to GCSE
Translators & Facilities of Languages
Translators & Types of Languages
Programming Language Basics
Part 1 Q1 to Q5 of National 5 Prelim
1.3.7 High- and low-level languages and their translators
Presentation transcript:

Intermediate 2 Computing Unit 2 - Software Development Topic 2 - Software Development Languages and Environments

Describe and compare Machine Code and High Level Languages TOPIC 2 - SOFTWARE DEVELOPMENT LANGUAGES AND ENVIRONMENTS

Machine Code Processors only understand binary. Instructions and commands in binary are know as Machine Codes. Here are some machine codes: – – Are these easy to understand?

Machine Code Advantages of Machine Code. –Does not have to be translated into binary. Disadvantages machine code: –Very hard for humans to understand; –Take up a lot of space to write down; –Difficult to debug; & –Different processors use different machine codes. Machine codes are examples of Low Level Languages because they could only be understood by low level components.

High Level Languages High level languages (HLL’s) are similar to human languages. Instead of using binary patterns, they use “normal” words. Example: »ASK “Please enter your name” »PUT IT INTO varName –Although this is not correct English in terms of grammer and punctuation. With a little bit of an explanation we can understand it.

High Level Languages Advantages of HLL’s –High level languages are easier to understand than machine code, and are more ”readable”. –It is easier to find mistakes using HLL’s. Disadvantages of HLL’s –HLL’s must be translated into machine code so that the processor can understand the instructions. This can slow down the running of the program, & This can use more hardware resources to store the program, the HLL program, the translator and the machine code.

High Level Languages Advantages of HLL’s –High level languages are easier to understand than machine code, and are more ”readable”. –It is easier to find mistakes using HLL’s. Disadvantages of HLL’s –HLL’s must be translated into machine code so that the processor can understand the instructions. This can slow down the running of the program, & This can use more hardware resources to store the program, the HLL program, the translator and the machine code.

Explain the need for translation Topic 2 : Software development languages and environments

Translators Processors do not understand HLL’s. Translators have been developed to allow programmers to write programs in HLL’s and the translators will convert these programs into machine code. HLL CodeTranslatorMachine Code

Describe the functions of Interpreters and compilers Topic 2 : Software development languages and environments

Translators There are two main types of translators: –Interpreters; & –Compilers. Although both of these utilities do the same task (convert HLL to machine code) they both work differently.

Interpreters The interpreter takes each line of code, translates it into machine code and passes it to the processor to carry out the instruction. It works its way through the program one line at a time. Think of a spell checker in MS-Word. When you finish writing the work the dictionary checks it and if it is spelt incorrectly it will be underlined immediately.

Interpreters Advantages –Any errors that are found are highlighted as soon as the line is written showing exactly where the error is. Disadvantages –This slows the program down. –The interpreter runs every time the program is run. This is a waste of resources

Compilers A compiler takes your HLL program and translates the whole program into machine code. Any errors are reported in a batch once all the lines of code have been translated. The machine code version of the program can be kept and run as many times as needed without needing the original HLL version or the translator program.

Compilers Advantages –Running the machine code version of the program is very fast; –Running the machine code version does not waste computer resources. Disadvantages –Harder to find and edit mistakes when given in a batch; –Running a compiler is time-consuming.

Describe a macro, and examples of the use of macros Topic 2 : Software development languages and environments

Macros A macro is a program written in a scripting language and used with an application program. A macro is used to perform a perhaps complicated task simply by activating a key stroke. They automate tasks within the application package.

Macros Examples of when you would use a macro: –If you wanted to repeatedly search and sort a database using the same conditions it would be easier and quicker to use a macro. –If you wanted to repeatedly do a mail merge again it would be easier to use a macro. –If I wanted to change all the headings in this slide to Comic Sans instead of Jokerman I could use a macro instead of having to manually change each page.

Describe the features and use of a text editor Topic 2 : Software development languages and environments

Text Editors During the implementation stage the programmer codes the program. The HLL used looks like a human language. –This language is called the source code. Some software development environments provide a text editor. –This is where the source code is typed and edited. –It contains many features usually found in a word processor: Spell check Find/Change copy (Cut) / Paste. etc