Structured Languages. Rahul Deodhar

Similar documents
Introduction to Programming

0 Introduction: Computer systems and program development

Introduction to Computers, the Internet and the Web Pearson Education, Inc. All rights reserved.

Chapter 1 Introduction to Computers and C++ Programming

Chapter 1 Overview of Programming and Problem Solving By C.K. Liang

Introduction to C++ Programming. Adhi Harmoko S, M.Komp

C++ Programming Language Lecture 1 Introduction

IS 0020 Program Design and Software Tools

Fundamentals of Programming. Lecture 1: Introduction to C Programming

Instructor. Mehmet Zeki COSKUN Assistant Professor at the Geodesy & Photogrammetry, Civil Eng. (212)

by Pearson Education, Inc. All Rights Reserved.

Introduction to Computers and Visual Basic.Net Pearson Education, Inc. All rights reserved.

Chapter 1: An Overview of Computers and Programming Languages. Objectives. Objectives (cont d.) Introduction

CS 241 Computer Programming. Introduction. Teacher Assistant. Hadeel Al-Ateeq

These all slide pages are selected from C How to Program, 5/e and 7/e Asst.Prof.Dr.Mahmut YALCIN

Chapter 1: Introduction

Chapter 1 & 2 Introduction to C Language

Programming Languages and Program Development

INTRODUCTION TO THE COURSE

Basic Computer Programming for ISNE. Santi Phithakkitnukoon ผศ.ดร.ส นต พ ท กษ ก จน ก ร

Computer Fundamentals: Pradeep K. Sinha & Priti Sinha

Chapter 1 Introduction to Computers and C++ Programming

Chapter 1 Introduction to Computers and C++ Programming

1/14/2014. Introduction to CSE 1325 Object Oriented Programming (Using Java) Introduction (Cont.) Introduction

Lecture 2. A Historical View

INFS 214: Introduction to Computing

Internet and Visual Basic Pearson Education, Inc. All rights reserved.

An Introduction to Software Engineering. David Greenstein Monta Vista High School

BITG 1113: Introduction To Computers And Programming Language LECTURE 1 LECTURE 1 1

Lecture 1: Preliminaries

Introduction to Computers, the Internet and the World Wide Web

CS 113: Introduction to

Introduction to Programming

Low-Level Languages. Computer Programs and Programming Languages

Chapter 1 Introduction to Computers, Programs, and Java. What is a Computer? A Bit of History

Object Oriented Design

Chapter 1. Preview. Reason for Studying OPL. Language Evaluation Criteria. Programming Domains

CSinParallel: Using Map-Reduce to Teach Parallel Programming Concepts Across the CS Curriculum Part 1 SC13

CS 101 Computer Science I. CS1101 Computer Science I. Today 1/27/16. Spring Robert Muller Boston College. What this course is about.

Introduction to OOP Using Java Pearson Education, Inc. All rights reserved.

Comp 333: Concepts of Programming Languages Fall 2016

INFORMATICS WITH DTP

Lecture 1: Introduction to Java

What is programming? What are computer languages and how have they evolved? What is the basic process of programming, including the tools involved?

Chapter One: Introduction A SHORT INTRODUCTION TO HARDWARE, SOFTWARE, AND ALGORITHM DEVELOPMENT

Introduction to Java Programming

Programming Fundamentals (CS 302 ) Dr. Ihsan Ullah. Lecturer Department of Computer Science & IT University of Balochistan

Unit 1 : Principles of object oriented programming

CSCI170 Lecture 1: Analysis of Programming Languages. John Magee 1 September 2011 Some material copyright Jones and Bartlett

SKILL AREA 304: Review Programming Language Concept. Computer Programming (YPG)

OOPs: The Harsh Realities of Programming

Language Translation, History. CS152. Chris Pollett. Sep. 3, 2008.

PROGRAMMING LANGUAGE PARADIGMS & THE MAIN PRINCIPLES OF OBJECT-ORIENTED PROGRAMMING


C#.NET TRAINING / /

CGT 456 Lecture 1. Introduction to Computers & Programming

An Overview of C/C++ Programming Language and Programming Environment

Fundamentals of Programming (C)

EP241 Computer Programming

(0) introduction to the course. how to learn a programming language. (0) course structure

Introduction to Java. Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved.

Introduction. Instructor: Jia Xu CSCI-135

Object Oriented Concepts and Programming (CSC244) By Dr. Tabbasum Naz

Introduction to Computers and Java. Objectives. Outline. Harald Gall, Prof. Dr. Institut für Informatik Universität Zürich.

Introduction to Computers and Java

Module 1: Introduction to Computers, Programs, and Java

What is a programming language?

Discovering Computers 2008

Introduction to Computers and Java

BIL 104E Introduction to Scientific and Engineering Computing. Lecture 1

Introduction to Java. Lecture 1 COP 3252 Summer May 16, 2017

Chapter 2. 5 * B => A V 6 7 (subscripts) S 1.n 1.n (data types)

Chapter 1 Introduction to Computers, Programs, and Java

Chapter 1. Preliminaries

Principles of Programming Languages. Lecture Outline

Introduction to Computers and Java. Objectives. Outline. Harald Gall, Prof. Dr. Institut für Informatik Universität Zürich.

Assoc. Prof. Dr. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.

6.096 Introduction to C++ January (IAP) 2009

5. Give any three parts of the structure of business letter.

EKT 120/4 Computer Programming KOLEJ UNIVERSITI KEJURUTERAAN UTARA MALAYSIA

ITC213: STRUCTURED PROGRAMMING. Bhaskar Shrestha National College of Computer Studies Tribhuvan University

Spring 2003 Instructor: Dr. Shahadat Hossain. Administrative Matters Course Information Introduction to Programming Techniques

CSc 10200! Introduction to Computing. Lecture 1 Edgardo Molina Fall 2013 City College of New York

Design & Implementation Overview

JAIPUR NATIONAL UNIVERSITY, JAIPUR

2.1 Why did C need a ++?

VB.NET. Exercise 1: Creating Your First Application in Visual Basic.NET

1) Which of the following is an example of a programming language? 1) A) Microsoft Word B) English C) HTML D) Java

Introduction to Computers, the Internet and the World Wide Web

Administration Computers Software Algorithms Programming Languages

Chapter 2 FEATURES AND FACILITIES. SYS-ED/ Computer Education Techniques, Inc.

Evolution of Fortran. Presented by: Tauqeer Ahmad. Seminar on Languages for Scientific Computing

Chapter 1. Preliminaries

C++ Spring Break Packet 11 The Java Programming Language

Chapter 1 Introduction to Computers, Programs, and Java

Getting Started. Chapter 1. Java Programming FROM THE BEGINNING. Chapter 1: Getting Started

Java Language. Programs. Computer programs, known as software, are instructions to the computer. You tell a computer what to do through programs.

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING REWRAP TEST I CS6301 PROGRAMMING DATA STRUCTURES II

Introduction to Programming

Chapter 1 Preliminaries

Transcription:

Structured Languages Rahul Deodhar

You already know Basics of computer Database FoxPro / Oracle DBMS / RDBMS OperaCng System DOS / Novel/Unix ApplicaCons (Spreadsheets / Word processor) Basics of programming languages C, Compiler/Interpreter

Syllabus Basics Basic data types Arrays FuncCons Pointers & References Structures Constructor Destructor Operator Overloading OOPS basics Why OOPs? Advantages OOPs advanced Classes & Objects Inheritance Polymorphism Public and private FuncCons Data variables Container classes Virtual funccons

Syllabus Java Basics Why Java Advantages PlaSorm independence Language basics Java ApplicaCon string & string buffer Input / Output Syntax Data types FuncCons Java ExcepCon handling MulC- threading sessions Java.net (Networking and Security Networking with URLs) Database access JDBC and Sql. JFC swing Java 20 drag and drop

Choice!

Types of Programming languages

Machine Language Strings of numbers giving machine specific instruccons Example: +1300042774 +1400593419 +1200274027

Assembly Language English- like abbreviacons represencng elementary computer operacons (translated via assemblers) Example: LOAD BASEPAY ADD OVERPAY STORE GROSSPAY

High Level Language Codes similar to everyday English Use mathemaccal notacons (translated via compilers) Example: grosspay = basepay + overtimepay

Structured Programming

11 Structured Programming Structured programming (1960s) Disciplined approach to wricng programs Clear, easy to test and debug, and easy to modify Pascal 1971: Niklaus Wirth Ada 1970s - early 1980s: US Department of Defense (DoD) MulCtasking Programmer can specify many accvices to run in parallel C

QuesCons?

Some High Level Languages Brief IntroducCon

14 Some High- level Languages FORTRAN FORmula TRANslator 1954-1957: IBM Complex mathemaccal computacons ScienCfic and engineering applicacons COBOL COmmon Business Oriented Language 1959: computer manufacturers, government and industrial computer users Precise and efficient manipulacon of large amounts of data Commercial applicacons Pascal Prof. Niklaus Wirth Academic use

15 History of C C Evolved by Ritchie Used to develop UNIX Used to write modern operacng systems Hardware independent (portable) By late 1970's C had evolved to "TradiConal C" StandardizaCon Many slight variacons of C existed, and were incompacble Commimee formed to create a "unambiguous, machine- independent" definicon Standard created in 1989, updated in 1999

The C Standard Library C programs consist of pieces/modules called funccons 16 A programmer can create his own funccons Advantage: the programmer knows exactly how it works Disadvantage: Cme consuming Programmers will onen use the C library funccons Use these as building blocks Avoid re- invencng the wheel If a premade funccon exists, generally best to use it rather than write your own Library funccons carefully wrimen, efficient, and portable

17 Object Technology Reusable sonware components that model items in the real world Meaningful sonware units Date objects, Cme objects, paycheck objects, invoice objects, audio objects, video objects, file objects, record objects, etc. Any noun can be represented as an object Very reusable More understandable, bemer organized, and easier to maintain than procedural programming Favor modularity

18 C++ Superset of C developed by Bjarne Stroustrup at Bell Labs "Spruces up" C, and provides object- oriented capabilices Object- oriented design very powerful 10 to 100 fold increase in produccvity Dominant language in industry and academia Because C++ includes C, some feel it is best to master C, then learn C++

19 Java Java is used to Create Web pages with dynamic and interaccve content Develop large- scale enterprise applicacons Enhance the funcconality of Web servers Provide applicacons for consumer devices (such as cell phones, pagers and personal digital assistants)

20 Visual Basic BASIC Beginner s All- Purpose Symbolic InstrucCon Code Mid- 1960s: Prof. John Kemeny and Thomas Kurtz (Dartmouth College) Visual Basic 1991 Result of Microson Windows graphical user interface (GUI) Developed late 1980s, early 1990s Powerful features GUI, event handling, access to Win32 API, object- oriented programming, error handling Visual Basic.NET

21 Visual C++ Visual C++ Microson s implementacon of C++ Includes extensions Microson FoundaCon Classes (MFC) Common library GUI, graphics, networking, mulcthreading, Shared among Visual Basic, Visual C++, C#.NET plasorm Web- based applicacons Distributed to great variety of devices Cell phones, desktop computers ApplicaCons in disparate languages can communicate

22 C# C# Pronounced C- Sharp Anders Hejlsberg and Scom Wiltamuth (Microson) Designed specifically for.net plasorm Roots in C, C++ and Java Easy migracon to.net Event- driven, fully object- oriented, visual programming language Integrated Development Environment (IDE) Create, run, test and debug C# programs Rapid ApplicaCon Development (RAD) Language interoperability

Basics of Programming Languages

Basics of programming language Data types Syntax OperaCons Special characters definicons Calls References arguments Input / Output FuncCons and Loops ExcepCon handling

Basics of Program

How program works Input OperaCons AssumpCons or standard variables Algorithm Output Nature of output Name of variable Data- type Output format

Program basics Headers DefiniCons Inputs FuncCons etc. Outputs Other elements Comments (line comment / block comment)

Program Pre- work Define objeccves Inputs Outputs Algorithm Write program Compile and debug Executable program

A typical program working

Basic C++ Program 1 // A basic C++ program 2 // This is a line comment 3 #include <iostream> // Preprocessor DirecCve 4 5 // funccon main begins program execucon 6 int main() 7 { 8 std::cout << "Welcome to C++!\n"; 9 10 return 0; // indicate that program ended successfully 11 12 } // end funccon main Welcome to C++!

Typical program working 1. Edit Editor Disk Program is created in the editor and stored on disk. 2. Preprocess 3. Compile 4. Link 5. Load 6. Execute Preprocessor Compiler Linker Loader Disk CPU Disk Disk Disk Primary Memory Primary Memory Preprocessor program processes the code. Compiler creates object code and stores it on disk. Linker links the object code with the libraries Loader puts program in memory. CPUtakes each instruccon and executes it, possibly storing new data values as the program executes.