Fundamentals of Software Development 1Slide 1 Correcting Compile Time Errors Above all don’t panic!Above all don’t panic! Read the error messageRead the.

Slides:



Advertisements
Similar presentations
For(int i = 1; i
Advertisements

Group that looked at Miami syllabus. Current Syllabus (with regards to testing) 2: To be able to identify and eliminate errors in programs – 2.1: Describe.
 C++ programming facilitates a disciplined approach to program design. ◦ If you learn the correct way, you will be spared a lot of work and frustration.
Fundamentals of Software Development 1Slide 1 Today’s Summary Hello World concepts – –main, static, console Programming patterns involving assignment and.
What Data Do We Have? Sections 2.2, 2.5 August 29, 2008.
0 Advanced Selection CE : Introduction to Software Development Week 3 Lecture 2.
01 Introduction1June Introduction CE : Fundamental Programming Techniques.
S A B D C T = 0 S gets message from above and sends messages to A, C and D S.
Grouping Objects 2 Collections and the for-each loop Collections and the while loop.
Inline Functions Sometimes you need the same piece of code at multiple places in your task. Inline functions are copied at each place they are used. In.
ECE122 L17: Method Development and Testing April 5, 2007 ECE 122 Engineering Problem Solving with Java Lecture 17 Method Development and Testing.
If statements Chapter 3. Selection Want to be able to do a statement sometimes, but not others if it is raining, wear a raincoat. Start first with how.
Module - How To Get Help The DSpace Course. Module Overview  By the end of this module you will:  Understand the help available from the DSpace community.
Iteration. Adding CDs to Vic Stack In many of the programs you write, you would like to have a CD on the stack before the program runs. To do this, you.
CMSC 202 Exceptions. Aug 7, Error Handling In the ideal world, all errors would occur when your code is compiled. That won’t happen. Errors which.
Reading Comprehension
Mastering Char to ASCII AND DOING MORE RELATED STRING MANIPULATION Why VB.Net ?  The Language resembles Pseudocode - good for teaching and learning fundamentals.
Math Message 1.1 Introduction to Everyday Math Student Reference Book Look through your student journal for things that may be different from your fourth.
Fundamentals of Software Development 1Slide 1 Loops A loop is:A loop is: –a block of code that executes repeatedly while some condition holds true. Java.
Biology Christmas Homework ALL 1. Complete the following questions showing ALL workings 2. Mark your answers using the SQA mark scheme 3. Calculate a %
CSC 1051 – Algorithms and Data Structures I Dr. Mary-Angela Papalaskari Department of Computing Sciences Villanova University Course website:
Working with arrays (we will use an array of double as example)
Mathematical Calculations in Java Mrs. G. Chapman.
Test Taking Tips For PASS. Think positive! Don’t panic.
Repetition Assignment Unit 1 Design Fundamentals.
Mathematical Calculations in Java Mrs. C. Furman.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
This will all add up in the end. Assignment operator =Simple Assignment operator Arithmetic Operators +Additive operator – Subtraction operator * Multiplication.
CS 0401 Debugging Hints and Programming Quirks for Java by John C. Ramirez University of Pittsburgh.
Multiplication Facts X 3 = 2. 8 x 4 = 3. 7 x 2 =
Output Programs These slides will present a variety of small programs. Each program has a control structure that was introduced in this chapter. Our concern.
Fundamentals of Software Development 1Slide 1 Loops A loop is:A loop is: –a block of code that executes repeatedly while some condition holds true. Java.
Nested for loops.
Printing with for Loops To print a character multiple times, use a for loop. for (int j = 1; j
Using Inverse Operations How to use an inverse to undo a repeated multiplication problem. 10 October, 2004.
SATMathVideos.Net A set S consists of all multiples of 4. Which of the following sets are contained within set S? A) S2 only B) S4 only C) S2 and S4 D)
Fundamental Programming Fundamental Programming More Expressions and Data Types.
3. The Nuts and Bolts of C++ Computer Programming 3. The Nuts and Bolts of C++ 1 Learning the C++ language 3. The Nuts and Bolts of C++ 16 September 2008.
Review. Problem 1 What is the output of the following piece of code void increment(int x) { x++; } int main() { int y = 10; increment(y); cout
CSCI 1100/1202 January 14, Abstraction An abstraction hides (or ignores) the right details at the right time An object is abstract in that we don't.
CS 106 Introduction to Computer Science I 09 / 10 / 2007 Instructor: Michael Eckmann.
Teacher Directed Instruction. Use for teaching basic facts, knowledge, and skills (examples): New tasks Alphabetizing Unfamiliar material Science equations.
THE DOUBLE VARIABLE The double variable can hold very large (or small) numbers. The maximum and minimum values are 17 followed by 307 zero’s.
1 BUILDING JAVA PROGRAMS CHAPTER 2 PRIMITIVE DATA AND DEFINITE LOOPS.
A Geometric Progression Problem Source: Aidan Burrows (don’t know where he got it from)
JavaScript Errors and Debugging Web Design Sec 6-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
Fundamental Programming Fundamental Programming Data Processing and Expressions.
Introduction to Computers and Programming Lecture 10: For Loops Professor: Evan Korth New York University.
Lecture 3: More Java Basics Michael Hsu CSULA. Recall From Lecture Two  Write a basic program in Java  The process of writing, compiling, and running.
Multiplication Timed Tests.
Regular Expressions In Javascript cosc What Do They Do? Does pattern matching on text We use the term “string” to indicate the text that the regular.
Identify the Appropriate Method for Handling Repetition
Loops A loop is: Java provides three forms for explicit loops:
What is a Lexile Measure?
Exercise Java programming
Writing Methods.
Midterm Exam Preperation
Dividing Decimals by Whole Numbers
C-to-LC3 Compiler Over the course of the next two weeks, you will build a program that will compile C code to LC-3 assembly language Don't panic! You.
8th Grade Science Content Standard
Multiple Choice Quiz.
Multiplication Tables
Fundamental Frequency of a String (The First Harmonic)
CSS161: Fundamentals of Computing
HIPAA and Harassment.
Types of Errors And Error Analysis.
Python fundamental.
8th Grade Science Content Standard
National 5 Biology Christmas Homework
Presentation transcript:

Fundamentals of Software Development 1Slide 1 Correcting Compile Time Errors Above all don’t panic!Above all don’t panic! Read the error messageRead the error message Work through errors one at a timeWork through errors one at a time Check adjacent linesCheck adjacent lines

Fundamentals of Software Development 1Slide 2 Above all don’t panic! One error can lead to multiple error… For example consider how many errors the following piece of code will get…One error can lead to multiple error… For example consider how many errors the following piece of code will get… int i; j = i; k = j + 2; m = j * 2; n = j – 2; p = j / 2; Don’t judge a book by its cover!Don’t judge a book by its cover!

Fundamentals of Software Development 1Slide 3 Read the Error Message Read the error message carefullyRead the error message carefully –A number of times the answer to your problem will be there… System.out.println("Enter a string);System.out.println("Enter a string); –gives the error message: unclosed string literal

Fundamentals of Software Development 1Slide 4 Work through errors one at a time Take your time working through errorsTake your time working through errors Focus on one error at a timeFocus on one error at a time Recompile the program as needed to see monitor your progressRecompile the program as needed to see monitor your progress

Fundamentals of Software Development 1Slide 5 Check Adjacent Lines Sometimes the error message relates toSometimes the error message relates to –the previous line –the next line For exampleFor example –Line 28: System.out.println("Goodbye!") –Line 29: System.out.println(5); –gives error message: ; expected at Line 29; expected at Line 29