Windows Programming, C.-S. Shieh, KUAS EC, 20051 Chapter 0 Overview.

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

CS0004: Introduction to Programming Introduction to Programming.
Computer Concepts 5th Edition Parsons/Oja Page 546 CHAPTER 11 Software Engineering Section A PARSONS/OJA Computer Programming.
Computers: Tools for an Information Age
Objectives Machine language vs.. High-level language Procedure-oriented, object-oriented, and event- driven languages Background of Visual Basic VB Integrated.
Programming Concepts and Languages Chapter 12 – Computers: Understanding Technology, 3 rd edition 1November
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
Computer Software.
1 CS101 Introduction to Computing Lecture 19 Programming Languages.
Programming Paradigms Imperative programming Functional programming Logic programming Event-driven programming Object-oriented programming A programming.
Your Interactive Guide to the Digital World Discovering Computers 2012.
© Paradigm Publishing Inc Chapter 12 Programming Concepts and Languages.
Programming Languages Lecture 12. What is Programming?  The process of telling the computer what to do  Also known as coding.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Computers Are Your Future Tenth Edition Chapter 11: Programming Languages & Program Development Copyright © 2009 Pearson Education, Inc. Publishing as.
A First Program Using C#
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta.
1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA.
Introduction to Computer Programming itc-314
CSCI 3327 Visual Basic Chapter 1: Introduction to Visual Basic
CS130 Introduction to Programming with VB 6.0 Fall 2001.
 2005 Pearson Education, Inc. All rights reserved. 1 Introduction & The Java Virtual Machine Small Java Chapter 1 1.
 2002 Prentice Hall. All rights reserved. 1 Introduction to Visual Basic.NET,.NET Framework and Visual Studio.NET Outline 1.7Introduction to Visual Basic.NET.
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.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 2 INTRODUCTION TO SOFTWARE DEVELOPMENT: PROGRAMMING & LANGUAGES.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Chapter 1- Visual Basic Schneider1 Chapter 1 An Introduction to Computers and Visual Basic.
CS101 Introduction to Computing Lecture Programming Languages.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
Computer Concepts 2014 Chapter 12 Computer Programming.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
Visual C++ Programming: Concepts and Projects
Chapter 3: Computer Software. Stored Program Concept v The concept of preparing a precise list of exactly what the computer is to do (this list is called.
Copyright © 2007 Addison-Wesley. All rights reserved.1-1 Reasons for Studying Concepts of Programming Languages Increased ability to express ideas Improved.
Discovering Computers 2009 Chapter 13 Programming Languages and Program Development.
Computer Programs and Programming Languages What are low-level languages and high-level languages? High-level language Low-level language Machine-dependent.
Chapter 0 Overview. Why you are here? Where will you go? What is this course for?
Lection №5 Modern integrated development environment.
The Programming Process Define the problem* Make or buy software? Design the program * Code (write) the program Test (debug) the program Document the.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 4 Computer Software.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
PROGRAMMING LANGUAGES
10/8: Software What is software? –Types of software System software: Operating systems Applications Creating software –Evolution of software development.
Software Development Programming & Languages. Programming: A Five-Step Procedure Define the problem Design a solution Code the program Test the program.
Chapter 4 Software. Chapter 4: Software Generations of Languages Each computer is wired to perform certain operations in response to an instruction. An.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
Overview.ppt Overview-An Overview of Visual Basic.NET An Overview of Visual Basic.NET.
Programming Languages
Windows Programming, C.-S. Shieh, KUAS EC, Chapter 2 Application Design Flow.
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta.
DEPARTMENT OF COMPUTER SCIENCE Introduction to Visual Basic BCA 3 RD YR PRESENTED BY HASHIR UN NABI Dated:01/07/
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 1 An Introduction to Visual Basic.NET and Program Design.
Software Engineering Algorithms, Compilers, & Lifecycle.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 13 Computer Programs and Programming Languages.
Chapter 1 Introduction to Visual Basic
Introduction to Visual Basic. NET,. NET Framework and Visual Studio
Chapter 1 – Introduction to Computers, the Internet, and the Web
Sections Basic Concepts of Programming
Programming Concepts and Languages
Chapter 4 Computer Software.
An Introduction to Visual Basic .NET and Program Design
Developing Applications
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
The Programming Process
and Program Development
Presentation transcript:

Windows Programming, C.-S. Shieh, KUAS EC, Chapter 0 Overview

Windows Programming, C.-S. Shieh, KUAS EC, Computer Programming What is programming? –Computers are quick, reliable, and flexible. –The flexibility of computers is a result of the idea "stored-program control". –We instruct computer to perform tasks via programming - the writing of computer control programs. –Windows programming is the writing of computer programs running within Windows environments.

Windows Programming, C.-S. Shieh, KUAS EC, Computer Programming (cont) Programming paradigms –Hardwired control, in contrast to flexible stored- program control –Machine code –Assembly language –High-level language –Macro of packages, extensions to designed functionality to fit customer's need –Script of operating systems, such as batch files, shell script,... –Script of virtual machines, such as Netscape Navigator and Microsoft Internet Explorer are virtual machine for JavaScript.

Windows Programming, C.-S. Shieh, KUAS EC, Computer Programming (cont) Language translators –Assembler –Compiler –Interpreter –Virtual machines

Windows Programming, C.-S. Shieh, KUAS EC, Computer Programming (cont) High-level programming languages –Procedural FOrmula TRANslator (FORTRAN) Beginner's All-purpose Symbolic Instruction Code (BASIC) COmmon Business Oriented Language (COBOL) Pascal C –Functional PROgramming in LOGic (PROLOG) –Object-oriented Object Pascal C++ –…

Windows Programming, C.-S. Shieh, KUAS EC, Object-Oriented Programming Encapsulation of data and related operators class rectangular { public: int width; int height; int area() { return width*height; } }; int main() { rectangular x; x.width=5; x.height=6; printf("%d",x.area()); }

Windows Programming, C.-S. Shieh, KUAS EC, Object-Oriented Programming (cont) Inheritance class rectangular { public: int width; int height; int area() { return width*height; } }; class block: public rectangular { public: int depth; int volume() { return width*height*depth; } }; int main(int argc, char **argv) { block x; x.width=5; x.height=6; x.depth=2; printf("%d",x.volume()); }

Windows Programming, C.-S. Shieh, KUAS EC, Windows Programming Why Windows? –PCs make computers more affordable. –Graphic User Interface (GUI) of Windows make computers more user-friendly.

Windows Programming, C.-S. Shieh, KUAS EC, Windows Programming (cont) Paradigms for Windows programming –Windows Application Programming Interface ( ~ machine code) A huge collection of C functions for drawing graphic user interfaces and tracking Windows messages. –Application Framework ( ~ assembly language) Hierarchical class library and hidden message-handling mechanism to reduce the burden of programmers. Microsoft's Microsoft Foundation Class (MFC) Borland's Object Windows Library (OWL) –Rapid Application Development (RAD) / Visual Programming ( ~ high-level language) Visual components greatly simply the GUI deign. Adopt the concept of software IC. Microsoft's Visual BASIC in BASIC Borland's Delphi in Object Pascal Borland's C++ Builder in C++

Windows Programming, C.-S. Shieh, KUAS EC, Windows Programming (cont) Program execution from programmer's viewpoint –DOS programs are procedural with console I/O: Program starts execution with main(), functions (procedures) are called in turn at the will of programmers. –Windows programs are event-driven with GUI: Graphic user interface is presented, and then functions are called in response to user's action.

Windows Programming, C.-S. Shieh, KUAS EC, Windows Programming (cont) Program design from programmer's viewpoint –DOS programming declare required variables implement procedural algorithms –Windows programming graphic user interface design choose visual components set up their prosperities implement event handlers

Windows Programming, C.-S. Shieh, KUAS EC, Borland C++ Builder Borland Software Corporation at GUI design is greatly simplified with visual drag-and-drop of components. An excellent implementation of the idea of software IC. Each software component has –Properties: can be set at design time or modified by code at run time to change its behavior or appearance. –Methods: callable functions for performing certain functions –Responsive events: where we implement our algorithms Intensive on-line will help you to get acquainted with those components. Wide variety of third-party components are available from third party, even free on the Internet.