Starter – Its the small things in life What’s wrong with this code Height = 10 Width = 10 A = Height * Width Print A Remember to check: Spelling Spacing.

Slides:



Advertisements
Similar presentations
Computing Science Software Design and Development SOFTWARE DESIGN AND DEVELOPMENT USING PYTHON.
Advertisements

VARIABLES AND DEBUGGING Beginning Programming. Assignment Statements  Used to hold values in a variable  Calculates a result and stores it in a variable.
A Level Computing#BristolMet Session Objectives#U2 S2 MUST describe the steps of an algorithm using a program flowchart SHOULD explain the data types and.
Programming in python Lesson 2.
Math operators and a challenge Mastery Objectives: Students will— Be able to use augment assignment operators Demonstrate proficiency in using types, variables.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the structure of a C-language program. ❏ To write your first C.
Chapter 3 Planning Your Solution
Review Algorithm Analysis Problem Solving Space Complexity
Success criteria Complete an assessment Complete some code A grade by the end of the day.
Revision – Data types Design a database structure for a class. This database needs to contain information about their name, exam marks, DOB, exam grades,
Do Now Noticing skills What does input do?. Annotate your code to explain what happens name = input( “What is your name?\n” ) print(“Hello ”, name) Extension-Python.
© The McGraw-Hill Companies, 2006 Chapter 1 The first step.
Starter – Homework What were our findings?. Computer Science Constants_variables and data types 2.
General Programming Introduction to Computing Science and Programming I.
Computer Science 101 Introduction to Programming.
More Algorithm Design CSIS 1595: Fundamentals of Programming and Problem Solving 1.
BUILDING JAVA PROGRAMS CHAPTER 7 Arrays. Exam #2: Chapters 1-6 Thursday Dec. 4th.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and.
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
Lesson Plan - APP Algebra Mental and Oral Starter Pupils to complete a ‘Heard the Word’ grid and compare it to grid they completed at the start of the.
Computer Science – Truth Jam Table JamBreadSandwich Yes No YesNo YesNo TeaMilkDrink No Yes NoYes NoYes What am I getting at?
1 Computer Science of Graphics and Games MONT 105S, Spring 2009 Session 1 Simple Python Programs Using Print, Variables, Input.
Advanced Computer Science Lesson 4: Reviewing Loops and Arrays Reading User Input.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and.
Solving by Elimination Example 1: STEP 2: Look for opposite terms. STEP 1: Write both equations in Standard Form to line up like variables. STEP 5: Solve.
EXAMPLE 4 Solve a Multi-Step Problem SOLUTION STEP 1Find the amount of the tip. Your food bill at a restaurant is $24. You leave a 20% tip. The sales tax.
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake An Introduction to Programming.
Computer Science: A Structured Programming Approach Using C1 6-6 Loop Examples This section contains several short examples of loop applications. Each.
Python Lesson 1 1. Starter Create the following Excel spreadsheet and complete the calculations using formulae: 2 Add A1 and B1 A2 minus B2 A3 times B3.
Introduction to Programming
3.1.3 Program Flow control Structured programming – SELECTION in greater detail.
Day 5: More Practice Unit 7: Quadratic Word Problems.
Algorithms and Pseudocode
COMPUTER PROGRAMMING Year 9 – Unit 9.04 Week 3. Open the Python INTERPRETER Can you use the interpreter to solve these maths problems? 156 add
For Loop GCSE Computer Science – Python. For Loop The for loop iterates over the items in a sequence, which can be a string or a list (we will discuss.
COMPUTER PROGRAMMING Year 9 – lesson 1. Objective and Outcome Teaching Objective We are going to look at how to construct a computer program. We will.
World of Wokcraft The very best in Single pan cooking themed fantasy gaming!
Algorithms and Flowcharts
Nested Loops CS303E: Elements of Computers and Programming.
Programming revision Revision tip: Focus on the things you find difficult first.
PYTHON PROGRAMMING Year 9. Objective and Outcome Teaching Objective Today we will look at conditional statements in order to understand how programs can.
Learning outcomes 2 Developing Code – Input Output Model
Introducing Instructions
Introduction to Algorithms
Topics discussed in this section:
CMIS 102 Competitive Success-- snaptutorial.com
CMIS 102 Education for Service-- snaptutorial.com
CMIS 102 Teaching Effectively-- snaptutorial.com
Learning to Program in Python
Learning to Program in Python
Learning to Program in Python
STARTER TASK EXTENSION
Teaching London Computing
Fill the screen challenge!
Learning to Program in Python
Programming In Lesson 3.
Topics discussed in this section:
Starter answer these questions in your book
Python 19 Mr. Husch.
STARTER TASK EXTENSION
COMPUTATIONAL THINKING END OF UNIT ASSESSMENT
See requirements for practice program on next slide.
COMPUTATIONAL THINKING COMPUTATIONAL THINKING IN PROGRAMMING
Class 4: Repetition Pretest Posttest Counting Flowchart these!
Enlargement on Paper Enlarge the Rectangle by a Factor of 2
Learning Objective Solving equations with single brackets
Python 19 Mr. Husch.
Starter Which of these inventions is: Used most by people in Britain
GCSE Computing Mini Assignment.
Python Creating a calculator.
Presentation transcript:

Starter – Its the small things in life What’s wrong with this code Height = 10 Width = 10 A = Height * Width Print A Remember to check: Spelling Spacing Capital letters Height = 10 Width = 10 A = Height * 10 Print A

Computer Science Constants_variables and data types 2 part 2

Success Criteria Be able to describe the difference between a constant and a variable. To be able to write simple programs using some variables and constants To be able to assign some data types to data

Introducing the pseudocode Task 1 = What am I working out Width ← 10 Height ← 10 A ← Width * Height print A

Introducing the pseudocode Task 1 = What am I working out Width ← user input Height ← user input A ← Width * Height print “Your answer is” + A “Your answers is...” is a string BUT is A? Str(A)

Problem solving - Take that working code you have created. Work out the area of triangle.

Problem solving - Okay – what have we learnt? Without me: Three people have meals and drinks Work out the total for the meal Then add 20% tax (VAT)on the end Work out the total + tax (VAT) TIP - Use pseudo code if you have to plan it out.

Key questions Can you identify differences between constants and variables. Can you write simple programs using some variables and constants Can you assign some data types to data

Extension Practice, practice and practice

Homework 4 pieces of programming code (that work) that demonstrate the use of constants and variables. Annotate each code to show constants and variables + data types you have assigned.