Computational Thinking

Slides:



Advertisements
Similar presentations
Objective: Dealing with data in C++ Agenda: Notes Essay Help.
Advertisements

1 9/20/06CS150 Introduction to Computer Science 1 Review: Exam 1.
An Introduction to Programming with C++ Fifth Edition Chapter 4 Chapter 4: Variables, Constants, and Arithmetic Operators.
Methods: a first introduction Two ways to make tea: 1: boil water; put teabag into cup;... etc : tell your younger brother: makeTea(1 milk, 0 sugar);
Basic Elements of C++ Chapter 2.
Python. What is Python? A programming language we can use to communicate with the computer and solve problems We give the computer instructions that it.
Programming is instructing a computer to perform a task for you with the help of a programming language.
Program A computer program (also software, or just a program) is a sequence of instructions written in a sequence to perform a specified task with a computer.
 2003 Prentice Hall, Inc. All rights reserved. 1 Introduction to C++ Programming Outline Introduction to C++ Programming A Simple Program: Printing a.
CIS Computer Programming Logic
Goals of Course Introduction to the programming language C Learn how to program Learn ‘good’ programming practices.
PYTHON: PART 2 Catherine and Annie. VARIABLES  That last program was a little simple. You probably want something a little more challenging.  Let’s.
Input, Output, and Processing
Data & Data Types & Simple Math Operation 1 Data and Data Type Standard I/O Simple Math operation.
Arithmetic Operations. Review function statement input/output comment #include data type variable identifier constant declaration.
Constants Numeric Constants Integer Constants Floating Point Constants Character Constants Expressions Arithmetic Operators Assignment Operators Relational.
1 INTRODUCTION TO PROBLEM SOLVING AND PROGRAMMING.
Lesson 6. Python 3.3 Objectives. In this lesson students will learn how to output data to the screen and request input from the user. Students will also.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
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.
Variables When programming it is often necessary to store a value for use later on in the program. A variable is a label given to a location in memory.
Basic problem solving CSC 111.
C++ Programming, Namiq Sultan1 Chapter 3 Expressions and Interactivity Namiq Sultan University of Duhok Department of Electrical and Computer Engineerin.
CSC 111. Solving Problems with Computers Java Programming: From Problem Analysis to Program Design, Third Edition3 Solving Problems Stages 1.Problem.
CSC 1010 Programming for All Lecture 3 Useful Python Elements for Designing Programs Some material based on material from Marty Stepp, Instructor, University.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 2A Reading, Processing and Displaying Data (Concepts)
INPUT & VARIABLES.
CHAPTER 2 PROBLEM SOLVING USING C++ 1 C++ Programming PEG200/Saidatul Rahah.
Values, Types, and Variables. Values Data Information Numbers Text Pretty much anything.
Lecture 5: Expressions and Interactivity Professor: Dr. Miguel Alonso Jr. Fall 2008 CGS2423/COP1220.
GCSE Computing: Programming GCSE Programming Remembering Python.
Sudeshna Sarkar, IIT Kharagpur 1 Programming and Data Structure Sudeshna Sarkar Lecture 3.
NOTE: C programs consist of functions one of which must be main. C programs consist of functions one of which must be main. Every C program begins executing.
Input, Output and Variables GCSE Computer Science – Python.
Chapter 3 Using Variables, Constants, Formatting Mrs. UlshaferSept
Chapter Topics The Basics of a C++ Program Data Types
Topics Designing a Program Input, Processing, and Output
IGCSE 4 Cambridge Data types and arrays Computer Science Section 2
Variables Mr. Crone.
Lesson 1 - Sequencing.
BASIC ELEMENTS OF A COMPUTER PROGRAM
Topic: Python’s building blocks -> Variables, Values, and Types
Basic Elements of C++.
Variables, Expressions, and IO
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.
Lecture2.
Computational Thinking
Variables ,Data Types and Constants
Time Manager Class Activity Material Manager Writer leader Communicator Programmer Start a journey from the capital AbuDhabi to Alasmaa School using your.
Basic Elements of C++ Chapter 2.
IPC144 Introduction to Programming Using C Week 2 – Lesson 1
Computers & Programming Languages
G7 programing language Teacher / Shamsa Hassan Alhassouni.
Variables In programming, we often need to have places to store data. These receptacles are called variables. They are called that because they can change.
Computers & Programming Languages
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Learning Outcomes –Lesson 4
Programming Funamental slides
Computers & Programming Languages
CS150 Introduction to Computer Science 1
Topics Designing a Program Input, Processing, and Output
COMPUTATIONAL THINKING COMPUTATIONAL THINKING IN PROGRAMMING
Topics Designing a Program Input, Processing, and Output
What Actions Do We Have Part 1
An Introduction to Programming with C++ Fifth Edition
Chapter 2: Input, Processing, and Output
C++ Programming Basics
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.
More Basics of Python Common types of data we will work with
Presentation transcript:

Computational Thinking Unti-1 Computational Thinking

Define computational thinking Draw flow charts Lesson Objectives: Define computational thinking Draw flow charts Use of comments in python Understand variables - datatypes and python operators.

1. Computational Thinking

How to make a cup of coffee: Discuss

How to make a paper Airplane? Discuss

How to calculate a rectangle room size? Discuss

How to make a fish aquarium? Discuss

Algorithm

Steps of Programming Process Algorithms An Algorithm is a set of rules or steps used to solve a problem. Test your algorithm Steps of Programming Process Design an algorithm Analyze Problem Use the program Implement algorithm

Flow Chart A flow chart is a diagram that shows the steps used to solve a problem Flow chart uses standard symbols to represent the different instructions

Challenge1: The sum of two numbers Write an algorithm and design the flow chart for the following case: The sum of two numbers

Challenge2: Write an algorithm and design the flow chart for the following case: Mariam got a land in a square shape , with an L Length and intended to sell the land by X price for single square meter . What will be the price of the land ?

Book Activity P-31 & 32

Book Activity Page 32

2. Comments

Comments Practical Task # Comments are used to write descriptive comments to help you debug and share codes. Practical Task Open python program and create new python file called “Lesson2” Use comments tag to write your name Your class

3. Variables

36980 + 12555

num Variable & Data Type A variable is a named location in computer’s memory that is used to store data. Each variable has a name and a value. The name of the variable should not start with a number or a symbol. The name of the variable should represent the data you be storing num

Book Activity P-35 - 36

Open python program - “Lesson2” Type the following: Practical Task Open python program - “Lesson2” Type the following: name = input(“Enter Your Name” ) print (“Hello” , name) Ask the user to enter age and then print Your age is …

4. Python Operators

Operands data that we are working with to perform operations Python Operators Operators are the instructions that tell the computer what to do with the data - (Mathematical Operators) num=17 Total = num + 293 Operand Operand Operator Operator Operands data that we are working with to perform operations

Arithmetic Operators

5. Data Types

Data types are used to classify the data used in a computer program.

Activity What’s your name ? Work in pair .. And ask your colleague the following questions .. What’s your name ? How much do you expect today’s temperature ? What is the value of PI ?

int float string Definition Operations can be carried out Example Data Types integer byte short int long Floating Point float double character string Definition Operations can be carried out Example Integer (int) Whole numbers (positive and negative) + , - , *, / , %, ** 380 , -200 Float (float) Decimal numbers (positive and negative) 2.6 , -9.1 String (string) Characters / letters declared between “ “ + “Year” , “Zayed”

End of Unit Activities