Programming Creating programs that run on your PC

Slides:



Advertisements
Similar presentations
Program Development and Programming Languages
Advertisements

Computers Are Your Future
Program Development and Programming Languages
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Program Development and Programming Languages
Computer Concepts 5th Edition Parsons/Oja Page 546 CHAPTER 11 Software Engineering Section A PARSONS/OJA Computer Programming.
Computers: Tools for an Information Age
Chapter 16 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.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Program Development and Programming Languages
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
McGraw-Hill Technology Education © 2006 by the McGraw-Hill Companies, Inc. All rights reserved CHAPTER PROGRAMMING AND LANGUAGES.
1414 CHAPTER PROGRAMMING AND LANGUAGES. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved Competencies Describe the six steps of programming.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
SOFTWARE SYSTEMS SOFTWARE APPLICATIONS SOFTWARE PROGRAMMING LANGUAGES.
PRE-PROGRAMMING PHASE
Programming Concepts and Languages Chapter 12 – Computers: Understanding Technology, 3 rd edition 1November
Software Development CS 1 Rick Graziani Spring 2007.
Course: Introduction to Computers
Your Interactive Guide to the Digital World Discovering Computers 2012.
CS102 Introduction to Computer Programming
© Paradigm Publishing Inc Chapter 12 Programming Concepts and Languages.
Introduction to Programming End Show. Resource Team R.P Ranjan-Lecturer, SPICTEC, Galle. W.M.A.S. Wijesekara-Centre manager,CRC Hali-Ela H.P.U.S Indra.
Chapter 13 Programming Languages and Program Development 1.
Program Development and Programming Languages
Computers Are Your Future Tenth Edition Chapter 11: Programming Languages & Program Development Copyright © 2009 Pearson Education, Inc. Publishing as.
Programming Languages – Coding schemes used to write both systems and application software A programming language is an abstraction mechanism. It enables.
Program development & programming languages Chapter 13.
Program Development and Programming Languages
Programming Languages: Telling the Computers What to Do Chapter 16.
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
CC111 Lec#5: Program Development 1 Program Development and Programming Languages Lecture 4 Reference :Understanding Computers Chapter 13.
Understanding Computers Ch. 131 Chapter 13 Program Development and Programming Languages.
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
Alexandria University Faculty of Science Computer Science Department Introduction to Programming (CS 102) C++ Programminhg.
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.
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
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.
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.
CMPE13Cyrus Bazeghi 1 Programming Languages Telling computers what to do.
Computer Concepts 2014 Chapter 12 Computer Programming.
1 Chapter 13 Understanding Computers, 11 th Edition 13 Program Development and Programming Languages TODAY AND TOMORROW 11 th Edition CHAPTER.
The Teacher Computing Computer Languages [Computing]
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.
CSC425 - Introduction To Computer Programming 1. 2 Generation Of Programming Languages A set of rules that telling a computer what to do. There are over.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Programming Languages and the Programming Process.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
Programming and Languages
Computing System Fundamentals 3.1 Language Translators.
Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Introduction  Program: Set of sequence instruction that tell the computer what to do.  Software: A collection of programs, data, and information. 
Alexandria University Faculty of Science Computer Science Department Introduction to Programming C++
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
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.
CSCI-235 Micro-Computer Applications
Course: Introduction to Computers
Program Development and Programming Languages
Programming Languages and Program Development
Presentation transcript:

Programming Creating programs that run on your PC (BTW- groups of programs are called software applications)

Learning Objectives Understand the differences between structured programming, object-oriented programming (OOP), aspect-oriented programming (AOP), and adaptive software development. Identify and describe the activities involved in the program development life cycle (PDLC). Understand what constitutes good program design and list several tools that can be used by computer professionals when designing a program. Understanding Computers: Today and Tomorrow, 14th Edition 2

Learning Objectives Explain the three basic control structures and how they can be used to control program flow during execution. Discuss some of the activities involved with debugging a program and otherwise ensuring it is designed and written properly. List some tools that can be used to speed up or otherwise facilitate the program development process. Describe several programming languages in use today and explain their key features. Understanding Computers: Today and Tomorrow, 14th Edition

Breaking into Program development From SDLC, break into PDLC Analysis What should it do? Design How will it do it? Develop Creation Implement Get rid of the “bugs” Maintain Keeping it running

Programs & Programming Computer program – a sequence of instructions for a computer written to perform a specific task Programming: Process of designing, writing, testing, debugging & maintaining the source code of computer programs Programs need to be designed before they can be developed One thing to remember: Programs use computer memory Space to Run in Space to save pieces of information in for later use (variables)

Programming Languages Programming – writing a computer program Write from scratch in selected language– write reusable code Use Software Development Kit (SDK) Use Application Programming interface (API) Programming language A set of rules, words, symbols, and codes used to write computer programs Programming Tools Flowcharts, business documents, models Categories of programming languages Low-level languages High-Level languages 4GL languages Once written, prepare for execution (running) .exe or .dll Loads in memory Uses memory to save information (variables)

Programming Languages Low Level High Level Difficult to code in; machine dependent Machine language: 1’s and 0’s Assembly language Includes some names and other symbols to replace some of the 1s and 0s in machine language Closer to natural languages Machine independent – run on windows and Mac OS’s Easier to learn Many generations (4), as time passes and hardware gets better Translated to machine language FORTRAN - mathematical, scientific, and engineering applications BASIC family (BASIC, Visual Basic, VB.NET) – games to web services COBOL - business transaction processing C family (C, C++, C#, objective C) – mainframes, web services, iPhones Pascal – for midrange servers – taught STRUCTURE Java - web services, applets – most popular today Python – todays games

Languages (LOW LEVEL – HIGH LEVEL) Programmers write comments in code to explain complicated parts (ignored by computer) Each programming language has its own set of rules to follow Many programming languages to choose from – 3rd gen are quite similar

Fourth Generation Languages Closer to natural languages Easier to work with than high-level Much of the code written is reusable! Mostly used with: Databases Includes structured query language (SQL) DB2, SQL Server, Oracle, Access, Foxpro, Powerbuilder, Natural, FOCUS Apps Software development kits (SDK’s) Web Services Application Program Interfaces(API’s)

PROGRAMMING LANGUAGES

Programmers write out complicated logic visually – in diagrams called flowcharts START Variable to indicate how many numbers we have gotten Variable to save the first number Variable to save the second number RESERVE MEMORY GET A NUMBER SAVE THE NUMBER IN MEMORY TELL MEMORY VARIABLE WE HAVE A NUMBER YES NO Got 2 numbers? ADD THE NUMBERS IN MEMORY DISPLAY SUM Other symbols, like an ellipse or circle, mean other things STOP

Creates .EXE WRITE THE PROGRAM USING CHOSEN LANGUAGE TRANSLATE THE PROGRAM (LANGUAGE COMPILER) INTO MACHINES LANGUAGE Programs can have errors Compiler errors: Program doesn’t run Typically syntax errors: When the programmer has not followed the rules of the programming language Run time error: Error that occurs when the program is running Usually an operation that cannot be completed Logic errors: Program will run but produces incorrect results Creates .EXE EXECUTE (RUN) THE PROGRAM - PROGRAM LOADS IN MEMORY, and USES MEMORY TO SAVE INFO USERS CLICK ON ICON TO RUN “APP” Programs use computer memory -Need “run space” Save pieces of information for later use (variables)

Approaches to Design and Development Procedural Programming Steps to accomplish task are separated into small modules and execute in a certain order or when needed Object-oriented Programs consist of a collection of objects that contain data and methods to be used with that data and are used when needed Aspect oriented Separates functions so program components can be developed and modified individually from one another One program does all the database work, another program presents the web page, etc.. Adaptive Building the program in small steps of functionality Understanding Computers: Today and Tomorrow, 14th Edition