Visual Programming by Muhammad Bilal Zafar (AP).

Slides:



Advertisements
Similar presentations
Programming In C++ Spring Semester 2013 Programming In C++, Lecture 1
Advertisements

Compiler Construction by Muhammad Bilal Zafar (AP)
Classes & Objects Computer Science I Last updated 9/30/10.
INTRODUCTION T.Najah Al_Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System CS240.
Programming Creating programs that run on your PC
COSC 120 Computer Programming
Three types of computer languages
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Computers: Tools for an Information Age
Aalborg Media Lab 21-Jun-15 Software Design Lecture 1 “ Introduction to Java and OOP”
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
1 Introduction to C++ Programming Concept Basic C++ C++ Extension from C.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
C++ fundamentals.
OBJECT ORIENTED PROGRAMMING IN C++ LECTURE
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#1) By Dr. Syed Noman.
Introduction To C++ Programming 1.0 Basic C++ Program Structure 2.0 Program Control 3.0 Array And Structures 4.0 Function 5.0 Pointer 6.0 Secure Programming.
CHAPTER 1: INTORDUCTION TO C LANGUAGE
Java Course Outline Kumar Harshit, USW. Course Description Teaches students to program using the Java programming language with the help of the Netbeans.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
COMPUTER PROGRAMMING. Introduction to C++ History Merges notions from Smalltalk and notions from C The class concept was borrowed from Simular67 Developed.
CH1 – A 1 st Program Using C#. Program Set of instructions which tell a computer what to do. Machine Language Basic language computers use to control.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Programming In C++ Spring Semester 2013 Programming In C++, Lecture 1.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
COMPUTER SCIENCE I C++ INTRODUCTION
Introduction 01_intro.ppt
1 Chapter One A First Program Using C#. 2 Objectives Learn about programming tasks Learn object-oriented programming concepts Learn about the C# programming.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Programming Languages – Coding schemes used to write both systems and application software A programming language is an abstraction mechanism. It enables.
A First Program Using C#
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Object Oriented Programming CEN 221. Course Description Classes, objects, inheritance, polymorphism, graphical user interfaces, event handling, exception.
High-Level Programming Languages: C++
Microsoft Visual Basic 2005: Reloaded Second Edition
1Object-Oriented Program Development Using C++ Computer Science and Programming Languages Computers are ubiquitous Computer literacy is essential Computer.
GENERAL CONCEPTS OF OOPS INTRODUCTION With rapidly changing world and highly competitive and versatile nature of industry, the operations are becoming.
Welcome to OBJECT ORIENTED PROGRAMMIN Date: 10/09/2014 Prepared By Prepared By : VINAY ALEXANDER PGT(CS) KV jhagrakhand.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Chapter 1: A First Program Using C#. Programming Computer program – A set of instructions that tells a computer what to do – Also called software Software.
Instructor: Tina Tian. About me Office: RLC 203A Office Hours: Wednesday 1:30 - 4:30 PM or .
CSC1201: Programming Language 2 Lecture 1 Level 2 Course Nouf Aljaffan Snd Term Nouf Aljaffan (C) CSC 1201 Course at KSU1.
Lecture 1 Introduction Figures from Lewis, “C# Software Solutions”, Addison Wesley Richard Gesick.
Programming Fundamentals. Today’s Lecture Why do we need Object Oriented Language C++ and C Basics of a typical C++ Environment Basic Program Construction.
Prepared by: Elsy Torres Shajida Berry Siobhan Westby.
C++ Programming Basic Learning Prepared By The Smartpath Information systems
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Lecture1 Instructor: Amal Hussain ALshardy. Introduce students to the basics of writing software programs including variables, types, arrays, control.
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
INTRODUCTION TO COMPUTER PROGRAMMING(IT-303) Basics.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Welcome to OBJECT ORIENTED PROGRAMMING Prepared By Prepared By : VINAY ALEXANDER PGT(CS) KV jhagrakhand.
Chapter 1: Introduction to Computers and Programming.
Software Engineering Algorithms, Compilers, & Lifecycle.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING
Lecture 1 Introduction Richard Gesick.
PROGRAMMING LANGUAGES
About the Presentations
Computer science By/ Midhat Mohiey. Introduction to Programming using C ++ 2.
Computer Programming.
Procedural Programming
Presentation transcript:

Visual Programming by Muhammad Bilal Zafar (AP)

Visual Programming  Programming in which more than one dimensions is used to convey semantics.  Diagrams, icons or demonstration of actions performed by graphical objects.  It is a methodology in which development allows programmers to grab and use of ingredients like menus, buttons, controls and other graphic elements from a tool box. 3

Course Description  Introduces key skills of problem solving and visual computer programming, including the elementary programming concepts.  Covers the fundamentals & details of following  Visual language  Iconic and symbolic representations  Debugging techniques  Semantics and pragmatics of desktop applications  Web programming 4

Course Description..  Flow of course would be like this  Fundamentals of OOP.  Console based applications using Visual C++.  CLR based programming using Visual C++.  Desktop based applications using MFC and CLR. and in the last part we will see  Visual ASP.NET for web based applications. 5

 On completion of this course students will have the ability to comprehend  Concepts of OOP .NET Framework  Visual C++  ASP.net & C# Course Objectives 6

 Comprehend a programming problem and design a solution.  Code a solution to a problem for both desktop and web based applications using visual tools. Course Objectives.. 7

Recommended Books  IVOR HORTON’S BEGINNING VISUAL C , by Ivor Horton  ASP.NET 4 24-HOUR TRAINER by Toe.B Right 8

Reference Books / Readings  OBJECT-ORIENTED PROGRAMMING IN C++, 4 th Edition by Robert Lefore  BEGINNING ASP.NET 4: IN C# AND VB by Imar Spaanjaars  For Online Library help  9

Course Prerequisites  The student is expected to somehow familiar with the programming languages and operating systems concepts. 10

Assessment & Grading Exam NoExam Type Due after Lecture No. Total Marks 1Quiz 1 55% 2Quiz 2 225% 3Assignment % 4Assignment % 5Midterm Exam 1820% 6Final Exam 3250% Marks scheme:  Quizzes + assignments = 30%  Mid Term Exam = 20%  Final = 50% 11

Programming Languages  Programming language is an artificial language designed to communicate instructions to a machine, particularly a computer.  It can be used to create instruction sets (programs) that can control the behavior of a machine. 13

Programming Languages..  Mainly PL has comprised of two components  Syntax  Semantic 14

Syntax  Set of rules that defines the combinations of symbols that are considered to be correctly structured in that language.  Computer language syntax is generally distinguished into three levels:  Words  Phrases  Context 15

Semantics  Semantics is the field concerned with the rigorous mathematical study of the meaning of programming languages.  It does so by evaluating the meaning of syntactically legal strings defined by a specific programming language.  Semantics describes the processes a computer follows when executing a program in programming language. 16

Programming Languages  Generally we can divide the programming languages into two main categories.  High Level Languages  Low Level Languages 17

Types of Languages..  High Level Languages  A language that supports system development at a high level of Abstraction thereby freeing the developer from keeping lots of details that are irrelevant to the problem at hand.  Close to human language  Easy to write  Pascal, Fotran, C++, Java, Visual basic, PHP, PERL … etc…  i.e printf (“Hello World”); 18

Types of Languages..  Low Level Languages  Low-level languages are designed to operate and handle the entire hardware and instructions set architecture of a computer directly.  A programming language that provides little or no abstraction from a computer's instruction set architecture.  Generally this refers to either Assembly language or Machine language. 19

Types of Languages...  Assembly Language  An assembly language is a low-level programming language, in which there is a very strong correspondence between the language and the architecture’s machine code instructions.  Each assembly language is specific to a particular computer architecture  Use Symbolic operation code MOVE 3000,4000 // Copy contents of location 3000 to location

Types of Languages...  Machine Language  Fundamental language of the computer processor  All programs are converted into machine language before they executed  Consists of combination of 1’s and 0’s that represent high and low electrical voltage 21

Programming Types  Programming can be done in different ways but in high level languages there are two major approaches.  Structured Programming  Object Oriented Programming 22

Structured Programming  Structured programming is a subset of procedural programming that enforces a logical structure on the program being written to make it more efficient and easier to understand and modify.  It is a technique that follows a top down design approach with block oriented structures.  Also known as Modular Programming. 23

Object Oriented Programming  Object-oriented programming (OOP) is a programming language model organized around  Objects rather than actions &  Data rather than logic language syntax  Objects are usually instances of classes & are used to interact with one another to design applications and computer programs. 24

Object Oriented Programming..  OOP organizes program around a real-world entity called an object (Instance).  Classes  A class is a construct that is used to define a distinct type  Attributes  Methods 25

OOP..  Main characteristics of OOP  Encapsulation  A language mechanism for restricting access to some of the object's components  A language construct that facilitates the bundling of data with the methods (or other functions) operating on that data. 26

OOP..  Inheritance  Inheritance is a way to establish a relationship between objects of the classes.  Polymorphism  It is the ability to create a variable, a function, or an object that has more than one form. 27

C++  Developed by Bjarne Stroustrup starting in 1979 at Bell Labs.  C++ was originally named C with Classes.  The language was renamed C++ in  It is an intermediate-level language, as it comprises both high-level and low-level features.  C++ is an Object Oriented Programming Language.  However, It is possible to write object oriented or procedural code in the same program in C++. 28

C++..  C++ application domain includes following areas  Systems Software  Applications Software  Device Drivers  Embedded Software  High-performance server and client applications  Video Games 29

C++ Syntax  C++ Programs built from pieces called classes and functions  C++ standard library provides rich collections of existing classes and functions for all programmers to use.  Basic Syntax  Lets see an example program 30

C++ Program #include using namespace std; // Comments goes here…. int main() { cout << "Hello World"; // prints Hello World return 0; } 31

Program Description #include  The C++ language defines several headers, which contain information that is either necessary or useful to your program. using namespace std;  It tells the compiler to use the std namespace.  Namespaces allow to group entities like classes, objects and functions under a name. 32

Program Description.. // Comments goes here….  It is a single-line comment available in C++. Single-line comments begin with // and stop at the end of the line int main()  This is the line where program execution begins.  Main function with a return type integer. 33

Program Description... cout << "Hello World"; // prints Hello World  It causes the message “Hello World" to be displayed on the screen.  And its second part after // is a comment. return 0;  This line terminates main( )function and causes it to return the value 0 to the calling process. 34

C++ Keywords  Some keywords are:  if  else  for  switch  int  float  char  main  class  auto  bool  break  case  default  return CASE SENSITIVE LANGUAGE 35

Execution Phases 36

Where to Write the Code ????

Code Editors  Code can be written in any word processor that can create text files.  Can also be written on command line.  Some code editors are  Notepad  Edit pad lite  Text wrangler (For Mac machines only)  Jedit  Vim  Dream Weaver  Net Beans  IDE ???? 38

Thank You 39