by Dharani Pullammagari

Slides:



Advertisements
Similar presentations
Agenda Definitions Evolution of Programming Languages and Personal Computers The C Language.
Advertisements

Modules Program is built out of components. Each component defines a set of logically related entities (strong internal coupling) A component has a public.
879 CISC Parallel Computation High Performance Fortran (HPF) Ibrahim Halil Saruhan Although the [Fortran] group broke new ground …
Programming Languages and Paradigms
Chapter 8 High-Level Programming Languages. 8-2 Chapter Goals Describe the translation process and distinguish between assembly, compilation, interpretation,
Copyright © 1998 by Addison Wesley Longman, Inc. 1 Chapter One Preliminaries, including –Why study PL concepts? –Programming domains –PL evaluation criteria.
SBML2Murphi: a Translator from a Biology Markup Language to Murphy Andrea Romei Ciclo di Seminari su Model Checking Dipartimento di Informatica Università.
Programming Languages Marjan Sirjani 2 2. Language Design Issues Design to Run efficiently : early languages Easy to write correctly : new languages.
ADA Langage Report Ligia Nitu. Introduction Ada is the most extensive and expensive computer language ever developed. Ada is the most extensive and expensive.
High-Level Programming Languages
Topics of Lecture Structural Model Procedures Functions Overloading.
Chapter 8 High-Level Programming Languages Nell Dale John Lewis.
Chapter 8: Introduction to High-level Language Programming Invitation to Computer Science, C++ Version, Third Edition.
Chapter 8 Arrays and Strings
Chapter 8: Introduction to High-level Language Programming Invitation to Computer Science, C++ Version, Third Edition.
Chapter 8: Introduction to High-Level Language Programming Invitation to Computer Science, C++ Version, Fourth Edition.
Copyright © 2006 The McGraw-Hill Companies, Inc. Programming Languages 2nd edition Tucker and Noonan Chapter 12 Imperative Programming I really hate this.
Introduction to Java Appendix A. Appendix A: Introduction to Java2 Chapter Objectives To understand the essentials of object-oriented programming in Java.
Advanced Databases Advanced PL/SQL Programming: Procedure, Function and Package.
Ada is a structured, statically typed, imperative, wide- spectrum, and object-oriented high-level computer programming language, extended from Pascal.
High-Level Programming Languages: C++
GENERAL CONCEPTS OF OOPS INTRODUCTION With rapidly changing world and highly competitive and versatile nature of industry, the operations are becoming.
Chapter 8 Arrays and Strings
Porting Implementation of Packet Utilization Standard from ADA to JAVA Annelie Hultman (TEC-EME) Donata Pedrazzani (TEC-EMS) ESA/ESTEC 2004 JPUS de-briefing.
Chapter 8 High-Level Programming Languages. 8-2 Chapter Goals Describe the translation process and distinguish between assembly, compilation, interpretation,
Prepared by: Elsy Torres Shajida Berry Siobhan Westby.
Ada How was Ada conceived. The language, not the lady.
Pascal CourseWinter 2010/111. Introduction Imperative and procedural programming language Designed: 1968/9 Published: 1970 Static and strong typing.
Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL – Basic Language Elements  Identifiers: –basic identifier: composed of a sequence of one or more.
C++ Programming Basic Learning Prepared By The Smartpath Information systems
Chapter 8: Introduction to High-level Language Programming Invitation to Computer Science, C++ Version, Third Edition.
CMP 131 Introduction to Computer Programming Violetta Cavalli-Sforza Week 3, Lecture 1.
Introduction to c++ programming - object oriented programming concepts - Structured Vs OOP. Classes and objects - class definition - Objects - class scope.
8-1 Compilers Compiler A program that translates a high-level language program into machine code High-level languages provide a richer set of instructions.
Chapter 8 High-Level Programming Languages. 2 Chapter Goals Describe the translation process and distinguish between assembly, compilation, interpretation,
16/11/2006DSD,USIT,GGSIPU1 Packages The primary purpose of a package is to encapsulate elements that can be shared (globally) among two or more design.
 In the java programming language, a keyword is one of 50 reserved words which have a predefined meaning in the language; because of this,
VHDL Discussion Subprograms IAY 0600 Digital Systems Design Alexander Sudnitson Tallinn University of Technology 1.
 2007 Pearson Education, Inc. All rights reserved. A Simple C Program 1 /* ************************************************* *** Program: hello_world.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
Ada, Scheme, R Emory Wingard. Ada History Department of Defense in search of high level language around Requirements drafted for the language.
Program Design. Simple Program Design, Fourth Edition Chapter 1 2 Objectives In this chapter you will be able to: Describe the steps in the program development.
Chapter 1: Preliminaries Lecture # 2. Chapter 1: Preliminaries Reasons for Studying Concepts of Programming Languages Programming Domains Language Evaluation.
structured statically typed imperative wide-spectrum object-oriented high-level computer programming language extended from Pascal and other languages.
Invitation to Computer Science 5 th Edition Chapter Ada Programming in Ada.
CSE3302 Programming Languages (notes continued)
Introduction to Algorithms
Definition of the Programming Language CPRL
Prof: Dr. Shu-Ching Chen TA: Samira Pouyanfar Spring 2017
Design Goals Programs reliability and maintenance is important
Revision Lecture
UNIT - V STORED PROCEDURE.
Organization of Programming Languages
Prof: Dr. Shu-Ching Chen TA: Samira Pouyanfar Hector Cen Fall 2017
Pascal Winter 2010/ Course.
Java Programming: Guided Learning with Early Objects
Chapter 8: Introduction to High-Level Language Programming
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
Support for Object-Oriented Programming in Ada 95
1) C program development 2) Selection structure
VHDL Discussion Subprograms
Coding Concepts (Basics)
Programming Languages 2nd edition Tucker and Noonan
Introduction C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell.
High Level Programming Languages
Low Level Programming Languages
VHDL Discussion Subprograms
Introduction to Algorithms
Language Constructs Construct means to build or put together. Language constructs refers to those parts which make up a high level programming language.
Reasons To Study Programming Languages
Presentation transcript:

by Dharani Pullammagari ADA Programming Language by Dharani Pullammagari

History Ada was originally designed by a team led by Jean Ichbiah of CII Honeywell Bull under contract to the United States Department of Defense (DoD) from 1977 to 1983. -> Ada 95, was the first internationally standardized (ISO) Object-Oriented Language. -> Ada was named after Ada Lovelace (1815–1852)from England, who has been credited with being the first computer programmer.

Versions Ada 83/Ada 87: Jean Ichbiah, the language became ANSI standard in1983 and without any changes became an ISO standard in 1987. Ada 95: Tucker Taft (since it became ISO standard object-oriented programming language in February 1995) Ada 2005: Tucker Taft Ada 2012: Tucker Taft(is the most recent stable release on february 2016)

PARADIGM Ada is a multiparadigm language Structured, is a programming paradigm aimed at improving the clarity, quality, Statistically typed, The main purpose of a type system is to reduce possibilities for bugs wide spectrum, is used as both high level language and low level language imperative, Object oriented, is based on obejcts

Compilers DACS : DDC-I Inc. (is a privately held company) established a business in selling the Ada compiler system. GREEN HILLS SOFTWARE OPTIMISING ADA 95 COMPILER ADACORE GNAT: GNAT is a free-software compiler for the Ada programming language. It supports all versions of the language, i.e. Ada 2012, Ada 2005, Ada 95 and Ada 83

Applications Avionics:  electronic systems(communication, navigation, display of multiple systems) used on aircraft, artificial satellites, and spacecraft. Banking Military Railways: metro sub trains in Paris, London, and New York.(cab signaling) Air traffic control Boeing 777 Canadian automated air traffic system

Program Structure EXAMPLE: with Ada.Text_IO; use Ada.Text_IO; procedure Form is begin Put("There is no- "); Put("Bad Religion"); New_Line; Put("There are only- "); Put("Bad People"); end Form;

There is no- Bad Religion There are only- Bad People. -- Result of execution There is no- Bad Religion There are only- Bad People. The program outline can be given as follows;   procedure <program name> is <declarative part> begin <executable part> end <optional repeat of program name>;

 There are two portions of any Ada program, a declarative part, which is contained between the reserved words “is” and “begin”, and the executable part between “begin” and “end”.

Data Types There are four different kinds of data types syntax: variableName : DataType;

Enumeration Type primitive data types example: i: Integer :=2; type DAY is (MON,TUE,WED,THU,FRI,SAT,SUN);

Modular integer: cannot store a negative number example: A : = A mod 10 Aggregate types: (gather the components of the data type together into a single type known as a record type) type Date_Type is record Day : Day_Type; Month : Month_Type; Year : Year_Type; end record;

Given this type declaration, variables of type Date_Type can be declared just like variables of any other data type: Now, Later : Date Type;  The variables Later and Now each contain three distinct sub variables.

SEQUENCE CONTROL If statements Case statements Simple Loops case expression is when choices => statements . . . when others => statements end case; Simple Loops While Loops

For Loops Exit and exit when: for index in range loop statements end loop; for i in 1..20 loop put (i); Exit and exit when: loop if boolean expression then exit; end if; exit when boolean expression;

INPUT OUTPUT Text_IO: Text I/O is most used input/output package. All the data inside the file are very readable text Direct_IO:Direct I/O is used for random access files which contain only elements of one specific type. Sequential_IO: With Sequential IO it is the other way round: you can choose between definite and indefinite element types but you have to read and write the elements one after the other.

Stream_IO:Stream I/O allows you to mix objects from different element types in one sequential file Any file in Ada can be used as input or output file but not both.

SUB PROGRAM CONTROL There are two distinct categories of subprograms, procedures and functions. Sematic models: in mode: They can receive data from corresponding actual parameters. out mode: They can transmit data to the actual parameter. inout mode: They can do both.

ENCAPSULATION Making information inaccessible to others who should not use it is called encapsulation. Encapsulation improves a program's maintainability and reliability. The unit of encapsulation in Ada is package that defines a tagged type Every object in a tagged type includes a tag to indicate during execution Tagged types can be private or record type.

Inheritance: Subclasses can be derived from tagged types New entities are added to the inherited entities All subclasses are sub types Ada doesn’t support multiple inheritance. type PERSON is tagged private;

SAMPLE PROGRAM with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure jdoodle is X: Natural := 10; Y: Natural := 25; Z: Natural := X + Y;begin Put("X + Y = "); Put(Z); end jdoodle;

https://www.jdoodle.com/execute-ada-online