For Tutors Introduce yourself.

Slides:



Advertisements
Similar presentations
Write a program step by step. Step 1: Problem definition. Given the coordinate of two points in 2-D space, compute and print their straight distance.
Advertisements

Debugging in Matlab C. Reed 4/5/11. Bugs Debugging is a natural part of programming: Three standard types of errors: –Syntax errors: you simply have typed.
CS 202 Computer Science II Lab Fall 2009 September 24.
© Janice Regan, CMPT 102, Sept CMPT 102 Introduction to Scientific Computer Programming The software development method algorithms.
Debugging Introduction to Computing Science and Programming I.
Debugging CPSC 315 – Programming Studio Fall 2008.
HTML Recall that HTML is static in that it describes how a page is to be displayed, but it doesn’t provide for interaction or animation. A page created.
How to Debug Debugging Detectives Debugging Desperados I GIVE UP! MyClass.java.
CS 101 Problem Solving and Structured Programming in C Sami Rollins Spring 2003.
Real World Programming BBrewer Fall Programming - Bellwork 1.Log on 2.Go to edmodo 3.Open & Save Vocabulary Graphic Organizer and Analaysis Document.
6 Steps of the Programming Process
Computer Programming and Basic Software Engineering 4. Basic Software Engineering 1 Writing a Good Program 4. Basic Software Engineering.
Study Tips for COP 4531 Ashok Srinivasan Computer Science, Florida State University Aim: To suggest learning techniques that will help you do well in this.
Testing Michael Ernst CSE 140 University of Washington.
Testing CSE 140 University of Washington 1. Testing Programming to analyze data is powerful It’s useless if the results are not correct Correctness is.
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
Software Life Cycle Requirements and problem analysis. –What exactly is this system supposed to do? Design –How will the system solve the problem? Coding.
Debugging. Compile problems Read the whole complaint! Runtime problems –Exceptions –Incorrect behavior.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Class 1: What this course is about. Assignment Read: Chapter 1 Read: Chapter 1 Do: Chapter 1 ‘workbook’ pages not finished in class Do: Chapter 1 ‘workbook’
Python Repetition. We use repetition to prevent typing the same code out many times and to make our code more efficient. FOR is used when you know how.
1 EMT 101 – Engineering Programming Dr. Farzad Ismail School of Aerospace Engineering Universiti Sains Malaysia Nibong Tebal Pulau Pinang Week 2.
End of unit assessment Challenge 1 & 2. Course summary So far in this course you have learnt about and used: Syntax Output to screen (PRINT) Variables.
CS 100 Introduction to Computing Seminar September 21, 2015.
Programming with Loops. When to Use a Loop  Whenever you have a repeated set of actions, you should consider using a loop.  For example, if you have.
Introduction to Testing CSIS 1595: Fundamentals of Programming and Problem Solving 1.
Testing CSE 160 University of Washington 1. Testing Programming to analyze data is powerful It’s useless (or worse!) if the results are not correct Correctness.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
The Department of Engineering Science The University of Auckland Welcome to ENGGEN 131 Engineering Computation and Software Development Lecture 2 Debugging,
Scientific Inquiry Scientific Inquiry The Scientific Method Analyzing observations to solve problems.
Timeline Control REVIEW FOR LESSON When you encounter a problem, what’s the first thing you should do? A. If you get a compile error, go to the.
CMSC 2021 Software Development. CMSC 2022 Software Development Life Cycle Five phases: –Analysis –Design –Implementation –Testing –Maintenance.
Programming with Miracle. Goals of Miracle ● Concentrate on key ideas in programming ● Reduce concerns about syntax ● Assist in development of code ●
Programming In Python. Starter Using the internet… Find what a programming language is.
CHAPTER 3 COMPLETING THE PROBLEM- SOLVING PROCESS AND GETTING STARTED WITH C++ An Introduction to Programming with C++ Fifth Edition.
Debuggers. Errors in Computer Code Errors in computer programs are commonly known as bugs. Three types of errors in computer programs –Syntax errors –Runtime.
Algorithms and Flowcharts
The Department of Engineering Science The University of Auckland Welcome to ENGGEN 131 Engineering Computation and Software Development Lecture 2 Debugging,
Wrapper Classes Debugging Interlude 1
Testing More In CS430.
Lesson 5-2 AP Computer Science Principles
C++ Basic Syntax – Homework Exercises
Testing and Debugging.
Testing UW CSE 160 Winter 2017.
Copyright © 2008 by Helene G. Kershner
Problem Solving Techniques
Testing UW CSE 160 Winter 2016.
CSCE 315 – Programming Studio, Fall 2017 Tanzir Ahmed
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Article Summary Exemplars
Problem Solving Skill Area 305.1
Building Java Programs
Global Challenge Walking for Water Lesson 2.
BugHint: A Visual Debugger Based on Graph Mining
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
PYTHON: BUILDING BLOCKS Inputs & Outputs
PYTHON: BUILDING BLOCKS Sequencing & Selection
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Small Basic Programming
Review of Previous Lesson
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Chapter 15 Debugging.
List of your team members Member 1 Member 2 Member 3
Lecture 6 - Recursion.
Presentation transcript:

For Tutors Introduce yourself. Ask the student to describe their homework problem. Ask the student to describe what they want help with. If they don’t know how to get started, ask them to describe the problem in detail: What are the goals of the problem? What are the inputs? What are the outputs? What is their relationship? Can we solve a small example by hand? Is there a part of the problem that they could write code for? (and worry about the rest later?) Can you describe the algorithm in words? If they have a syntax error, ask them: What line is the syntax error is on? What does the text of the error mean? What does the internet suggest about how to fix this error? What have they tried to fix this error? If their code doesn’t work, ask them: What evidence do we have that the code doesn’t work? What test case doesn’t work and what incorrect behavior or output results? Could we come up with a simpler example that demonstrates the error? What lines of code might be producing the bug? Why hypotheses do we have for what might be causing the problem? How can we test these hypotheses? (e.g. writing new test cases, adding print statements, using a debugger) Could we walk through an example that doesn’t work: by hand? with a debugger?