Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,

Slides:



Advertisements
Similar presentations
GCSE Computing Lesson 5.
Advertisements

CHAPTER 2 GC101 Program’s algorithm 1. COMMUNICATING WITH A COMPUTER  Programming languages bridge the gap between human thought processes and computer.
CS 111: Introduction to Programming Midterm Exam NAME _________________ UIN __________________ 10/30/08 1.Who is our hero? 2.Why is this person our hero?
Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315.
Computers Are Your Future
Creating Computer Programs lesson 27. This lesson includes the following sections: What is a Computer Program? How Programs Solve Problems Two Approaches:
Software. What Is Software? software –Also called Computer programs –Are a list of instructions –Instructions are called code –CPU performs the instructions.
Programming System development life cycle Life cycle of a program
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Chapter 10 Application Development. Chapter Goals Describe the application development process and the role of methodologies, models and tools Compare.
1414 CHAPTER PROGRAMMING AND LANGUAGES. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved Competencies Describe the six steps of programming.
Chapter 3 Planning Your Solution
Programming Concepts and Languages Chapter 12 – Computers: Understanding Technology, 3 rd edition 1November
Copyright © 2001 by Wiley. All rights reserved. Chapter 1: Introduction to Programming and Visual Basic Computer Operations What is Programming? OOED Programming.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Building Applications.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Programming Languages: Telling the Computers What to Do Chapter 16.
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.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
Learning Objectives Data and Information Six Basic Operations Computer Operations Programs and Programming What is Programming? Types of Languages Levels.
CSC141 Introduction to Computer Programming
Higher Grade Computing Studies 2. Languages and Environments Higher Computing Software Development S. McCrossan 1 Classification of Languages 1. Procedural.
COMPUTER PROGRAMS AND LANGUAGES Chapter 4. Developing a computer program Programs are a set (series) of instructions Programmers determine The instructions.
Technology in Action Alan Evans Kendall Martin Mary Anne Poatsy Twelfth Edition.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 6 Value- Returning Functions and Modules.
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
Designing and Debugging Batch and Interactive COBOL Programs Chapter 5.
Invitation to Computer Science 5 th Edition Chapter 6 An Introduction to System Software and Virtual Machine s.
Overview of Programming and Problem Solving Textbook Chapter 1 1.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 4 Computer Software.
Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.
Programming and Languages Dept. of Computer and Information Science IUPUI.
Problem-solving with Computers. 2Outline  Computer System  5 Steps for producing a computer program  Structured program and programming  3 types of.
Introduction to Computers Lesson 13A. home Computer Program A set of instructions or statements, also called code, to be carried out by the computer’s.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Software Engineering Algorithms, Compilers, & Lifecycle.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
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.
CIS 365: Visual Application Development Introduction to Computers and Programming.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
Computer Basics.
Topic 2: Hardware and Software
Programming Languages
CSCI-235 Micro-Computer Applications
Computer Programming.
Key Ideas from day 1 slides
Topics Introduction to Repetition Structures
Programming Concepts and Languages
An Introduction to Visual Basic .NET and Program Design
Instructor: Zhe He Department of Computer Science
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Chapter 1 Introduction(1.1)
Topics Introduction to Value-returning Functions: Generating Random Numbers Writing Your Own Value-Returning Functions The math Module Storing Functions.
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Creating Computer Programs
ICT Gaming Lesson 2.
Creating Computer Programs
WJEC GCSE Computer Science
Programming Logic and Design Eighth Edition
Presentation transcript:

Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.

McGraw-Hill Technology Education Chapter 13A Creating Computer Programs

13A-3 What Is a Computer Program? Computer programs –Also called software –Are a list of instructions –Instructions are called code –CPU performs the instructions –Three types Operating system Utility Application

13A-4 Software Is Stored In Many Files Executable files –Contain the instructions for the CPU –Have extensions of.exe, or.com

13A-5 Software Is Stored In Many Files Dynamic link libraries –Partial executable file –Used to support executable files –Have.dll extensions

13A-6 Software Is Stored In Many Files Initialization files –Contain configuration settings for software –Have a.ini extension –Modern programs use the registry

13A-7 Software Is Stored In Many Files Help files –Contain information about the software –Information is indexed and searchable –Provides an online manual –Have a.chm or.hlp extension

13A-8 Software Is Stored In Many Files Batch files –Used to automate tasks –Hold a series of OS commands –Have a.bat extension

13A-9 Hardware/Software Interaction Program execution –Software executes at the CPU level –Code to play a sound Code generates an interrupt CPU tells the sound card to play Sound card plays the file –Programmer creates the code

13A-10 Hardware/Software Interaction Code –Statements written in a programming language –Writing code can be tedious Code must be perfect Order of steps must be exact –Writing code is quite exciting Problems are solved New ideas are formed

13A-11 Writing Code

13A-12 Hardware/Software Interaction Machine code –Recall that computers think in binary –Code is translated into machine code CPU executes the machine code –CPUs have a unique machine code

13A-13 Hardware/Software Interaction Programming languages –Simplifies the writing of code English is used to describe the binary –Original code is called source code –Several hundred languages exist

13A-14 Hardware/Software Interaction Compilers and interpreters –Converts source code into binary Allows code to execute –Checks source code for correctness

13A-15 Hardware/Software Interaction Compiler –Creates an executable file Contents are called object code –Executable can run on its own –Each language has its own compiler –C++ and Java are compiled languages

13A-16 Hardware/Software Interaction Interpreter –Runs program one line at a time –More flexible than compilers –Slower than compilers –Always needed to execute program –Visual Basic and Perl are interpreted

13A-17 Planning a Computer Program Plans –The steps to solve a problem –Describe the expected results –Programming without a plan is difficult

13A-18 Planning Tools Pseudo code –Natural language statements that resemble code –Describes what must be done –Can be written by non programmers –Programmers develop unique versions

13A-19 Planning Tools Input-processing-output (IPO) charts –Determines what is needed –Input column Data inputted by the user –Processing column Pseudo code describing the problem solution –Output column Desired output from the program

13A-20 IPO Chart

13A-21 How Programs Solve Problems Program control flow –Order program statements are executed –Typically executed in order –Constructs can change the flow Decision statements Loops

13A-22 How Programs Solve Problems Algorithm –Set of steps –Always leads to a solution –Steps are always the same –Flowcharts can describe algorithms Structured tool for drawing algorithms –Algorithms appear in all programs

13A-23 Flowchart

13A-24 How Programs Solve Problems Heuristic –Set of steps –Solution is usually found –Solution may not be optimal –Used when algorithms fail Algorithm is nonexistent or too complex –Appear in more complex applications Data mining Anti-virus software

13A-25 Structured Programming Programming using defined structures Creates easy to read code Programs are efficient and run fast Several defined structures

13A-26 Structured Programming Sequence structure –Describes the flow of the program –Typically executed in order –Branching statements allow multiple flows

13A-27 Structured Programming Selection statement –Also called conditional statement –Performs a true or false test –Determines which code to execute next

13A-28 Structured Programming Repetition statements –Also called looping structures –Repeats a section of code Until an exit condition is reached

13A-29 Object Oriented Programming Also known as OOP Enhances structured programming Intuitive method of programming

13A-30 Object Oriented Programming Code reuse –Code used in many projects –Speeds up program development –Simplifies program development

13A-31 Object Oriented Programming Develops objects –All real world items are objects –OOP develops code versions –Contains data about the item –Contains functionality –Object encapsulates both into one package

Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 13A End of Chapter