Harvard Mark I Howard Aiken was a pioneer in computing and a creator of conceptual design for IBM in the 1940s. He envisioned an electro-mechanical computing.

Slides:



Advertisements
Similar presentations
VCE SD Theory Slideshows By Mark Kelly Vceit.com Debugging Techniques.
Advertisements

Programming Types of Testing.
Programming Logic and Design Sixth Edition
Debugging Techniques1. 2 Introduction Bugs How to debug Using of debugger provided by the IDE Exception Handling Techniques.
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
1 CSE1301 Computer Programming: Lecture 15 Flowcharts and Debugging.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
Chapter 2: Input, Processing, and Output
Java Review 2 – Errors, Exceptions, Debugging Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
1 CSE1301 Computer Programming: Lecture 15 Flowcharts, Testing and Debugging.
Programming Logic and Design, Introductory, Fourth Edition1 Understanding Computer Components and Operations (continued) A program must be free of syntax.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
PRE-PROGRAMMING PHASE
Chapter 1: Introduction To Computer | SCP1103 Programming Technique C | Jumail, FSKSM, UTM, 2005 | Last Updated: July 2005 Slide 1 Introduction To Computers.
Chapter Seven Advanced Shell Programming. 2 Lesson A Developing a Fully Featured Program.
Computer Programming and Basic Software Engineering 4. Basic Software Engineering 1 Writing a Good Program 4. Basic Software Engineering.
DCT 1123 Problem Solving & Algorithms
UNIT 3 TEMPLATE AND EXCEPTION HANDLING. Introduction  Program errors are also referred to as program bugs.  A C program may have one or more of four.
Simple Program Design Third Edition A Step-by-Step Approach
CIS Computer Programming Logic
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
Programming Translators.
Software Testing Damian Gordon.
1 Computing Software. Programming Style Programs that are not documented internally, while they may do what is requested, can be difficult to understand.
Programming Lifecycle
HOMEWORK REVIEW This is an if else statement layout if (condition) { code to be executed if condition is true; } else { code to be executed if condition.
Python – Part 1 Python Programming Language 1. What is Python? High-level language Interpreted – easy to test and use interactively Object-oriented Open-source.
2_Testing Testing techniques. Testing Crucial stage in the software development process. Significant portion of your time on testing for each programming.
Debugging in Java. Common Bugs Compilation or syntactical errors are the first that you will encounter and the easiest to debug They are usually the result.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 1- 1 October 20, October 20, 2015October 20, 2015October 20,
1 Problem Solving with C++ The Object of Programming Walter Savitch Chapter 1 Introduction to Computers and C++ Programming Slides by David B. Teague,
An Object-Oriented Approach to Programming Logic and Design Fourth Edition Chapter 5 Arrays.
ME 142 Engineering Computation I Debugging Techniques.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
FIRST JAVA PROGRAM. JAVA PROGRAMS Every program may consist of 1 or more classes. Syntax of a class: Each class can contain 1 or more methods. public.
Chapter 3 Syntax, Errors, and Debugging Fundamentals of Java.
1 Program Planning and Design Important stages before actual program is written.
The Functions and Purposes of Translators Syntax (& Semantic) Analysis.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 8 Arrays.
1 Debugging and Syntax Errors in C++. 2 Debugging – a process of finding and fixing bugs (errors or mistakes) in a computer program.
School of Computer Science & Information Technology G6DICP - Lecture 6 Errors, bugs and debugging.
EGR 115 Introduction to Computing for Engineers MATLAB Basics 6: Debugging in MATLAB Monday 15 Sept 2014 EGR 115 Introduction to Computing for Engineers.
The Hashemite University Computer Engineering Department
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
5.01 Understand Different Types of Programming Errors
Higher Computing Science 2016 Prelim Revision. Topics to revise Computational Constructs parameter passing (value and reference, formal and actual) sub-programs/routines,
Principles of Programming CSEB134 : BS/ CHAPTER Fundamentals of the C Programming Language.
Copyright © 2014 Pearson Addison-Wesley. All rights reserved. Chapter 2 C++ Basics.
Programming Logic and Design Fifth Edition, Comprehensive Chapter 6 Arrays.
COMPUTER PROGRAMMING I SUMMER Understand Different Types of Programming Errors.
1 CSE1301 Computer Programming: Lecture 16 Flow Diagrams and Debugging.
Debuggers. Errors in Computer Code Errors in computer programs are commonly known as bugs. Three types of errors in computer programs –Syntax errors –Runtime.
Wrapper Classes Debugging Interlude 1
5.01 Understand Different Types of Programming Errors
ME 142 Engineering Computation I
CS1101X Programming Methodology
Chapter 2: Input, Processing, and Output
Chapter 1. Introduction to Computers and Programming
2_Testing Testing techniques.
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
5.01 Understand Different Types of Programming Errors
An Introduction to Structured Program Design in COBOL
Detecting and Resolving Model Errors
Software Development Process
Programming Logic and Design Fifth Edition, Comprehensive
An Introduction to Debugging
Learning Intention I will learn about the different types of programming errors.
WJEC GCSE Computer Science
CHAPTER 6 Testing and Debugging.
Presentation transcript:

Harvard Mark I Howard Aiken was a pioneer in computing and a creator of conceptual design for IBM in the 1940s. He envisioned an electro-mechanical computing device that could do a lot of monotonous and boring work instead of him. This computer was originally called the Automatic Sequence Controlled Calculator (ASCC). It was later renamed Harvard Mark I. The Harvard Mark I was completed in 1944, with help of Grace Hopper and IBM’s funding. The computer was 55ft long and 8ft tall. It weighed 5 tons and was made of about parts.

Bugs On September 9, 1947, Grace Hopper discovered the first computer bug. She was working as an operator on the Harvard Mark II computer when the operators were attempting to trace a problem in the hardware. Wedged into Relay #70 on Panel F was a large moth's body causing a short circuit. Hopper recorded and taped the find in the logbook as "The first actual case of bug being found".

Bugs Bugs have been an engineering term for many years. Thomas Edison was quoted in 1878 using the term bugs to refer to problems arising in the engineering process.

ERROR CORRECTION TECHNIQUES “Program Code has bugs not errors. Debugging is the process of finding and fixing errors.” Carole Wilson (SDD Prelim Course) p130

Types of Coding Errors Syntax Errors Occur when the code does not match the rules of the language. - Examples include - typos such as wmile instead of while or using the wrong type of brackets or other symbols - Forgetting punctuation such as a ; or. - Leaving out part of a statement such as not including an ENDIF after an IF - These errors usually show up when a program is compiled before execution, and are sometimes called Compile Errors

Types of Coding Errors Run Time Errors Show up while the program is running Can be a result of logic errors, overflow errors or undefined arithmetic operations Some common run-time errors that will not show up during program compile include: Mathmatical operations with non numeric data Dividing by zero Overflow errors usually occur when a calculation is performed on an incorrect data type and becomes impossible to store in the targeted memory location. Examples include: Assigning variables to the wrong type real number as an integer Array range errors where there are more variables in an array than have been declared

Types of Errors Logic Errors Often occur when implementing conditions or repetition Can occur when assigning values to variables Can be helpful to refer to your pseudocode and compare it to your actual code Include flags and step through your program while comparing expected and actual conditions and values

Debugging Tools Stubs Used to check connection between modules of code without the module of code existing Let you test the main logic or flow of the program Breakpoints Lets the developer indicate where in a program they want it to stop during execution Often the development environment will let you examine the value of variables as they were prior to hitting the breakpoint Flags A developer can introduce a flag to show a certain part of the code has been reached. A flag is a boolean variable that the developer can tested within the code Debugging Output Statements A developer can make a program print messages to the screen while a program is running to show that a particular point in the program was reached. A developer can also populate the display to show the value of a variable during program execution Visual Basic offers tools that allow the developer to follow the contents of a variable during execution