Chapter 6 Testing and running a solution. Errors X Three types Syntax Logic Run-time.

Slides:



Advertisements
Similar presentations
compilers and interpreters
Advertisements

Chapter 15 Debugging. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display Debugging with High Level Languages.
Coding and Debugging. Requirements and Specification Recall the four steps of problem solving: Orient, Plan, Execute, Test Before you start the implementation.
Programming Types of Testing.
Programming Creating programs that run on your PC
COSC 120 Computer Programming
COMP2001 Testing. Aims of Testing To achieve a correct system producing correct results with a variety of input data.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
Program Flow Charting How to tackle the beginning stage a program design.
Chapter 16 Programming and Languages: Telling the Computer What to Do.
ACSC 155 System Analysis and Design 5. Input/Output Design
PRE-PROGRAMMING PHASE
1 Chapter Two Introduction to the Programming Language C.
C++ Crash Course Class 1 What is programming?. What’s this course about? Goal: Be able to design, write and run simple programs in C++ on a UNIX machine.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
Computer Programming and Basic Software Engineering 4. Basic Software Engineering 1 Writing a Good Program 4. Basic Software Engineering.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
Chapter 1 Coding Introduction.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
Structured COBOL Programming, Stern & Stern, 9th edition
Programming Translators.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 62 – Manipulating Data Using Methods – Day 1.
Chapter 1.4 Programming languages Homework Due: Monday, August 11, 2014.
Chapter 3: Completing the Problem- Solving Process and Getting Started with C++ Introduction to Programming with C++ Fourth Edition.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Introduction to Computers and Java Chapter 1.3. A Sip of Java: Outline History of the Java Language Applets A First Java Program Compiling a Java Program.
Programming Lifecycle
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
Visual C++ Programming: Concepts and Projects
Testing and Debugging Version 1.0. All kinds of things can go wrong when you are developing a program. The compiler discovers syntax errors in your code.
Lecture 1 Introduction Figures from Lewis, “C# Software Solutions”, Addison Wesley Richard Gesick.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
CHAPTER 1 INTRODUCTION 1 st Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
Chapter 1 Introduction. Chapter 1 - Introduction 2 The Goal of Chapter 1 Introduce different forms of language translators Give a high level overview.
Compilers: Overview/1 1 Compiler Structures Objective – –what are the main features (structures) in a compiler? , Semester 1,
1 Program Planning and Design Important stages before actual program is written.
Program Development Cycle
How to Program? -- Part 1 Part 1: Problem Solving –Analyze a problem –Decide what steps need to be taken to solve it. –Take into consideration any special.
CSI 1340 Introduction to Computer Science II Chapter 1 Software Engineering Principles.
5.01 Understand Different Types of Programming Errors
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
Chapter 4 Murach's JavaScript and jQuery, C4© 2012, Mike Murach & Associates, Inc.Slide 1.
Principles of Programming CSEB134 : BS/ CHAPTER Fundamentals of the C Programming Language.
Alexandria University Faculty of Science Computer Science Department Introduction to Programming C++
Introduction to Computer Programming using Fortran 77.
PROGRAMMING. Computer Programs  A series of instructions to the computer  pre-written/packaged/off-the-shelf, or  custom made  There are 6 steps to.
COMPUTER PROGRAMMING I SUMMER Understand Different Types of Programming Errors.
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.
OCR A Level F453: The function and purpose of translators Translators a. describe the need for, and use of, translators to convert source code.
Chapter 1: Introduction to Computers and Programming.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Java Programming Fifth Edition Chapter 1 Creating Your First Java Classes.
Software Engineering Algorithms, Compilers, & Lifecycle.
Debuggers. Errors in Computer Code Errors in computer programs are commonly known as bugs. Three types of errors in computer programs –Syntax errors –Runtime.
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
Mobile Device Development
5.01 Understand Different Types of Programming Errors
ME 142 Engineering Computation I
Introduction to programming
Lecture 1 Introduction Richard Gesick.
Software Design and Development
Testing Key Revision Points.
Module 1: Getting Started
5.01 Understand Different Types of Programming Errors
CSE 1020:Software Development
Review of Previous Lesson
Murach's JavaScript and jQuery (3rd Ed.)
Presentation transcript:

Chapter 6 Testing and running a solution

Errors X Three types Syntax Logic Run-time

Syntax errors are simply written errors in the code. Logic: This is usually a mathematical error when calculations or selections are involved. Run-Time: Any error caused when a program runs.

Testing Strategies Black Box Testing: Testing the program without caring if the program going to work Black Box Testing White box testing: Beta testing: User testing/consumer

Valid Data: correct Invalid Data: incorrect Borderline Data: incorrect but the data output is valid

Debugging Tools Translator Diagnostics: When the translator (the part of the programming interface that converts the high-level source code to low-level machine code) Breakpoints: is a marker added to a line of code requesting that the program stops running when it gets to that line. Stepping: Stepping involves moving through a program one line at a time after a breakpoint. Dry Runs: Going through the source code manually noting down variable values so to find any errors.

Installation and Execution So when you compile a program you take the source code and convert it to object code. Great, now what? As all of you should know, installing a program means to copy all of the files to a hard-drive so that it can run and be of some use to the end user. Many programming languages have some functionality that can create a.exe file from the object code that can be sent to any computer of that type. For example, a.exe file created on a mac will not run on a pc and vice versa.