Chapt. 10. What’s a Program? A set of instructions -- that lead to the accomplishment of an objective.

Slides:



Advertisements
Similar presentations
Designing a Program & the Java Programming Language
Advertisements

Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
LECTURE 1 CMSC 201. Overview Goal: Problem solving and algorithm development. Learn to program in Python. Algorithm - a set of unambiguous and ordered.
Professor Michael J. Losacco CIS 1150 – Introduction to Computer Information Systems Programming and Languages Chapter 13.
Software. What Is Software? software –Also called Computer programs –Are a list of instructions –Instructions are called code –CPU performs the instructions.
Chapter 13 Programming Languages and Program Development
Chapter 2- Visual Basic Schneider
COSC 120 Computer Programming
CIS105 Chapter 1 Theory Review. Page 2 Hardware and Software are the two major components o any computer system Hardware is the set of physical devices.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 13 Computer Programs and Programming Languages.
Discovering Computers 2008 Chapter 13 Programming Languages and Program Development.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
1414 CHAPTER PROGRAMMING AND LANGUAGES. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved Competencies Describe the six steps of programming.
An Overview of Computers and Programming
Computer Programming How Can You Create Your Own Software? Chapter 13.
Programming Concepts and Languages Chapter 12 – Computers: Understanding Technology, 3 rd edition 1November
Assembler Compiler Interpreter ASSEMBLER To convert the assembly language into machine code. Translate mnemonic operation codes to their machine language.
CSE 1301 J Lecture 2 Intro to Java Programming Richard Gesick.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Building Applications.
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.
Chapter 13 Programming Languages and Program Development.
Chapter 13 Programming Languages and Program Development 1.
Discovering Computers 2009 CSC 1100 Computer Literacy Dr. Carlos E. Otero Introduction to Computer Programming.
Introduction to Programming Lecture Number:. What is Programming Programming is to instruct the computer on what it has to do in a language that the computer.
Understanding Computers Ch. 131 Chapter 13 Program Development and Programming Languages.
CIS Computer Programming Logic
Alexandria University Faculty of Science Computer Science Department Introduction to Programming (CS 102) C++ Programminhg.
CSCI 115 Computer Programming Overview. Computer Software System Software –Operating systems –Utility programs –Language compilers Application Software.
Programming Languages 1.07a.  A computer program is a series of instructions that direct a computer to perform a certain task.  A programming language.
PROGRAMMING LANGUAGES Prof. Lani Cantonjos. PROGRAM - set of step-by-step instructions that tells or directs the computer what to do. PROGRAMMING LANGUAGE.
Chapter 15 Program Development and Programming Languages.
Programming Concept Chapter I Introduction to Java Programming.
CSCI 3133 Programming with C Instructor: Bindra Shrestha University of Houston – Clear Lake.
1 Chapter 13 Understanding Computers, 11 th Edition 13 Program Development and Programming Languages TODAY AND TOMORROW 11 th Edition CHAPTER.
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.
Lecture 1 Introduction Figures from Lewis, “C# Software Solutions”, Addison Wesley Richard Gesick.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
1 © 2002 John Urrutia. All rights reserved. Qbasic Constructing Qbasic Programs.
Chapter 13 Programming Languages and Program Development.
1 Chapter 13 Programming Languages and Program Development Tools.
Programming and Languages
5.0 PROGRAMMING Duration: 10 weeks Prepared by Ong Lay Peng Copyright © 2007.
Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.
CSCI 115 Computer Programming Overview. Computer Software System Software –Operating systems –Utility programs –Language compilers Application Software.
Alexandria University Faculty of Science Computer Science Department Introduction to Programming C++
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Software Engineering Algorithms, Compilers, & Lifecycle.
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 13 Computer Programs and Programming Languages.
CHAPTER ELEVEN Information System Development and Programming Languages Copyright © Cengage Learning. All rights reserved.
Chapter 13 Programming Languages and Program Development
IS220 Computer Programming
CMIT100 Chapter 14 - Programming.
Computer Programming.
Programming Concepts and Languages
Chapter 13 Programming Languages and Program Development
Objectives Overview Differentiate between machine and assembly languages Identify and discuss the purpose of procedural programming languages, and describe.
Developing Applications
Assembler, Compiler, Interpreter
Chapter 1: Introduction to Computers and Programming
Chapter 12 Programming Concepts and Languages.
Chapter 2- Visual Basic Schneider
Assembler, Compiler, Interpreter
and Program Development
Programming Logic and Design Eighth Edition
Presentation transcript:

Chapt. 10

What’s a Program? A set of instructions -- that lead to the accomplishment of an objective.

Compilers and Interpreters Compiler Converts entire program into object code prior to Execution. Interpreter Converts small program units (lines of code) into object code then executes them individually

Language Categories Low-Level Machine Assembly Problems?

Procedural Languages (3GL) English-like Instructions FORTRAN COBOL C BASIC

Object-Oriented Programming (OOP) Languages C++ #include "stdafx.h" #include using namespace std; int main( ) { cout << "Hello World“<<endl; return 0; } Java public class TextDemo { public static void main(String[] args) { System.out.println("Hello, Welcome to Java programming") } } OR import javax.swing.JOptionPane; //for the GUI definitions public class WelcomeMessageDialogBox { public static void main(String[] args) { JOptionPane.showMessageDialog(null, "Hello, Welcome to Java programming","GUI Programming Sample", JOptionPane.INFORMATION_MESSAGE); } }

Integrated Development Environments Rapid Application Development (RAD) Visual Studio Microsoft Delphi Borland PowerBuilder Sybase

Specialty Languages RPG – Report Generator RPG Logo – Graphics and audio Logo Macros – Recorder or VBA

Web Development Applets and Script HTML (DHTML, XMX, etc.) Java script, Perl, PHP, etc. Servlet -

Program Development Cycle 1. Analysis – “can we get there from here?” (feasibility study) 2. Design – “how do we get there from here?” Structured design vs. object design IPO Hierarchy charts Flowcharts and pseudocode

Program Design Tools Hierarchy Charts – module development and process organization Control structure – control the task sequence Sequential – Selection – if – else – binary selection case – multiple option selection

Program Design Tools (cont’d) Repetition Control do – while – the condition is before the action do – until - the condition is after the action Flow chart – symbols represent actions Rectangle – a general process Parallelogram – input and output Diamond - decision Arrows – data or process flow Oval – terminal – the end (beginning) of a program sequence Sample flowchart

Development Cycle (contd.) 3. Validate – “are you sure that is the best way to go?” Desk Check 4. Implement – “take the trip.” Create the code

Development Cycle (contd.) 5. Test and Validate – “are we there yet?” Check results against known values Parallel processing 6. Document – “take the pictures and write the post cards!!” Internal documentation External documentation

Summary Program Compiler vs. Interpreter Programming Languages Low-level Procedural OOP Web development Special use

Summary (part dux) Program Development Cycle Analysis Design Validate Implement Test and Validate Document