Feedback Pace Different ideas for delivery Debugging strategies

Slides:



Advertisements
Similar presentations
Discussion1 Quiz. Q1 Which of the following are invalid Java identifiers (variable names)? a) if b) n4m3 c) Java d) e) DEFAULT_VALUE f) bad-choice.
Advertisements

Types and Arithmetic Operators
Introduction to Computers and Programming Lecture 4: Mathematical Operators New York University.
COMP 14 Introduction to Programming Miguel A. Otaduy May 18, 2004.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Adrian Ilie COMP 14 Introduction to Programming Adrian Ilie June 30, 2005.
Data Types. Every program must deal with data The data is usually described as a certain type This type determines what you can do with the data and how.
From Scratch to Python Learn to program like the big boys / girls!
CIS Computer Programming Logic
Lecture # 5 Data Representation. Today Questions: From notes/reading/life? Prepare for Quiz # 1 (Multiple Choice) 1.Introduce: How do Computers store.
Sep 12, 2007Sprenkle - CS1111 Objectives Review  Linux  Why programming languages? Compiled vs. Interpreted Languages Programming in Python  Data types.
Java Data Types. Primitive Data Types Java has 8 primitive data types: – char: used to store a single character eg. G – boolean: used to store true or.
Lesson 6-3B Objective: Solve inequalities using more than one step…continued.
Semester Review. As we have discussed, Friday we will have in class time for you to work on a program, this program will come with instructions and you.
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 2: Variables & Data Types.
COMP 171: Data Types John Barr. Review - What is Computer Science? Problem Solving  Recognizing Patterns  If you can find a pattern in the way you solve.
ICT Introduction to Programming Chapter 4 – Control Structures I.
Java Programming, Second Edition Chapter Two Using Data Within a Program.
School of Computer Science & Information Technology G6DICP - Lecture 4 Variables, data types & decision making.
Data Tonga Institute of Higher Education. Variables Programs need to remember values.  Example: A program that keeps track of sales needs to remember.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 2A Reading, Processing and Displaying Data (Concepts)
“Great leaders are never satisfied with current levels of performance. They are restlessly driven by possibilities and potential achievements.” – Donna.
A: A: double “4” A: “34” 4.
Fundamental Programming Fundamental Programming More Expressions and Data Types.
Midterm Exam Topics (Prof. Chang's section) CMSC 201.
 Variables can store data of different types, and different data types can do different things.  PHP supports the following data types:  String  Integer.
Sum of Arithmetic Sequences. Definitions Sequence Series.
GCSE Computing: Programming GCSE Programming Remembering Python.
Midterm Review Tami Meredith. Primitive Data Types byte, short, int, long Values without a decimal point,..., -1, 0, 1, 2,... float, double Values with.
FractionsDecimalsPowers Answer  This is how you add fractions.
Input, Output and Variables GCSE Computer Science – Python.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
7 - Programming 7J, K, L, M, N, O – Handling Data.
CMSC201 Computer Science I for Majors Lecture 07 – While Loops
Numbers and arithmetic
CMSC201 Computer Science I for Majors Lecture 03 – Operators
Numbers and Arithmetic
Lesson 1 - Sequencing.
CMSC201 Computer Science I for Majors Lecture 04 – Expressions
Expressions An expression is a portion of a C++ statement that performs an evaluation of some kind Generally requires that a computation or data manipulation.
Introduction to Programming
Computer Science 3 Hobart College
CMSC201 Computer Science I for Majors Lecture 03 – Operators
Computational Thinking
Computational Thinking
Chapter 2.
Review Operation Bingo
And now for something completely different . . .
Numbers.
Escape sequences: Practice using the escape sequences on the code below to see what happens. Try this next code to help you understand the last two sequences.
Chapter 2 Variables.
Chapter (3) - Looping Questions.
Coding Concepts (Basics)
Variables Title slide variables.
CMSC201 Computer Science I for Majors Lecture 04 – Expressions
GCSE Computing Lesson 6.
Expressions An expression is a portion of a C++ statement that performs an evaluation of some kind Generally requires that a computation or data manipulation.
CHAPTER FOUR VARIABLES AND CONSTANTS
PYTHON: BUILDING BLOCKS Sequencing & Selection
ECS15 boolean.
Fundamental Programming
Life is Full of Alternatives
design OO words Debug Variables Data types
Data Types Every variable has a given data type. The most common data types are: String - Text made up of numbers, letters and characters. Integer - Whole.
Data Types and Maths Programming Guides.
Class code for pythonroom.com cchsp2cs
More Basics of Python Common types of data we will work with
Variables and Constants
COMPUTING.
Data Types and Expressions
Getting Started in Python
Presentation transcript:

Feedback Pace Different ideas for delivery Debugging strategies Sabotage Vocabulary / terminology

Feedback Python isn’t scary

Python Camp Session 2: Computational Thinking and Problem Solving Data Types Variables Sequence / Selection / Iteration

Dry Run this program age = input(“What is your age? “) double = age + age print(double) Starter - have students guess, then test, then discuss reasons for the error.

Solution 1 age = input(“What is your age? “) age = int(age) double = age + age print(double) Starter - have students guess, then test, then discuss reasons for the error.

Solution 2 age = int( input(“What is your age? “) ) double = age + age print(double) Starter - have students guess, then test, then discuss reasons for the error.

+ - * / ** % Arithmetic Operators num1 = input(”Enter a number: ”) print(num1 + num2) Find out what each of these does: + - * / ** %

Data Types Type Casting Meaning integer int() whole number float decimal fraction string str() text boolean bool() yes / no true / false Introduce data types and casting. Test out a few times.

Data Types a = 3 type(a) a = 3.0 a = “3” a = True

Data Types a = 3 type(a) a = 3.0 a = “3” a = True a = 3 type(a) a = int(“3”) a = “True”

Multiple Choice Quiz pi.mwclarkson.co.uk York Python Camp Programming Resources Programs Python Quiz.py Provide multiple choice quiz. Students adjust question and answer, include some numeric questions (focus on casting), task to duplicate for further questions and add an IF statement to give a grade.

a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C Demonstrate a dry run table and have students work through the assignment quiz

a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C Demonstrate a dry run table and have students work through the assignment quiz

a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 Demonstrate a dry run table and have students work through the assignment quiz

a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 Demonstrate a dry run table and have students work through the assignment quiz

a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 200 Demonstrate a dry run table and have students work through the assignment quiz

a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 200 Demonstrate a dry run table and have students work through the assignment quiz

a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 200 300 a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Demonstrate a dry run table and have students work through the assignment quiz

a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 200 300 a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Demonstrate a dry run table and have students work through the assignment quiz

a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 200 300 150 a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Demonstrate a dry run table and have students work through the assignment quiz

a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 200 300 150 a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Demonstrate a dry run table and have students work through the assignment quiz

a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 200 300 151 150 a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Demonstrate a dry run table and have students work through the assignment quiz

Assignment File Exa.im/stempy16.files