Programming Languages

Slides:



Advertisements
Similar presentations
GCSE Computing Lesson 5.
Advertisements

CSCE 145: Algorithmic Design I Chapter 1 Intro to Computers and Java Muhammad Nazmus Sakib.
Java.  Java is an object-oriented programming language.  Java is important to us because Android programming uses Java.  However, Java is much more.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Low-Level Programming Languages
Chapter 7 Low-Level Programming Languages Nell Dale John Lewis.
Consider With x = 10 we may proceed as (10-1) = 9 (10-7) = 3 (9*3) = 27 (10-11) = -1 27/(-1) = -27 Writing intermediates on paper.
CMP 131 Introduction to Computer Programming Violetta Cavalli-Sforza Week 1, Lab.
9-Aug-15 Vocabulary. Programming Vocabulary Watch closely, you might even want to take some notes. There’s a short quiz at the end of this presentation!
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.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
1 Chapter-01 Introduction to Computers and C++ Programming.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
High-level Languages.
High level & Low level language High level programming languages are more structured, are closer to spoken language and are more intuitive than low level.
Introduction to C++ Programming Language
Basic of Programming Language Skill Area Computer System Computer Program Programming Language Programmer Translators.
Computer Operations A computer is a programmable electronic device that can store, retrieve, and process data Data and instructions to manipulate the data.
Chapter 7 Low-Level Programming Languages. 2 Chapter Goals List the operations that a computer can perform Discuss the relationship between levels of.
Chapter 7 Low-Level Programming Languages. 2 Chapter Goals List the operations that a computer can perform Discuss the relationship between levels of.
A compiler is a computer program that translate written code (source code) into another computer language Associated with high level languages A well.
Chapter 4 Software. Chapter 4: Software Generations of Languages Each computer is wired to perform certain operations in response to an instruction. An.
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
By: Cheryl Mok & Sarah Tan. Java is partially interpreted. 1. Programmer writes a program in textual form 2. Runs the compiler, which converts the textual.
Chapter 1 Introduction. Components of a Computer CPU (central processing unit) Executing instructions –Carrying out arithmetic and logical operations.
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
Compilers and Interpreters
Representation of Data - Instructions Start of the lesson: Open this PowerPoint from the A451 page – Representation of Data/ Instructions How confident.
OCR A Level F453: The function and purpose of translators Translators a. describe the need for, and use of, translators to convert source code.
Programming Languages
INTRODUCTION TO COMPUTER PROGRAMMING ITC-314. Computer Programming  Computer Programming means creating a sequence of instructions to enable a computer.
Introduction to Programming and App Inventor. Introduction What is a computer program? Introducing App Inventor Getting hands on with App Inventor.
CIS 234: Object-Oriented Programming with Java
Computer Basics.
Software Development Environment
CSC235 Computer Organization & Assembly Language
Why don’t programmers have to program in machine code?
Component 1.6.
Assembler, Compiler, MIPS simulator
GCSE COMPUTER SCIENCE Computers 1.5 Assembly Language.
Computational Thinking, Problem-solving and Programming: General Principals IB Computer Science.
Programming languages
CSCI-235 Micro-Computer Applications
Lecture 1: Introduction to JAVA
Why to use the assembly and why we need this course at all?
A451 Theory – 7 Programming 7A, B - Algorithms.
Introduction CSE 1310 – Introduction to Computers and Programming
Teaching Computing to GCSE
TRANSLATORS AND IDEs Key Revision Points.
Teaching Computing to GCSE
Translators & Facilities of Languages
Language is a medium of communication.
Assembler, Compiler, Interpreter
Computers: Hardware and Software
Lesson Objectives Aims Key Words Compiler, interpreter, assembler
Do it now – PAGE 10 You will find your do it now task in your workbook – look for the start button! Tuesday, 15 January 2019.
CMP 131 Introduction to Computer Programming
Assembler, Compiler, Interpreter
Programming Language Basics
Java Programming Introduction
ICT Programming Lesson 1:
IB Computer Science II Paul Bui
Introduction to Virtual Machines
Introduction to Virtual Machines
A Level Computer Science Topic 5: Computer Architecture and Assembly
WJEC GCSE Computer Science
Programming language translators
Algoritmos y Programacion
Presentation transcript:

Programming Languages Friday, 18 January 2019 Mr C. Coetzee Programming Languages 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5

4.3.1 State the fundamental operations of a computer

Fundamental operations Add Compare Retrieve Store (data)

4.3.2 Distinguish between fundamental and compound operations of a computer

Fundamental vs Compound A fundamental operation could be something like , multiply two numbers, store a number, move a number to another location etc. These are operations that do not require the processor to go through a large number of sub operations to reach a result. A compound operation is an operation that involves a number of stages/other operations. Think of it as a group of operations that combine together to form an operation.

4.3.3 Explain the essential features of a computer language

Natural vs Computer languages Natural (Human) Computer (Java) Varying vocabulary ‘way’ Fixed vocabulary int, public, String Ambiguous He saw that gas can explode Unambiguous meaning String answer = “#yolo”; Grammar & syntax inconsistent Grammar & syntax consistent

4.3.4 Explain the need for higher level languages

Why high level? High level language = similar to human language (like English) Low level language = close to the binary code used to actually process the instruction. As human needs for computer systems have expanded, it is necessary to abstract from the basic operations of a computer. It would take far too long to write the type of systems needed today in machine code.

4.3.5 Outline the need for a translation process from a higher level language to machine executable code

Video https://www.youtube.com/watch?v=_C5AHaS1mOA#t=44

Key terms Compiler - If the translator translates a high level language into a lower level language (done in a batch) Interpreter - the translator translates a high level language into an intermediate code which will be immediately executed by the CPU (done line by line) Assembler - the translator translates assembly language to machine code (mnemonics to binary)

Levels of language

Virtual machine … is a piece of software designed to behave like hardware. You can think of it as simulating how the hardware of a computer works. With this kind of software you could emulate a smartphone (say an HTC wildfire for example) on your PC. This might be handy if you are writing software that will run on the phone and would allow you to complete testing before you actually install the software onto the actual real device.

Java virtual machine Java applications run on a virtual machine (the Java Virtual Machine or JVM). This virtual machine is installed on the computer (e.g. PC, Mac, Smart Phone, Ticket Machine) and allows the same java code to be run on many different types of hardware. Even though the hardware architecture and instruction sets of each of these devices is different the virtual machine is the same. The trick is that the virtual machine software needs to match the hardware it will be installed on, so you need to get the correct version of the virtual machine, but once you have it then you can run any java program. This is good for the java programmer as he does not have to write lots of different versions of the program he is writing, for each of the devices he wants it to run on. After the java program is written it can be deployed to any device that has the Java Virtual Machine installed on it.

Write once, run anywhere!