Grandparents U, 2018 Part 1

Size: px
Start display at page:

Download "Grandparents U, 2018 Part 1"

Transcription

1 Grandparents U, 2018 Part 1 Computer Programming for Beginners Filip Jagodzinski

2 Preliminaries : Course Website All of these slides will be provided for you online So for the time being just relax and listen!

3 Introduction Who here has played Pokemon Go?

4 Introduction Who here has played Pokemon Go? What about Super Mario Brothers? Candy Land?

5 Introduction Who here has played Pokemon Go? What about Super Mario Brothers? Candy Land? Q: How are such games made?

6 Learning how to Program Computer programming is done using a computer CODE, or coding You learn by making mistakes, sort of like learning how to ride the bicycle Q: How many people were involved in making Pokemon Go

7 Learning how to Program Computer programming is done using a computer CODE, or coding You learn by making mistakes, sort of like learning how to ride the bicycle Q: How many people were involved in making Pokemon Go Hundreds!

8 Learning how to Program Learning how to program is like learning a new language You learn by making mistakes Then you try some more

9 Learning how to Program Learning how to program is like learning a new language You learn by making mistakes Then you try some more Then you make more mistakes

10 Learning how to Program Learning how to program is like learning a new language You learn by making mistakes Then you try some more Then you make more mistakes Then you try some more Difficult question : What happens next?

11 Learning how to Program Learning how to program is like learning a new language You learn by making mistakes Then you try some more Then you make more mistakes Then you try some more Then you make bigger mistakes and everything breaks

12 Programming is an art and a science A nice game of thermonuclear war Programs (apps) on your smartphone A simple python program Q: These all depict programs what do they have in common? How are they different?

13 Programming is an art and a science Solutions: (as perceived by the enduser)

14 Programming is an art and a science Solutions: (as perceived by the enduser) Programs: (implementation of a program)

15 CPU The brain of the computer CPU Central Processing Unit Q: What does a CPU do? Q: How does a CPU work?

16 CPU The brain of the computer Instruction (input) Result (output) CPU Central Processing Unit Q: What does a CPU do? Q: How does a CPU work?

17 CPU The brain of the computer Instruction (input) Result (output) That s what we want to write the instructions for a computer so that when the computer runs our program the program behaves as designed

18 Our goals Overview of the Course Write a program that prints Hello world to the screen Write a program to store and display your name and age

19 Our goals Overview of the Course Write a program that prints Hello world to the screen Write a program to store and display your name and age AI Write a program to predict what clothing you should wear

20 Our goals Overview of the Course Write a program that prints Hello world to the screen Write a program to store and display your name and age AI Write a program to predict what clothing you should wear Write a program that prints your name to the screen using turtles DEMO

21 The programming language that we ll be using

22 print Luckily, python has many built in functions these are features of a program that somebody else has written, and which you will use to build your custom program One of the most basic function is named print here s how you use it

23 Variables Variables are one of the most basic parts of ANY program and ANY programming language why do we need them?

24 Variables Variables are one of the most basic parts of ANY program and ANY programming language why do we need them? Computers are really good at storing (and remembering ) information (data). Humans on the other hand are pretty lousy at it

25 Variables Q: how does a computer program remember things A variable is a name that refers to a value. Computers can store (remember) many values, hence a program can have many (millions, if the conditions are right), of variables When you (a human) try to remember something, you make associations

26 Variables Q: how does a computer program remember things A variable is a name that refers to a value. Computers can store (remember) many values, hence a program can have many (millions, if the conditions are right), of variables When you (a human) try to remember something, you make associations My mom s hair color is blond My dog s name is Emma I teach at WWU

27 Variables Q: how does a computer program remember things A variable is a name that refers to a value. Computers can store (remember) many values, hence a program can have many (millions, if the conditions are right), of variables When you (a human) try to remember something, you make associations My mom s hair color My mom s hair color is blond My dog s name is Emma I teach at WWU My dog s name I teach at EMMA

28 Variables Q: how does a computer program remember things A variable is a name that refers to a value. Computers can store (remember) many values, hence a program can have many (millions, if the conditions are right), of variables It is a three step process you must come up with a name for a variable, and assign it a value

29 Variables Q: how does a computer program remember things A variable is a name that refers to a value. Computers can store (remember) many values, hence a program can have many (millions, if the conditions are right), of variables Step 1 come up with variable names Q: What are good variable names to hold the data blond, Emma and 34 My mom s hair color My dog s name EMMA 34 My favorite number

30 Variables Q: how does a computer program remember things A variable is a name that refers to a value. Computers can store (remember) many values, hence a program can have many (millions, if the conditions are right), of variables mymomshaircolor My mom s hair color mydogsname My dog s name EMMA favenum My favorite number 34

31 Variables Q: how does a computer program remember things A variable is a name that refers to a value. Computers can store (remember) many values, hence a program can have many (millions, if the conditions are right), of variables mymomshaircolor mydogsname favenum Step 2 : use the assignment operator to set the value of a variable My mom s hair color My dog s name EMMA 34 My favorite number

32 Variables Q: how does a computer program remember things A variable is a name that refers to a value. Computers can store (remember) many values, hence a program can have many (millions, if the conditions are right), of variables mymomshaircolor = My mom s hair color mydogsname = My dog s name EMMA favenum = My favorite number 34

33 Variables Q: how does a computer program remember things A variable is a name that refers to a value. Computers can store (remember) many values, hence a program can have many (millions, if the conditions are right), of variables mymomshaircolor = My mom s hair color mydogsname = favenum = Step 3 : to the right of the assignment operation you place the value that you want to assign to the variable name on the left My dog s name EMMA My favorite number 34

34 Variables Q: how does a computer program remember things A variable is a name that refers to a value. Computers can store (remember) many values, hence a program can have many (millions, if the conditions are right), of variables mymomshaircolor = blond mydogsname = Emma favenum = 34 Now you can use the variable in your program, and the computer will know it is referring to the data that you assigned to that variable

35 Variables Putting it all together, what does the below program do when you run it?

36 The input function One other important function in python is named input Use it to ask the user to provide an answer to a question, which you can then store in a variable

37 Doing something over and over again Humans are also really good at making mistakes if we are tired or doing something over and over again but computers are REALLY good at doing something over and over again Write a program that prints Hello 9 times But there s an easier way!

38 Doing something over and over again Humans are also really good at making mistakes if we are tired or doing something over and over again but computers are REALLY good at doing something over and over again Write a program that prints Hello 9 times But there s an easier way!

39 Doing something over and over again Humans are also really good at making mistakes if we are tired or doing something over and over again but computers are REALLY good at doing something over and over again Write a program that prints Hello 9 times But there s an easier way!

40 Doing something over and over again Humans are also really good at making mistakes if we are tired or doing something over and over again but computers are REALLY good at doing something over and over again Write a program that prints Hello 9 times But there s an easier way!

41 Doing something over and over again Humans are also really good at making mistakes if we are tired or doing something over and over again but computers are REALLY good at doing something over and over again Write a program that prints Hello 9 times But there s an easier way!

42 Doing something over and over again Humans are also really good at making mistakes if we are tired or doing something over and over again but computers are REALLY good at doing something over and over again Write a program that prints Hello 9 times But there s an easier way!

43 Doing something over and over again For this morning s task, write a program that asks you to input your name, your age, and prints that information to the screen 15 times

44 Conditional One neat thing about programs is that they seem to be smart Goal : Write a program that will tell you want clothing to wear

45 Conditional One neat thing about programs is that they seem to be smart Goal : Write a program that will tell you want clothing to wear If you want your program to be intelligent, use if

46 Conditional One neat thing about programs is that they seem to be smart Goal : Write a program that will tell you want clothing to wear age = int(input( what is your age )) if (age > 10) : print( you are older than 10 years )

47 Conditional One neat thing about programs is that they seem to be smart Goal : Write a program that will tell you want clothing to wear age = int(input( what is your age )) if (age > 10) : print( you are older than 10 years ) If the input is a number, use the int function in combination with input

48 Conditional One neat thing about programs is that they seem to be smart Goal : Write a program that will tell you want clothing to wear age = int(input( what is your age )) if (age > 10) : print( you are older than 10 years ) The if is used to check whether something is true or not

49 Conditional One neat thing about programs is that they seem to be smart Goal : Write a program that will tell you want clothing to wear age = int(input( what is your age )) if (age > 10) : print( you are older than 10 years ) The code inside the if is run ONLY If the if statement was true

50 Conditional One neat thing about programs is that they seem to be smart Goal : Write a program that will tell you want clothing to wear age = int(input( what is your age )) if (age > 10) : print( you are older than 10 years ) raining= input( is it raining ) temp = int(input( what is the temp )) if (raining == yes and temp < 40) : print( wear a hat, globes, and jacket! )

51 Conditional One neat thing about programs is that they seem to be smart Goal : Write a program that will tell you want clothing to wear age = int(input( what is your age )) if (age > 10) : print( you are older than 10 years ) raining= input( is it raining ) temp = int(input( what is the temp )) if (raining == yes and temp < 40) : print( wear a hat, globes, and jacket! ) Check the value of a variable by using the double equal sign!

52 Conditional One neat thing about programs is that they seem to be smart Goal : Write a program that will tell you want clothing to wear age = int(input( what is your age )) if (age > 10) : print( you are older than 10 years ) raining= input( is it raining ) temp = int(input( what is the temp )) if (raining == yes and temp < 40) : print( wear a hat, globes, and jacket! ) Use and to check the values of several things. The above code checks if the variable raining has the value yes and the temperature is less than 40

53 Doing something over and over again For your second program, you ll write a program that asks what temperature it is and whether it is raining, and it will tell you what clothing to wear!

54 Up Next Hands-on exercises in the lab!

Lecture 01 & 02 Computer Programming

Lecture 01 & 02 Computer Programming Lecture 01 & 02 Computer Programming 15 Computer Systems Engineering Second Semester By: Mr. Ali Asghar Manjotho, Lecturer, CSE-MUET Contents Computer programming (LL 02) Why programming? (LL 02) Instructions

More information

Text Input and Conditionals

Text Input and Conditionals Text Input and Conditionals Text Input Many programs allow the user to enter information, like a username and password. Python makes taking input from the user seamless with a single line of code: input()

More information

ASCII Art. Introduction: Python

ASCII Art. Introduction: Python Python 1 ASCII Art All Code Clubs must be registered. Registered clubs appear on the map at codeclub.org.uk - if your club is not on the map then visit jumpto.cc/18cplpy to find out what to do. Introduction:

More information

CSCI 141 Computer Programming I. Filip Jagodzinski

CSCI 141 Computer Programming I. Filip Jagodzinski Filip Jagodzinski Announcement Using online resources for help I want you to learn from others I want you to learn how to use (good) online resources Learning on your own is a good thing Announcement Using

More information

Decisions, Decisions. Testing, testing C H A P T E R 7

Decisions, Decisions. Testing, testing C H A P T E R 7 C H A P T E R 7 In the first few chapters, we saw some of the basic building blocks of a program. We can now make a program with input, processing, and output. We can even make our input and output a little

More information

CMSC 201 Computer Science I for Majors

CMSC 201 Computer Science I for Majors CMSC 201 Computer Science I for Majors Lecture 02 Intro to Python Syllabus Last Class We Covered Grading scheme Academic Integrity Policy (Collaboration Policy) Getting Help Office hours Programming Mindset

More information

Software Compare and Contrast

Software Compare and Contrast Microsoft Software Compare and Contrast Word Easy to navigate. Compatible with all PC computers. Very versatile. There are lots of templates that can be used to create flyers, calendars, resumes, etc.

More information

I m going to be introducing you to ergonomics More specifically ergonomics in terms of designing touch interfaces for mobile devices I m going to be

I m going to be introducing you to ergonomics More specifically ergonomics in terms of designing touch interfaces for mobile devices I m going to be I m going to be introducing you to ergonomics More specifically ergonomics in terms of designing touch interfaces for mobile devices I m going to be talking about how we hold and interact our mobile devices

More information

Getting Started. Excerpted from Hello World! Computer Programming for Kids and Other Beginners

Getting Started. Excerpted from Hello World! Computer Programming for Kids and Other Beginners Getting Started Excerpted from Hello World! Computer Programming for Kids and Other Beginners EARLY ACCESS EDITION Warren D. Sande and Carter Sande MEAP Release: May 2008 Softbound print: November 2008

More information

Unit E Step-by-Step: Programming with Python

Unit E Step-by-Step: Programming with Python Unit E Step-by-Step: Programming with Python Computer Concepts 2016 ENHANCED EDITION 1 Unit Contents Section A: Hello World! Python Style Section B: The Wacky Word Game Section C: Build Your Own Calculator

More information

Programming with Python

Programming with Python Programming with Python Dr Ben Dudson Department of Physics, University of York 21st January 2011 http://www-users.york.ac.uk/ bd512/teaching.shtml Dr Ben Dudson Introduction to Programming - Lecture 2

More information

Lecture 1. Course Overview, Python Basics

Lecture 1. Course Overview, Python Basics Lecture 1 Course Overview, Python Basics We Are Very Full! Lectures are at fire-code capacity. We cannot add sections or seats to lectures You may have to wait until someone drops No auditors are allowed

More information

CS 177 Recitation. Week 1 Intro to Java

CS 177 Recitation. Week 1 Intro to Java CS 177 Recitation Week 1 Intro to Java Questions? Computers Computers can do really complex stuff. How? By manipulating data according to lists of instructions. Fundamentally, this is all that a computer

More information

roboturtle Documentation

roboturtle Documentation roboturtle Documentation Release 0.1 Nicholas A. Del Grosso November 28, 2016 Contents 1 Micro-Workshop 1: Introduction to Python with Turtle Graphics 3 1.1 Workshop Description..........................................

More information

Python for Non-programmers

Python for Non-programmers Python for Non-programmers A Gentle Introduction 1 Yann Tambouret Scientific Computing and Visualization Information Services & Technology Boston University 111 Cummington St. yannpaul@bu.edu Winter 2013

More information

How to approach a computational problem

How to approach a computational problem How to approach a computational problem A lot of people find computer programming difficult, especially when they first get started with it. Sometimes the problems are problems specifically related to

More information

Lecture 1. Course Overview, Python Basics

Lecture 1. Course Overview, Python Basics Lecture 1 Course Overview, Python Basics We Are Very Full! Lectures and Labs are at fire-code capacity We cannot add sections or seats to lectures You may have to wait until someone drops No auditors are

More information

Bits and Bytes. Here is a sort of glossary of computer buzzwords you will encounter in computer use:

Bits and Bytes. Here is a sort of glossary of computer buzzwords you will encounter in computer use: Bits and Bytes Here is a sort of glossary of computer buzzwords you will encounter in computer use: Bit Computer processors can only tell if a wire is on or off. Luckily, they can look at lots of wires

More information

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller Table of Contents Introduction!... 1 Part 1: Entering Data!... 2 1.a: Typing!... 2 1.b: Editing

More information

CS106 Lab 1: Getting started with Python, Linux, and Canopy. A. Using the interpreter as a fancy calculator

CS106 Lab 1: Getting started with Python, Linux, and Canopy. A. Using the interpreter as a fancy calculator CS106 Lab 1: Getting started with Python, Linux, and Canopy Dr. Victor Norman Goals: To learn How python can be used interactively for simple computational tasks. How to run Canopy Start playing with Turtle

More information

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming Intro to Programming Unit 7 Intro to Programming 1 What is Programming? 1. Programming Languages 2. Markup vs. Programming 1. Introduction 2. Print Statement 3. Strings 4. Types and Values 5. Math Externals

More information

Branches, Conditional Statements

Branches, Conditional Statements Branches, Conditional Statements Branches, Conditional Statements A conditional statement lets you execute lines of code if some condition is met. There are 3 general forms in MATLAB: if if/else if/elseif/else

More information

Programming for Kids

Programming for Kids Programming for Kids Peter Armstrong This book is for sale at http://leanpub.com/programmingforkids This version was published on 2016-05-08 This is a Leanpub book. Leanpub empowers authors and publishers

More information

Hello World! Computer Programming for Kids and Other Beginners. Chapter 1. by Warren Sande and Carter Sande. Copyright 2009 Manning Publications

Hello World! Computer Programming for Kids and Other Beginners. Chapter 1. by Warren Sande and Carter Sande. Copyright 2009 Manning Publications Hello World! Computer Programming for Kids and Other Beginners by Warren Sande and Carter Sande Chapter 1 Copyright 2009 Manning Publications brief contents Preface xiii Acknowledgments xix About this

More information

Intro to Python & Programming. C-START Python PD Workshop

Intro to Python & Programming. C-START Python PD Workshop Don t just buy a new video game, make one. Don t just download the latest app, help design it. Don t just play on your phone, program it. No one is born a computer scientist, but with a little hard work

More information

#2 Madlibs. Print out a story using the five variables into a text box. Make a procedure called madlibs that works with a Main and a Start procedure.

#2 Madlibs. Print out a story using the five variables into a text box. Make a procedure called madlibs that works with a Main and a Start procedure. #2 Madlibs We are going to work on a new project, a game called Madlibs. It will give us some more practice dealing with variables. We are going to follow a defined set of steps in programming this. They

More information

: Intro Programming for Scientists and Engineers Assignment 1: Turtle Graphics

: Intro Programming for Scientists and Engineers Assignment 1: Turtle Graphics Assignment 1: Turtle Graphics Page 1 600.112: Intro Programming for Scientists and Engineers Assignment 1: Turtle Graphics Peter H. Fröhlich phf@cs.jhu.edu Joanne Selinski joanne@cs.jhu.edu Due Date: Wednesdays

More information

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #29 Arrays in C

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #29 Arrays in C Introduction to Programming in C Department of Computer Science and Engineering Lecture No. #29 Arrays in C (Refer Slide Time: 00:08) This session will learn about arrays in C. Now, what is the word array

More information

Introduction to Computer Science with Python Course Syllabus

Introduction to Computer Science with Python Course Syllabus CodeHS Introduction to Computer Science with Python Course Syllabus Course Overview and Goals The CodeHS Introduction to Computer Science in Python course teaches the fundamentals of computer programming

More information

Math Day 2 Programming: How to make computers do math for you

Math Day 2 Programming: How to make computers do math for you Math Day 2 Programming: How to make computers do math for you Matt Coles February 10, 2015 1 Intro to Python (15min) Python is an example of a programming language. There are many programming languages.

More information

Writing your own Comparators

Writing your own Comparators 1 Writing your own Comparators Sorting is a fundamental problem in computer science. In many applications, it is necessary to sort some data. When we design and implement our programs, three questions

More information

Coding Workshop. Learning to Program with an Arduino. Lecture Notes. Programming Introduction Values Assignment Arithmetic.

Coding Workshop. Learning to Program with an Arduino. Lecture Notes. Programming Introduction Values Assignment Arithmetic. Coding Workshop Learning to Program with an Arduino Lecture Notes Table of Contents Programming ntroduction Values Assignment Arithmetic Control Tests f Blocks For Blocks Functions Arduino Main Functions

More information

THE IF STATEMENT. The if statement is used to check a condition: if the condition is true, we run a block

THE IF STATEMENT. The if statement is used to check a condition: if the condition is true, we run a block THE IF STATEMENT The if statement is used to check a condition: if the condition is true, we run a block of statements (called the if-block), elsewe process another block of statements (called the else-block).

More information

If Statements, For Loops, Functions

If Statements, For Loops, Functions Fundamentals of Programming If Statements, For Loops, Functions Table of Contents Hello World Types of Variables Integers and Floats String Boolean Relational Operators Lists Conditionals If and Else Statements

More information

Lesson 4: Who Goes There?

Lesson 4: Who Goes There? Lesson 4: Who Goes There? In this lesson we will write a program that asks for your name and a password, and prints a secret message if you give the right password. While doing this we will learn: 1. What

More information

Part 2: The Material PART 2

Part 2: The Material PART 2 PART 2 With the introduction of what an object is, now we are ready to learn the CONSTRUCTOR concept. Just to refresh our memory, let s take a look at what we have learned in part 1. A sample class declaration,

More information

CSCI 447 Operating Systems Filip Jagodzinski

CSCI 447 Operating Systems Filip Jagodzinski Filip Jagodzinski Norms Q1: Num Programs written Q2: Semaphores provide a get() function Q3: Dream Job : computer penetration tester, security, democratic electoral system design, machine learning for

More information

(Python) Chapter 3: Repetition

(Python) Chapter 3: Repetition (Python) Chapter 3: Repetition 3.1 while loop Motivation Using our current set of tools, repeating a simple statement many times is tedious. The only item we can currently repeat easily is printing the

More information

Exercise 6 - Addressing a Message

Exercise 6 - Addressing a Message Exercise 6 - Addressing a Message All e-mail messages have to include an address for an e-mail to be delivered, just as a normal letter has to have a house address. An e-mail address is made up of: a user

More information

Make a Guessing Game with Python

Make a Guessing Game with Python In computer-land, information from the outside world is called the input. The software takes the input, and after doing clever things to it, it produces an output. Information in general is called data,

More information

We created a few different effects and animations using this technique as applied to clones.

We created a few different effects and animations using this technique as applied to clones. Contents Scratch Advanced: Tick technique and Clones... 1 The tick-technique!... 1 Part 1: The Game Time Loop... 1 Part 2: The setup... 2 Part 3: The sprites react to each game tick... 2 The Spinning Shape

More information

Chapter 1. Data types. Data types. In this chapter you will: learn about data types. learn about tuples, lists and dictionaries

Chapter 1. Data types. Data types. In this chapter you will: learn about data types. learn about tuples, lists and dictionaries Chapter 1 Data types In this chapter you will: learn about data types learn about tuples, lists and dictionaries make a magic card trick app. Data types In Python Basics you were introduced to strings

More information

Intro. Scheme Basics. scm> 5 5. scm>

Intro. Scheme Basics. scm> 5 5. scm> Intro Let s take some time to talk about LISP. It stands for LISt Processing a way of coding using only lists! It sounds pretty radical, and it is. There are lots of cool things to know about LISP; if

More information

Overview. Lab 5 Methods and Parameters

Overview. Lab 5 Methods and Parameters Lab 5 Methods and Parameters Overview At this point in the course, you should have a set of skills which allow you to create functionality at the level of using control structures like if statements and

More information

Windows 7 Tutorial For Beginners Games Full Version

Windows 7 Tutorial For Beginners Games Full Version Windows 7 Tutorial For Beginners Games Full Version Can anyone please recommend a safe site for downloading free (and not played online) games such as backgammon and poker? I found Gametop. Your PC has

More information

Users and Usability Principles

Users and Usability Principles Users and Usability Principles CS 4640 Programming Languages for Web Applications [Jakob Nielsen and Hoa Loranger, Prioritizing Web Usability ] [Nielsen Norman Group, https://www.nngroup.com/articles/usability-101-introduction-to-usability/]

More information

Lab #2 Physics 91SI Spring 2013

Lab #2 Physics 91SI Spring 2013 Lab #2 Physics 91SI Spring 2013 Objective: Some more experience with advanced UNIX concepts, such as redirecting and piping. You will also explore the usefulness of Mercurial version control and how to

More information

Switching Weapons from One Mesh to Another with NifSkope

Switching Weapons from One Mesh to Another with NifSkope Switching Weapons from One Mesh to Another with NifSkope Things you need: 1.) Freedom Force vs the 3 rd Reich. 2.) NifSkope: http://sourceforge.net/projects/niftools/files/nifskope/1.1.3/ 3.) A Graphics

More information

In order to teach you about computer programming, I am going to make several assumptions from the start:

In order to teach you about computer programming, I am going to make several assumptions from the start: How Java Works by Marshall Brain Have you ever wondered how computer programs work? Have you ever wanted to learn how to write your own computer programs? Whether you are 14 years old and hoping to learn

More information

PYTHON YEAR 10 RESOURCE. Practical 01: Printing to the Shell KS3. Integrated Development Environment

PYTHON YEAR 10 RESOURCE. Practical 01: Printing to the Shell KS3. Integrated Development Environment Practical 01: Printing to the Shell To program in Python you need the latest version of Python, which is freely available at www.python.org. Your school will have this installed on the computers for you,

More information

Lecture. Algorithm Design and Recursion. Richard E Sarkis CSC 161: The Art of Programming

Lecture. Algorithm Design and Recursion. Richard E Sarkis CSC 161: The Art of Programming Lecture Algorithm Design and Recursion Richard E Sarkis CSC 161: The Art of Programming Class Administrivia Objectives To understand the basic techniques for analyzing the efficiency of algorithms To know

More information

CSCI-1200 Data Structures Fall 2018 Lecture 5 Pointers, Arrays, & Pointer Arithmetic

CSCI-1200 Data Structures Fall 2018 Lecture 5 Pointers, Arrays, & Pointer Arithmetic CSCI-1200 Data Structures Fall 2018 Lecture 5 Pointers, Arrays, & Pointer Arithmetic Announcements: Test 1 Information Test 1 will be held Thursday, Sept 20th, 2018 from 6-7:50pm Students will be randomly

More information

Boolean Expressions. Is Equal and Is Not Equal

Boolean Expressions. Is Equal and Is Not Equal 3 MAKING CHOICES Now that we ve covered how to create constants and variables, you re ready to learn how to tell your computer to make choices. This chapter is about controlling the flow of a computer

More information

RouterCheck Installation and Usage

RouterCheck Installation and Usage RouterCheck Installation and Usage February 16, 2015 No part of this document may be reproduced, copied, or distributed in any fashion without the express written permission of Sericon Technology Inc.

More information

CS61B Lecture #3. Homework: Please see Homework #1 on the lab page. Last modified: Wed Sep 10 20:34: CS61B: Lecture #3 1

CS61B Lecture #3. Homework: Please see Homework #1 on the lab page. Last modified: Wed Sep 10 20:34: CS61B: Lecture #3 1 CS61B Lecture #3 Reading: Please read Chapter4of the readerajava Reference for Friday (on Values, Types, and Containers). Labs: We are forgiving during the first week, but try to get your lab1 submitted

More information

[PDF] Hacking: The Ultimate Beginners Guide To The World Of Hacking

[PDF] Hacking: The Ultimate Beginners Guide To The World Of Hacking [PDF] Hacking: The Ultimate Beginners Guide To The World Of Hacking In the world of information technology (IT), hacking is the manipulation of the normal behavior of network connections, systems and computer

More information

Boolean Expressions. Is Equal and Is Not Equal

Boolean Expressions. Is Equal and Is Not Equal 3 MAKING CHOICES ow that we ve covered how to create constants and variables, you re ready to learn how to tell your computer to make choices. This chapter is about controlling the flow of a computer program

More information

SLACK. What is it? How do I use It?

SLACK. What is it? How do I use It? SLACK What is it? How do I use It? What is Slack? It s a chat room for our whole chapter. If you ve heard of Internet Relay Chat (IRC) or WhatsApp before, it s fairly similar. The chapter s Slack is divided

More information

CSE 115. Introduction to Computer Science I

CSE 115. Introduction to Computer Science I CSE 115 Introduction to Computer Science I Note about posted slides The slides we post will sometimes contain additional slides/content, beyond what was presented in any one lecture. We do this so the

More information

Molecular Statistics Exercise 1. As was shown to you this morning, the interactive python shell can add, subtract, multiply and divide numbers.

Molecular Statistics Exercise 1. As was shown to you this morning, the interactive python shell can add, subtract, multiply and divide numbers. Molecular Statistics Exercise 1 Introduction This is the first exercise in the course Molecular Statistics. The exercises in this course are split in two parts. The first part of each exercise is a general

More information

Module 1: Crash Prevention Lesson 3: Weather Information systems Programming Activity Using Arduino Teacher Resource Grade 6-8 Time Required

Module 1: Crash Prevention Lesson 3: Weather Information systems Programming Activity Using Arduino Teacher Resource Grade 6-8 Time Required Module 1: Crash Prevention Lesson 3: Weather Information systems Programming Activity Using Arduino Teacher Resource Grade 6-8 Time Required Weather Information Systems is a 120 minute lesson plan (90

More information

Programming: Computer Programming For Beginners: Learn The Basics Of Java, SQL & C Edition (Coding, C Programming, Java Programming, SQL

Programming: Computer Programming For Beginners: Learn The Basics Of Java, SQL & C Edition (Coding, C Programming, Java Programming, SQL Programming: Computer Programming For Beginners: Learn The Basics Of Java, SQL & C++ - 3. Edition (Coding, C Programming, Java Programming, SQL Programming, JavaScript, Python, PHP) PDF PLEASE NOTE: You

More information

2016 All Rights Reserved

2016 All Rights Reserved 2016 All Rights Reserved Table of Contents Chapter 1: The Truth About Safelists What is a Safelist Safelist myths busted Chapter 2: Getting Started What to look for before you join a Safelist Best Safelists

More information

Deep Learning for Visual Computing Prof. Debdoot Sheet Department of Electrical Engineering Indian Institute of Technology, Kharagpur

Deep Learning for Visual Computing Prof. Debdoot Sheet Department of Electrical Engineering Indian Institute of Technology, Kharagpur Deep Learning for Visual Computing Prof. Debdoot Sheet Department of Electrical Engineering Indian Institute of Technology, Kharagpur Lecture - 05 Classification with Perceptron Model So, welcome to today

More information

To practice overall problem-solving skills, as well as general design of a program

To practice overall problem-solving skills, as well as general design of a program Programming Assignment 5 Due March 27, 2015 at 11:59 PM Objectives To gain experience with file input/output techniques To gain experience with formatting output To practice overall problem-solving skills,

More information

Part 1 Simple Arithmetic

Part 1 Simple Arithmetic California State University, Sacramento College of Engineering and Computer Science Computer Science 10A: Accelerated Introduction to Programming Logic Activity B Variables, Assignments, and More Computers

More information

Outline: Search and Recursion (Ch13)

Outline: Search and Recursion (Ch13) Search and Recursion Michael Mandel Lecture 12 Methods in Computational Linguistics I The City University of New York, Graduate Center https://github.com/ling78100/lectureexamples/blob/master/lecture12final.ipynb

More information

Slide Set 15 (Complete)

Slide Set 15 (Complete) Slide Set 15 (Complete) for ENCM 339 Fall 2017 Section 01 Steve Norman, PhD, PEng Electrical & Computer Engineering Schulich School of Engineering University of Calgary November 2017 ENCM 339 Fall 2017

More information

DER GOBBLE. Good Secure Crypto Wallet Practices. What is your wallet?

DER GOBBLE. Good Secure Crypto Wallet Practices. What is your wallet? DER GOBBLE Good Secure Crypto Wallet Practices When it comes to crypto currencies and securing your money, the absolute best 99% guaranteed security for your wallets is YOU. You are the one that will expose

More information

Computer Graphics Prof. Sukhendu Das Dept. of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 14

Computer Graphics Prof. Sukhendu Das Dept. of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 14 Computer Graphics Prof. Sukhendu Das Dept. of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 14 Scan Converting Lines, Circles and Ellipses Hello everybody, welcome again

More information

notice the '' you must have those around character values, they are not needed for integers or decimals.

notice the '' you must have those around character values, they are not needed for integers or decimals. C programming for the complete newbie Hello there im Krisis you may have seen me on irc.hackersclub.com. Well I thought it was about time to write an article like everyone else. But unlike many others

More information

BCS Raspberry Pi Launch Events Getting started with Raspberry Pi

BCS Raspberry Pi Launch Events Getting started with Raspberry Pi BCS Raspberry Pi Launch Events Getting started with Raspberry Pi Department of Computer Science 16 th & 17 th April 2013 Who are you? How many of you.. are teachers in STEM subjects in non STEM subjects

More information

COMP 122/L Lecture 1. Kyle Dewey

COMP 122/L Lecture 1. Kyle Dewey COMP 122/L Lecture 1 Kyle Dewey About Me I research automated testing techniques and their intersection with CS education This is my first semester at CSUN Third time teaching this content About this Class

More information

public class Test { public static int i = 0;

public class Test { public static int i = 0; Lec 25 Conclusion public class Test { public static int i = 0; public static void main(string[] args) { Test t = new Test(i++); String s = "hi"; t.method1(i, s); System.out.println(i + s); } public Test(int

More information

Functions and Decomposition

Functions and Decomposition Unit 4 Functions and Decomposition Learning Outcomes Design and implement functions to carry out a particular task. Begin to evaluate when it is necessary to split some work into functions. Locate the

More information

CS Summer 2013

CS Summer 2013 CS 1110 - Summer 2013 intro to programming -- how to think like a robot :) we use the Python* language (www.python.org) programming environments (many choices): Eclipse (free from www.eclipse.org), or

More information

Credit: The lecture slides are created based on previous lecture slides by Dan Zingaro.

Credit: The lecture slides are created based on previous lecture slides by Dan Zingaro. CSC148 2018 Here 1 Credit: The lecture slides are created based on previous lecture slides by Dan Zingaro. 2 Larry Zhang Office: DH-3042 Email: ylzhang@cs.toronto.edu 3 The teaching team Dan Zingaro: LEC0103

More information

To become familiar with array manipulation, searching, and sorting.

To become familiar with array manipulation, searching, and sorting. ELECTRICAL AND COMPUTER ENGINEERING 06-88-211: COMPUTER AIDED ANALYSIS LABORATORY EXPERIMENT #2: INTRODUCTION TO ARRAYS SID: OBJECTIVE: SECTIONS: Total Mark (out of 20): To become familiar with array manipulation,

More information

10 Design: Which classes must be included?

10 Design: Which classes must be included? Decorator Pattern 1 10 Design: Which classes must be included? Story As a user I want a weekend planner so that I can have more fun Scenario Given that I have made a plan When Saturday arrives Then Send

More information

MA 1128: Lecture 02 1/22/2018

MA 1128: Lecture 02 1/22/2018 MA 1128: Lecture 02 1/22/2018 Exponents Scientific Notation 1 Exponents Exponents are used to indicate how many copies of a number are to be multiplied together. For example, I like to deal with the signs

More information

THE 18 POINT CHECKLIST TO BUILDING THE PERFECT LANDING PAGE

THE 18 POINT CHECKLIST TO BUILDING THE PERFECT LANDING PAGE THE 18 POINT CHECKLIST TO BUILDING THE PERFECT LANDING PAGE The 18 point checklist to building the Perfect landing page Landing pages come in all shapes and sizes. They re your metaphorical shop front

More information

Python Games. Session 1 By Declan Fox

Python Games. Session 1 By Declan Fox Python Games Session 1 By Declan Fox Rules General Information Wi-Fi Name: CoderDojo Password: coderdojowireless Website: http://cdathenry.wordpress.com/ Plans for this year Command line interface at first

More information

So computers can't think in the same way that people do. But what they do, they do excellently well and very, very fast.

So computers can't think in the same way that people do. But what they do, they do excellently well and very, very fast. Input What is Processing? Processing Output Processing is the thinking that the computer does - the calculations, comparisons, and decisions. Storage People also process data. What you see and hear and

More information

David Werth IDEAS Design & Grayout Aerosports Albuquerque, q NM & Indianapolis, IN

David Werth IDEAS Design & Grayout Aerosports Albuquerque, q NM & Indianapolis, IN 1 David Werth IDEAS Design & Grayout Aerosports Albuquerque, q NM & Indianapolis, IN Dave@IDEASDesigninc.com Dave@GrayOut.com Moderator: (Jacquie Warda) (Jacquie B Airshows) 2 Founder and CEO of IDEAS

More information

Note: This is a miniassignment and the grading is automated. If you do not submit it correctly, you will receive at most half credit.

Note: This is a miniassignment and the grading is automated. If you do not submit it correctly, you will receive at most half credit. Com S 227 Fall 2017 Miniassignment 1 50 points Due Date: Monday, October 16, 11:59 pm (midnight) Late deadline (25% penalty): Tuesday, October 17, 11:59 pm General information This assignment is to be

More information

Introduction to Programming in Turing. Input, Output, and Variables

Introduction to Programming in Turing. Input, Output, and Variables Introduction to Programming in Turing Input, Output, and Variables The IPO Model The most basic model for a computer system is the Input-Processing-Output (IPO) Model. In order to interact with the computer

More information

CS1110 Lab 6 (Mar 17-18, 2015)

CS1110 Lab 6 (Mar 17-18, 2015) CS1110 Lab 6 (Mar 17-18, 2015) First Name: Last Name: NetID: The lab assignments are very important and you must have a CS 1110 course consultant tell CMS that you did the work. (Correctness does not matter.)

More information

6.S189 Homework 1. What to turn in. Exercise 1.1 Installing Python. Exercise 1.2 Hello, world!

6.S189 Homework 1. What to turn in. Exercise 1.1 Installing Python. Exercise 1.2 Hello, world! 6.S189 Homework 1 http://web.mit.edu/6.189/www/materials.html What to turn in Do the warm-up problems for Days 1 & 2 on the online tutor. Complete the problems below on your computer and get a checkoff

More information

(Refer Slide Time: 1:12)

(Refer Slide Time: 1:12) Mobile Computing Professor Pushpendra Singh Indraprastha Institute of Information Technology Delhi Lecture 06 Android Studio Setup Hello, today s lecture is your first lecture to watch android development.

More information

Quick Guide. Choose It Maker 2. Overview/Introduction. ChooseIt!Maker2 is a motivating program at first because of the visual and musical

Quick Guide. Choose It Maker 2. Overview/Introduction. ChooseIt!Maker2 is a motivating program at first because of the visual and musical Choose It Maker 2 Quick Guide Created 09/06 Updated SM Overview/Introduction This is a simple to use piece of software that can be tailored for use by children as an alternative to a pencil and paper worksheet,

More information

Lab #1: A Quick Introduction to the Eclipse IDE

Lab #1: A Quick Introduction to the Eclipse IDE Lab #1: A Quick Introduction to the Eclipse IDE Eclipse is an integrated development environment (IDE) for Java programming. Actually, it is capable of much more than just compiling Java programs but that

More information

Course Overview, Python Basics

Course Overview, Python Basics CS 1110: Introduction to Computing Using Python Lecture 1 Course Overview, Python Basics [Andersen, Gries, Lee, Marschner, Van Loan, White] Interlude: Why learn to program? (which is subtly distinct from,

More information

CMSC 201 Fall 2017 Lab 12 File I/O

CMSC 201 Fall 2017 Lab 12 File I/O CMSC 201 Fall 2017 Lab 12 File I/O Assignment: Lab 12 File I/O Due Date: During discussion, November 27th through November 30th Value: 10 points (8 points during lab, 2 points for Pre Lab quiz) This week

More information

Module 6. Campaign Layering

Module 6.  Campaign Layering Module 6 Email Campaign Layering Slide 1 Hello everyone, it is Andy Mackow and in today s training, I am going to teach you a deeper level of writing your email campaign. I and I am calling this Email

More information

From video conversation 2. This is a gap fill exercise and can be used as either a quiz/test of

From video conversation 2. This is a gap fill exercise and can be used as either a quiz/test of Teacher s guide to the quizzes/tests available for Unit 4 Quiz 1 Quiz 2 Quiz 3 Quiz 4 From video conversation 1. This is a gap fill exercise and can be used as either a quiz/test of target language acquisition,

More information

Section 0.3 The Order of Operations

Section 0.3 The Order of Operations Section 0.3 The Contents: Evaluating an Expression Grouping Symbols OPERATIONS The Distributive Property Answers Focus Exercises Let s be reminded of those operations seen thus far in the course: Operation

More information

Spectroscopic Analysis: Peak Detector

Spectroscopic Analysis: Peak Detector Electronics and Instrumentation Laboratory Sacramento State Physics Department Spectroscopic Analysis: Peak Detector Purpose: The purpose of this experiment is a common sort of experiment in spectroscopy.

More information

Servers & Developers. Julian Nadeau Production Engineer

Servers & Developers. Julian Nadeau Production Engineer Servers & Developers Julian Nadeau Production Engineer Provisioning & Orchestration of Servers Setting a server up Packer - one server at a time Chef - all servers at once Containerization What are Containers?

More information

marketing versus marketing automation What s the difference and why should B2B marketers care?

marketing versus marketing automation What s the difference and why should B2B marketers care? email marketing versus marketing automation What s the difference and why should B2B marketers care? who is this white paper for? You re a B2B marketer in a company that s been using email marketing for

More information

In this project, you ll learn how to use a turtle to draw awesome shapes and patterns.

In this project, you ll learn how to use a turtle to draw awesome shapes and patterns. Turtle Power Introduction: In this project, you ll learn how to use a turtle to draw awesome shapes and patterns. Step 1: Hello, turtle! We re going to have some fun programming turtles. A turtle is a

More information