Foundations of Computer Science Laboratory

Size: px
Start display at page:

Download "Foundations of Computer Science Laboratory"

Transcription

1 Foundations of Computer Science Laboratory LOGO Programming Purpose In previous labs you experienced an imperative language (Karel) and a logic language (Prolog). In this lab you will learn a functional List-Processing Language LOGO. Next week, you will learn to use LOGO as a language for robot control. In the final lab, you will build a robotic machine and use a computer to control it with the language LOGO as the programming language. Method Read these instructions very carefully, and answer the questions on the answer sheet which your instructor will hand out in lab. Turn in the answer sheet at the conclusion of lab. If you do not finish, complete the questions as homework and turn in the sheet at the beginning of next week s lab. There will not be an opportunity during next week s lab to complete this lab. LOGO - An Overview LOGO is often thought to be a "kid's language" for making "turtle pictures." This is partially true; LOGO has an excellent turtle- graphics facility. But LOGO is more than an electronic etch-a-sketch, it is also a list-processing language, a simplified Lisp. Lisp and Prolog are the two most common AI languages. LOGO has many built-in functions and procedures. They are used to accomplish a task and often to report (return) information to another routine. The language uses lists - groups of objects in a sequence. A list of numbers could be written as [ ] and a list of strings could be [ My name is Bill Taffe]. Lists are created and passed from routine to routine each of which perform some process on the list. Logo is rich in processes and it has a full complement of control structures. Although it can do arithmetic, it does so very differently from procedural languages like BASIC, FORTRAN, C++ or Java. For example, the assignment statement is done as PseudoCode Java LOGO A <- 4 A = 4 Make "A 4 LOGO distinguishes the name of a piece of data from the data itself. When LOGO wants to refer to th name of something it precedes the variable name with a quotation mark (") as in the example above. On the other hand, when it wants to refer to the data stored in a variable's location, it precedes the variable name by a colon (:). So if we continued the example from above where a 4 was stored in location A and we wanted to put that in location B we would write: PseudoCode Java LOGO A <- B B = A Make "B :A LOGO has many other interesting features but rather than explain them - since this is a lab - you will learn them by trying them. Throughout these instructions whenever you see the symbol => it indicates that there is some action for you to take. Frequently it involves answering questions on the answer sheet. If you are not prompted by the symbol => then there is no action other than reading the lab sheet.

2 Turtle Graphics In today's lab, we will use both the turtle graphics and list-processing facilities but we ll use turtle graphics first. Turtle graphics is so named because it makes pictures by giving directions to a turtle who moves about the screen dragging its tail. Wherever the tail is dragged, a line is drawn. The commands a turtle can execute include: (n is a number) home moves the turtle to the center of the screen facing north (upward) rg reset graphics (erases the graphics screen and homes the turtle) fd n move forward n units bk n move backward n units rt n turn right n degrees lt n turn left n degrees pu pen up (lift the turtle's tail) pd pen down (lower the turtle's tail) setpos [x y] sets the x and y positions of the turtle seth n sets the heading of the turtle st show turtle - make the turtle visible ht hide turtle - hide the turtle - makes drawing faster show prints (on the screen) any information given to it such as pos or heading pos reports the turtle's x and y position (used with show as in show pos) heading reports the turtle's heading in degrees (used with show as in show heading) label allows the turtle to write something next to itself for ex. label "hello There are more graphics commands but this subset will suffice for a start. Now it is time to enter the LOGO system. We are using a version of logo developed by LOGO Computer Systems called LEGO TClogo. In the following instructions, anything enclosed in < > is to be typed exactly as printed without the < >. You can start LOGO from the sequence Start -> Class -> Foundations -> Logo. Once running, press enter to get past the opening screen and on the next screen use the down arrow and enter to select New Page. There are two parts to the screen - called pages in LEGO TClogo- the upper or procedure page where LOGO defines new procedures (similar to Define-New-Instruction in Karel), and the lower or command page. There are two cursors; the flashing one indicates the active page. When you first enter, the command page is active and and the procedure page has several procedure names on it. The active page can be changed by using the control key together with U or D. These are written as ^U or ^D. 2

3 Use ^D and ^U to switch active screens from the upper to lower and back again. The procedure page can be changed to the turtle page with the flip key - a control F (^F) which acts as a toggle (toggle means to flip back and forth). Toggle between the procedure and turtle pages. Show the turtle page rather than the procedure page and activate the command page <^D>. Try each of the graphics commands above and after you are familiar with each (about minutes), use these commands to move the turtle and figure out the answers to the Graphics Questions on the Answer Sheet. Procedures (or DEFINE-NEW-INSTRUCTION or teaching the turtle new commands) Change back from the turtle page to the procedure page <^F>. Following is a list of commands you will find useful when creating procedures: newpage creates a new page for procedures namepage "mypage gives the current procedures page the name mypage cleartext erases all text on the procedures page cc erases all text on the command page getpage "mypage saves the current page, clears the procedures page, and loads mypage onto the procedures page load "mypage adds the contents of file mypage to the current procedures page printtext prints all the procedures on the procedures page on the printer printscreen prints the graphics screen setdisk "drive sets the drive letter for saving and loading files, for ex. setdisk "m esc saves the current page and returns to the contents page dos saves the current page (and picture) and escapes to MSDOS Activate the command page <^D>. Create a newpage and name it geometry using the namepage command <namepage "geometry>. Activate the procedure page <^U> and enter the following text to create the procedure (new instruction) square: to square 3

4 Activate the command page and the turtle page Type the command <square> and watch the turtle! Move the turtle to position [-20-20] and execute square again Reset the graphics page <rg> and execute square again Create two more figures - to triangle and to trapezoid - test them and, when they work correctly, write the steps for "to triangle" on the question sheet under the Procedures Section of the Answer Sheet under column Original (don't worry about the "With Parameters column - that will come later). Unlike Karel, LOGO uses data - numbers, strings and lists. It is possible to create a procedure and give it information. For example we will create a square of arbitrary size and when square is executed, the size will be "passed" to the procedure. It is done like this. to square :size The information passed is called a parameter and the list of parameters passed (only :size in this case) is called a parameter list. Modify square as shown and try it Modify procedure triangle to include parameter passing and test it Write the changed procedure alongside the original in the procedures section of the questions under column With Parameters Control Structures LOGO has two branching instructions if <test> [true_list] ifelse <test> [true_list] [false_list] where <test> is a boolean test and true_list and false_list are lists of actions. LOGO has three logical instructions to enable the performance of complex boolean tasks. (read this part carefully) and (test1) (test2) or (test1) (test2) not (test) 4

5 These may be combined to create logical ANDs and ORs. For example, to write If A is greater than B and A is less than C you would write if and (:A > :B) (:A < :C) Thus we could create a procedure which operates only if the parameters were not too large. For example, we could have the turtle execute a square only if it were less than 75 on a side by: to square :size if :size < 75 [ ] Modify "to square" in this manner and try it Modify "to triangle" so that it executes only if the side is > 25 and < 75 and test it. {Hint: reread the syntax of the AND operator from the previous page.} Print the procedure on the printer by typing <printtext> - attach the output to your page question LOGO has two commands which are used for looping repeat n [list] stop repeats the instructions in the list n times stops the execution of the procedure and returns control to whatever called it The repeat command can be used to simplify our square procedure as follows: Original Simpler to square :size to square :size repeat 4 [] Modify square in this manner and try it Modify triangle, test it LOGO does not have a while <test> do <action>. Instead, it uses recursion and the stop command. If we wanted to create a whole group of squares, one inside the other we could create a procedure "to box" as follows: to box :side if :side < 10 [stop] square :side box :side - 5 5

6 If box is less than 10, the procedure stops executing and reverts to however it was called, but if it isn't the procedure draws a square and calls box again but with a side that is 5 smaller than the last call. Create a box using the above procedure It's time to the turtle graphics so Return to the contents page by pressing the escape key List Processing Now we will explore the list processing aspects of LOGO. List processing can be combined with turtle graphics to create power-turtles but for now we will explore list processing without graphics. LOGO is a simple version of the powerful LISt Processing language LISP. A useful subset of LOGO's list processing commands are: make "listname [list] creates a list with name "listname" thing "listname reports the contents of "listname" show :listname shows the contents of "listname" first :listname reports the first item in "listname last :listname reports the last item in "listname butfirst :listname reports the contents of "listname except for the first item butlast :listname reports the contents of "listname except for the last item word "one "two combines the strings one and two into one string sentence "one "two combines "one" and "two" into a list sentence :one :two combines the contents of lists "one" and "two" into one list fput "front :mylist reports a new list with "front" as a new item in front of "mylist" lput "back :mylist reports a new list with back as a new item at the back of "mylist" Now, practice some of these list processing commands by doing the following: Select newpage and name it lists <namepage "lists>. Create a list (named "mylist")... items of data, separated by spaces, enclosed in square brackets [] - <make "mylist [ ]>. Answer questions 1-6 in the List Processing Section of the Answer Sheet. There are also several commands to process items in a list. A subset of these commands is: count :listname counts the number of items in "listname empty? :listname reports whether the list is empty (true or false) identical? :list1 :list2 reports whether two lists are identical (true or false) item n :listname reports the nth item in "listname" member? "stuff :listname reports if "stuff" is a member of the list "listname" output :value causes a procedure to report a value - see example on p7 Answer questions 7-11 in the List Processing Section of the Answer Sheet. They will help you further investigate these commands. 6

7 Create the following procedure which adds the numbers in a list on the procedure page and answer question 12 in the List Processing Section of the Answer Sheet to add make "thelist [ ] make "sum 0 repeat 5 [ make "number first :thelist make "sum :sum + :number make "thelist allbutfirst :thelist] show :sum Now try a slight variation on this procedure. Change procedure add to: to add "thelist :sum make "sum 0 repeat 5 [make "number first :thelist make "sum :sum + :number make "thelist butfirst :thelist] output :sum Answer question 13. List I/O It is possible to cause lists to be typed or input from the command center. The commands to do this are: type :alist readlistcc causes the contents of "alist" to be printed in the command center reads a list from the command center and stores it temporarily in its own name Now for the last task. Modify procedure add so that you can put in the list from the command center using the "readlistcc" command. to add :sum make "sum 0 type [enter your list...] make "thelist readlistcc repeat 5 [ make "number first :thelist make "sum :sum + :number make "thelist butfirst :thelist] output :sum Answer question 14. 7

Downloaded from

Downloaded from Class IV COMPUTER SCIENCE WORKSHEET - Chapter 3, 7, 8 (August 2013-2014) Based on SA1 format. Answers will be uploaded later. Note: Q1. Fill in the blanks: 1. is the latest version of Windows. 2. is the

More information

A Full-Screen LogoWriter PrintShape Procedure by Thomas F. Trocco

A Full-Screen LogoWriter PrintShape Procedure by Thomas F. Trocco www.logofoundation.org A Full-Screen LogoWriter PrintShape Procedure by Thomas F. Trocco 1993 Thomas F. Trocco Computer & Science Department Chiar Computer Teacher, Grades 2-8 St. Hilda's & St. Hugh's

More information

INTRODUCTION TO DRAWING WITH LOGO A

INTRODUCTION TO DRAWING WITH LOGO A Chapter 8 INTRODUCTION TO DRAWING WITH LOGO A Laboratory Exercise By Robert Byerly and Gary A. Harris In this chapter we learn to use the graphical program MSWLogo. This is free software we down loaded

More information

Modelers can give instructions to hundreds or thousands of independent "agents" all operating in parallel.

Modelers can give instructions to hundreds or thousands of independent agents all operating in parallel. Netlogo! NetLogo is a programmable modeling environment for simulating complex systems. Modelers can give instructions to hundreds or thousands of independent "agents" all operating in parallel. This makes

More information

Unit Using Logo Year Group: 4 Number of Lessons: 4

Unit Using Logo Year Group: 4 Number of Lessons: 4 Unit 4.5 - Using Logo Year Group: 4 Number of Lessons: 4 Introduction The aim of the lessons is for the children to use Logo to follow and create simple algorithms. For the lessons, the children will need

More information

Art, Nature, and Patterns Introduction

Art, Nature, and Patterns Introduction Art, Nature, and Patterns Introduction to LOGO Describing patterns with symbols This tutorial is designed to introduce you to some basic LOGO commands as well as two fundamental and powerful principles

More information

ANSWER KEY. Chapter 1. Introduction to Computers

ANSWER KEY. Chapter 1. Introduction to Computers 3 ANSWER KEY Chapter 1. Introduction to Computers Exercises A. 1. c. 2. a. 3. b. 4. a. B. 1. False 2. True 3. True 4. True 5. False 6. True C. 1. Processing 2. Notebooks 3. Output 4. Data 5. PARAM D. 1.

More information

Ch- 3,NOTEPAD. Q2. Define the following. Notepad: Notepad is a basic text editor used for creating and editing text documents.

Ch- 3,NOTEPAD. Q2. Define the following. Notepad: Notepad is a basic text editor used for creating and editing text documents. Ch- 3,NOTEPAD Q1. Fill in the blanks. A. Extension for notepad files is.txt B. Backspace key is used to erase text typed on the left side of cursor and delete on the right side of cursor. C. File menu

More information

Welcome to the Turtle World of Logo

Welcome to the Turtle World of Logo Welcome to the Turtle World of Logo Type CS and press Enter to show your turtle. Its HOME is in the middle of the screen. Where is its head? Where is its tail? Your turtle is lazy. It will not move without

More information

ALL ABOUT COMPUTERS 3

ALL ABOUT COMPUTERS 3 Key to ALL ABOUT COMPUTERS 3 Keybooks are freely available at our website http://www.progresspublishers.com PROGRESS PUBLISHERS KRISHNA NAGAR, DELHI - 110051 EMAIL : progresspublishers@gmail.com 1. COMPUTER

More information

CLASS 3. Lesson 1: Know your Computer

CLASS 3. Lesson 1: Know your Computer CLASS 3 The Class 3 book deals with computer hardware and software, introduction to Windows 7, some advanced features of Paint, introduction to LOGO, mathematical operations in LOGO and introduction to

More information

Computer and Programming: Lab 1

Computer and Programming: Lab 1 01204111 Computer and Programming: Lab 1 Name ID Section Goals To get familiar with Wing IDE and learn common mistakes with programming in Python To practice using Python interactively through Python Shell

More information

L-System Fractal Generator: Language Reference Manual

L-System Fractal Generator: Language Reference Manual L-System Fractal Generator: Language Reference Manual Michael Eng, Jervis Muindi, Timothy Sun Contents 1 Program Definition 3 2 Lexical Conventions 3 2.1 Comments...............................................

More information

MODULE TESTS. Explorer

MODULE TESTS. Explorer Explorer MODULE TESTS All rights reserved. No parts of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying,

More information

A First Look at Logo

A First Look at Logo A First Look at Logo / 1 CHAPTER 1 A First Look at Logo This chapter introduces the basic mechanics of using Logo. It describes how to evaluate simple commands and how to define and edit procedures. The

More information

MicroWorlds 2.0. Logo Vocabulary. LCSI November 21, 2000

MicroWorlds 2.0. Logo Vocabulary. LCSI November 21, 2000 MicroWorlds 2.0 Logo Vocabulary LCSI November 21, 2000 Vocabulary 2 Math Operators number1 - number2 Reports the result of number1 minus number2. See difference. show 3-3 0 number1 * number2 Reports the

More information

LOGO A COMPUTER LANGUAGE Q/A:

LOGO A COMPUTER LANGUAGE Q/A: Grade 3 Chapter-6 LOGO A COMPUTER LANGUAGE 1. What is the full form of logo? The full form of logo is language of a graphic oriented. 2. What is the shape of a turtle? The shape of a turtle is like a triangle.

More information

Using Basic Formulas 4

Using Basic Formulas 4 Using Basic Formulas 4 LESSON SKILL MATRIX Skills Exam Objective Objective Number Understanding and Displaying Formulas Display formulas. 1.4.8 Using Cell References in Formulas Insert references. 4.1.1

More information

Drawtool. Toby Jaffey December 2, Drawtool What is it? What can I do with it? Data format...

Drawtool. Toby Jaffey December 2, Drawtool What is it? What can I do with it? Data format... Drawtool Toby Jaffey toby@earth.li December 2, 1999 Contents 1 Drawtool 2 1.1 What is it?............................................ 2 1.2 What can I do with it?......................................

More information

Functional Programming Languages (FPL)

Functional Programming Languages (FPL) Functional Programming Languages (FPL) 1. Definitions... 2 2. Applications... 2 3. Examples... 3 4. FPL Characteristics:... 3 5. Lambda calculus (LC)... 4 6. Functions in FPLs... 7 7. Modern functional

More information

Pro-Bot

Pro-Bot 1 Pro-Bot - Teacher Guide Product Code: EL00535 / IT00143 Pro-Bot Teacher Guide www.tts-shopping.com 2 Pro-Bot - Teacher Guide Pro-Bot Use the screen on the device to write programs, draw shapes and respond

More information

Registration Register/Purchase Teacher Click Register Request Validation Submit Back

Registration Register/Purchase Teacher Click Register Request Validation Submit Back Teacher manual Table of contents Table of contents... 1 Registration... 2 Login / Logout... 3 Login... 3 Logout... 3 Trouble signing in / forget your password?... 3 Creating a course... 4 Hiding and viewing

More information

Basic Computer Programming (Processing)

Basic Computer Programming (Processing) Contents 1. Basic Concepts (Page 2) 2. Processing (Page 2) 3. Statements and Comments (Page 6) 4. Variables (Page 7) 5. Setup and Draw (Page 8) 6. Data Types (Page 9) 7. Mouse Function (Page 10) 8. Keyboard

More information

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 8: SEP. 29TH INSTRUCTOR: JIAYIN WANG

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 8: SEP. 29TH INSTRUCTOR: JIAYIN WANG CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 8: SEP. 29TH INSTRUCTOR: JIAYIN WANG 1 Notice Prepare the Weekly Quiz The weekly quiz is for the knowledge we learned in the previous week (both the

More information

SCRATCH MODULE 3: NUMBER CONVERSIONS

SCRATCH MODULE 3: NUMBER CONVERSIONS SCRATCH MODULE 3: NUMBER CONVERSIONS INTRODUCTION The purpose of this module is to experiment with user interactions, error checking input, and number conversion algorithms in Scratch. We will be exploring

More information

The Apple II Standard

The Apple II Standard Page 1 of 15 The Apple II Standard A SUMMARY OF APPLE LOGO COMMANDS Notes: The key to using Logo primitives is to concentrate on inputs and outputs as indicated in the top line of each definition. A "#"

More information

Self-Teach Exercises 1-12 Turtle Pascal

Self-Teach Exercises 1-12 Turtle Pascal Self-Teach Exercises 1-12 Turtle Pascal The exercises below are intended to get you started using Turtle Graphics programming, and to take you fairly systematically through some of the basic facilities

More information

Designing Computer Systems Boolean Algebra

Designing Computer Systems Boolean Algebra Designing Computer Systems Boolean Algebra 08:34:45 PM 4 June 2013 BA-1 Scott & Linda Wills Designing Computer Systems Boolean Algebra Programmable computers can exhibit amazing complexity and generality.

More information

CSE111 Introduction to Computer Applications

CSE111 Introduction to Computer Applications CSE111 Introduction to Computer Applications Lecture 8 Introduction to MS PowerPoint 2010-Part 2 Prepared by Asst. Prof. Dr. Mohamed KURDI Revised and presented by Asst. Prof. Dr. Samsun M. BAŞARICI Summary

More information

Programming Project #4: A Logo Interpreter Summer 2005

Programming Project #4: A Logo Interpreter Summer 2005 CS 61A Programming Project #4: A Logo Interpreter Summer 2005 In Chapter 4 we study a Scheme interpreter written in Scheme, the metacircular evaluator. In this project we modify that evaluator to turn

More information

Text Search & Auto Coding

Text Search & Auto Coding THE DATA LEVEL - BASIC FUNCTIONS 225 Text Search & Auto Coding The Text Search Tool is used to search within primary texts for the occurrence of specific text strings that match a designated string or

More information

12 Macros. Localmake. is an abbreviation for the two instructions. localmake "fred 87. local "fred make "fred 87

12 Macros. Localmake. is an abbreviation for the two instructions. localmake fred 87. local fred make fred 87 12 Macros I mentioned that the versions of for and foreach shown in Chapter 10 don t work if their instruction templates include stop or output commands. The problem is that we don t want, say, foreach

More information

Dynamic Geometry: Basic Constructions A Sixty-Minute Presentation Featuring Cabri Jr., An APPS Program For the TI-83 Plus and TI-84

Dynamic Geometry: Basic Constructions A Sixty-Minute Presentation Featuring Cabri Jr., An APPS Program For the TI-83 Plus and TI-84 Dynamic Geometry: Basic Constructions A Sixty-Minute Presentation Featuring Cabri Jr., An APPS Program For the TI-83 Plus and TI-84 Dynamic Geometry: Basic Constructions 1 Cabri Jr. Dynamic Geometry: Basic

More information

MS Word Basic Word 2007 Concepts

MS Word Basic Word 2007 Concepts MS Word Basic Word 2007 Concepts BWD 1 BASIC MS WORD CONCEPTS This section contains some very basic MS Word information that will help you complete the assignments in this book. If you forget how to save,

More information

1 Getting started with Processing

1 Getting started with Processing cisc3665, fall 2011, lab I.1 / prof sklar. 1 Getting started with Processing Processing is a sketch programming tool designed for use by non-technical people (e.g., artists, designers, musicians). For

More information

Access Intermediate

Access Intermediate Access 2010 - Intermediate 103-134 Advanced Queries Quick Links Overview Pages AC116 AC117 Selecting Fields Pages AC118 AC119 AC122 Sorting Results Pages AC125 AC126 Specifying Criteria Pages AC132 AC134

More information

CONTENTS: What Is Programming? How a Computer Works Programming Languages Java Basics. COMP-202 Unit 1: Introduction

CONTENTS: What Is Programming? How a Computer Works Programming Languages Java Basics. COMP-202 Unit 1: Introduction CONTENTS: What Is Programming? How a Computer Works Programming Languages Java Basics COMP-202 Unit 1: Introduction Announcements Did you miss the first lecture? Come talk to me after class. If you want

More information

CS61A Notes Week 1A: Basics, order of evaluation, special forms, recursion

CS61A Notes Week 1A: Basics, order of evaluation, special forms, recursion CS61A Notes Week 1A: Basics, order of evaluation, special forms, recursion Assorted Scheme Basics 1. The ( is the most important character in Scheme. If you have coded in other languages such as C or Java,

More information

Interactive learning on a ClassPad 300

Interactive learning on a ClassPad 300 Interactive learning on a ClassPad 300 Barry Kissane School of Education Murdoch University http://wwwstaff.murdoch.edu.au/~kissane 1. Getting oriented Use the stylus to tap the Menu icon at the bottom

More information

CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch

CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch Purpose: We will take a look at programming this week using a language called Scratch. Scratch is a programming language that was developed

More information

NCMail: Microsoft Outlook User s Guide

NCMail: Microsoft Outlook User s Guide NCMail: Microsoft Outlook 2003 Email User s Guide Revision 1.0 11/10/2007 This document covers how to use Microsoft Outlook 2003 for accessing your email with the NCMail Exchange email system. The syntax

More information

UNIVERSITY of CALIFORNIA at Berkeley Department of Electrical Engineering and Computer Sciences Computer Sciences Division

UNIVERSITY of CALIFORNIA at Berkeley Department of Electrical Engineering and Computer Sciences Computer Sciences Division UNIVERSITY of CALIFORNIA at Berkeley Department of Electrical Engineering and Computer Sciences Computer Sciences Division CS61A Kurt Meinz Structure and Interpretation of Computer Programs Summer 2002

More information

Office 1 Using Microsoft Word

Office 1 Using Microsoft Word Office 1 Using Microsoft Word A free class offered by Birchard Public Library 423 Croghan Street Fremont, OH 43420 419-334-7101 X216 On the web at www.birchard.lib.oh.us Class content created by Westerville

More information

Chapter 7. Polygons, Circles, Stars and Stuff

Chapter 7. Polygons, Circles, Stars and Stuff Chapter 7. Polygons, Circles, Stars and Stuff Now it s time for the magic! Magic? asked Morf. What do you mean, magic? You ve never talked about Logo magic before. We ve talked about shapes, and how you

More information

1 Getting started with Processing

1 Getting started with Processing cis3.5, spring 2009, lab II.1 / prof sklar. 1 Getting started with Processing Processing is a sketch programming tool designed for use by non-technical people (e.g., artists, designers, musicians). For

More information

Mathematics with ICT in Key Stage 3. Geometry lessons

Mathematics with ICT in Key Stage 3. Geometry lessons Mathematics with ICT in Key Stage 3 Geometry lessons Introduction The introduction to the document Integrating ICT into mathematics in Key Stage 3 states: Computers offer powerful opportunities for pupils

More information

Understanding the Screen

Understanding the Screen Starting Starting Logo Logo Understanding the Screen Where you will write programs. You can just type methods or commands in here. Ex: t.forward() A Little Logo History What is LOGO? A programming language

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

APPM 2460 Matlab Basics

APPM 2460 Matlab Basics APPM 2460 Matlab Basics 1 Introduction In this lab we ll get acquainted with the basics of Matlab. This will be review if you ve done any sort of programming before; the goal here is to get everyone on

More information

CSC172 LAB. THE SCHEME OF THINGS (a bit of a racket)

CSC172 LAB. THE SCHEME OF THINGS (a bit of a racket) CSC172 LAB THE SCHEME OF THINGS (a bit of a racket) 1 Introduction The labs in CSC172 will follow a pair programming paradigm. Every student is encouraged (but not strictly required) to have a lab partner.

More information

Introduction to Java Applications

Introduction to Java Applications 2 Introduction to Java Applications OBJECTIVES In this chapter you will learn: To write simple Java applications. To use input and output statements. Java s primitive types. Basic memory concepts. To use

More information

SketchUp Tool Basics

SketchUp Tool Basics SketchUp Tool Basics Open SketchUp Click the Start Button Click All Programs Open SketchUp Scroll Down to the SketchUp 2013 folder Click on the folder to open. Click on SketchUp. Set Up SketchUp (look

More information

Randy H. Shih. Jack Zecher PUBLICATIONS

Randy H. Shih. Jack Zecher   PUBLICATIONS Randy H. Shih Jack Zecher PUBLICATIONS WWW.SDCACAD.COM AutoCAD LT 2000 MultiMedia Tutorial 1-1 Lesson 1 Geometric Construction Basics! " # 1-2 AutoCAD LT 2000 MultiMedia Tutorial Introduction Learning

More information

Access Intermediate

Access Intermediate Access 2013 - Intermediate 103-134 Advanced Queries Quick Links Overview Pages AC124 AC125 Selecting Fields Pages AC125 AC128 AC129 AC131 AC238 Sorting Results Pages AC131 AC136 Specifying Criteria Pages

More information

Lambda Notes for CS 2102

Lambda Notes for CS 2102 Lambda Notes for CS 2102 Remember filter and map from CS1101/1102: ;; filter: (X- >Boolean) ListOfX - > ListOfX the function argument (X- > Boolean) is a predicate. Filter applies the predicate to each

More information

Laboratory 1: Eclipse and Karel the Robot

Laboratory 1: Eclipse and Karel the Robot Math 121: Introduction to Computing Handout #2 Laboratory 1: Eclipse and Karel the Robot Your first laboratory task is to use the Eclipse IDE framework ( integrated development environment, and the d also

More information

Notes By: Shailesh Bdr. Pandey, TA, Computer Engineering Department, Nepal Engineering College

Notes By: Shailesh Bdr. Pandey, TA, Computer Engineering Department, Nepal Engineering College Preparing to Program You should take certain steps when you're solving a problem. First, you must define the problem. If you don't know what the problem is, you can't find a solution! Once you know what

More information

Copyright. Trademarks Attachmate Corporation. All rights reserved. USA Patents Pending. WRQ ReflectionVisual Basic User Guide

Copyright. Trademarks Attachmate Corporation. All rights reserved. USA Patents Pending. WRQ ReflectionVisual Basic User Guide PROGRAMMING WITH REFLECTION: VISUAL BASIC USER GUIDE WINDOWS XP WINDOWS 2000 WINDOWS SERVER 2003 WINDOWS 2000 SERVER WINDOWS TERMINAL SERVER CITRIX METAFRAME CITRIX METRAFRAME XP ENGLISH Copyright 1994-2006

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

Dr. Chuck Cartledge. 10 June 2015

Dr. Chuck Cartledge. 10 June 2015 Miscellanea Exam #1 Break Exam review 2.1 2.2 2.3 2.4 Break 3 4 Conclusion References CSC-205 Computer Organization Lecture #003 Chapter 2, Sections 2.1 through 4 Dr. Chuck Cartledge 10 June 2015 1/30

More information

Week 3: Objects, Input and Processing

Week 3: Objects, Input and Processing CS 170 Java Programming 1 Week 3: Objects, Input and Processing Learning to Create Objects Learning to Accept Input Learning to Process Data What s the Plan? Topic I: Working with Java Objects Learning

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Excel contains numerous tools that are intended to meet a wide range of requirements. Some of the more specialised tools are useful to people in certain situations while others have

More information

6.001 Notes: Section 15.1

6.001 Notes: Section 15.1 6.001 Notes: Section 15.1 Slide 15.1.1 Our goal over the next few lectures is to build an interpreter, which in a very basic sense is the ultimate in programming, since doing so will allow us to define

More information

University of Sunderland. Microsoft Word 2007

University of Sunderland. Microsoft Word 2007 Microsoft Word 2007 10/10/2008 Word 2007 Ribbons you first start some of the programs in 2007 Microsoft Office system, you may be surprised by what you see. The menus and toolbars in some programs have

More information

The StarPanel. Introduction

The StarPanel. Introduction The StarPanel Table of Contents: Introduction... 1 The Hardware... 1 The Software... 2 Basic Operations... 2 Frequently Asked Questions and Troubleshooting... 4 Who to Contact... 5 Introduction The StarPanel

More information

Creating a Title Block & Border Using Chief Architect. Architectural Design & Residential Construction Penncrest High School

Creating a Title Block & Border Using Chief Architect. Architectural Design & Residential Construction Penncrest High School Creating a Title Block & Border Using Chief Architect Architectural Design & Residential Construction Penncrest High School 2017-2018 Select New Layout to begin designing your Title Block. Note: Once the

More information

TSM Report Designer. Even Microsoft Excel s Data Import add-in can be used to extract TSM information into an Excel spread sheet for reporting.

TSM Report Designer. Even Microsoft Excel s Data Import add-in can be used to extract TSM information into an Excel spread sheet for reporting. TSM Report Designer The TSM Report Designer is used to create and modify your TSM reports. Each report in TSM prints data found in the databases assigned to that report. TSM opens these databases according

More information

COLOGO A Graph Language Reference Manual

COLOGO A Graph Language Reference Manual COLOGO A Graph Language Reference Manual Advisor: Stephen A. Edwards Shen Wang (sw2613@columbia.edu) Lixing Dong (ld2505@columbia.edu) Siyuan Lu (sl3352@columbia.edu) Chao Song (cs2994@columbia.edu) Zhou

More information

CS8 Final Exam E03, 09M, Phill Conrad, UC Santa Barbara 09/10/2009

CS8 Final Exam E03, 09M, Phill Conrad, UC Santa Barbara 09/10/2009 CS8 Final Exam E03, 09M, Phill Conrad, UC Santa Barbara 09/10/2009 Name: Umail Address: @ umail.ucsb.edu Please write your name only on this page. That allows me to grade your exams without knowing whose

More information

CHAPTER-1 COMPUTER FUNDAMENTALS. 6.Motherboardis the main circuit board of the computer where microprocessor is plugged.

CHAPTER-1 COMPUTER FUNDAMENTALS. 6.Motherboardis the main circuit board of the computer where microprocessor is plugged. CHAPTER-1 COMPUTER FUNDAMENTALS Q1.Fill in the blanks:- 1.SecondaryMemory is called as external Memory. 2. The full form of CPU is Central Processing Unit. 3.ArithmeticLogicUnit of CPU is used to perform

More information

CHAPTER 1 COPYRIGHTED MATERIAL. Getting to Know AutoCAD. Opening a new drawing. Getting familiar with the AutoCAD and AutoCAD LT Graphics windows

CHAPTER 1 COPYRIGHTED MATERIAL. Getting to Know AutoCAD. Opening a new drawing. Getting familiar with the AutoCAD and AutoCAD LT Graphics windows CHAPTER 1 Getting to Know AutoCAD Opening a new drawing Getting familiar with the AutoCAD and AutoCAD LT Graphics windows Modifying the display Displaying and arranging toolbars COPYRIGHTED MATERIAL 2

More information

Turtle Tango (TT) Language Reference Manual

Turtle Tango (TT) Language Reference Manual Turtle Tango (TT) Language Reference Manual Jeff Bender UNI: jrb2211 COMS W4115 6/29/2012 Contents 1. Introduction... 3 2. Lexical Conventions... 3 3. Scope... 3 4. Statements... 4 5. Expressions... 5

More information

How Computers Work. Processor and Main Memory. Roger Young

How Computers Work. Processor and Main Memory. Roger Young How Computers Work Processor and Main Memory Roger Young Copyright 2001, Roger Stephen Young All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted by

More information

WinTruss Tutorial By Matt Sutton

WinTruss Tutorial By Matt Sutton WinTruss Tutorial By Matt Sutton WinTruss is a powerful, intuitive, and flexible truss analyzer. This tutorial is written to introduce you to many of the features available on WinTruss. The easiest way

More information

The Fundamentals. Document Basics

The Fundamentals. Document Basics 3 The Fundamentals Opening a Program... 3 Similarities in All Programs... 3 It's On Now What?...4 Making things easier to see.. 4 Adjusting Text Size.....4 My Computer. 4 Control Panel... 5 Accessibility

More information

Vensim PLE Quick Reference and Tutorial

Vensim PLE Quick Reference and Tutorial Vensim PLE Quick Reference and Tutorial Main Toolbar Sketch Tools Menu Title Bar Analysis Tools Build (Sketch)Window Status Bar General Points 1. File operations and cutting/pasting work in the standard

More information

NETLOGO 6.0 QUICK GUIDE

NETLOGO 6.0 QUICK GUIDE Agents NETLOGO 6.0 QUICK GUIDE Luis R. Izquierdo (http://luis.izqui.org) The NetLogo world is made up of agents. Agents are beings that can follow instructions. There are four types of agents: Turtles.

More information

Object Oriented Programming. Week 1 Part 1 An introduction to Java, Objects and JUnit

Object Oriented Programming. Week 1 Part 1 An introduction to Java, Objects and JUnit Object Oriented Programming Part 1 An introduction to Java, Objects and JUnit Object Oriented Programming with Java 2 Syllabus This class teaches Object Oriented Programming using Java We will focus on

More information

Introduction to Computer Engineering (E114)

Introduction to Computer Engineering (E114) Introduction to Computer Engineering (E114) Lab 1: Full Adder Introduction In this lab you will design a simple digital circuit called a full adder. You will then use logic gates to draw a schematic for

More information

CMPSCI 250: Introduction to Computation. Lecture #1: Things, Sets and Strings David Mix Barrington 22 January 2014

CMPSCI 250: Introduction to Computation. Lecture #1: Things, Sets and Strings David Mix Barrington 22 January 2014 CMPSCI 250: Introduction to Computation Lecture #1: Things, Sets and Strings David Mix Barrington 22 January 2014 Things, Sets, and Strings The Mathematical Method Administrative Stuff The Objects of Mathematics

More information

Python Intro GIS Week 1. Jake K. Carr

Python Intro GIS Week 1. Jake K. Carr GIS 5222 Week 1 Why Python It s simple and easy to learn It s free - open source! It s cross platform IT S expandable!! Why Python: Example Consider having to convert 1,000 shapefiles into feature classes

More information

Activity Guide APIs and Using Functions with Parameters

Activity Guide APIs and Using Functions with Parameters Unit 3 Lesson 5 Name(s) Period Date Activity Guide APIs and Using Functions with Parameters CS Content An API is a reference guide which catalogs and explains the functionality of a programming language.

More information

PLT Miscellaneous Libraries: Reference Manual

PLT Miscellaneous Libraries: Reference Manual PLT Miscellaneous Libraries: Reference Manual PLT (scheme@plt-scheme.org) Version 200 June 2002 Copyright notice Copyright c 1996-2002 PLT Permission to make digital/hard copies and/or distribute this

More information

Outlook Web Access. In the next step, enter your address and password to gain access to your Outlook Web Access account.

Outlook Web Access. In the next step, enter your  address and password to gain access to your Outlook Web Access account. Outlook Web Access To access your mail, open Internet Explorer and type in the address http://www.scs.sk.ca/exchange as seen below. (Other browsers will work but there is some loss of functionality) In

More information

Lab copy. Do not remove! Mathematics 152 Spring 1999 Notes on the course calculator. 1. The calculator VC. The web page

Lab copy. Do not remove! Mathematics 152 Spring 1999 Notes on the course calculator. 1. The calculator VC. The web page Mathematics 152 Spring 1999 Notes on the course calculator 1. The calculator VC The web page http://gamba.math.ubc.ca/coursedoc/math152/docs/ca.html contains a generic version of the calculator VC and

More information

61A LECTURE 18 SCHEME. Steven Tang and Eric Tzeng July 24, 2013

61A LECTURE 18 SCHEME. Steven Tang and Eric Tzeng July 24, 2013 61A LECTURE 18 SCHEME Steven Tang and Eric Tzeng July 24, 2013 What s happening today? We re learning a new language! After you know one language (Python), learning your second (Scheme) is much faster

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

Solution: It may be helpful to list out exactly what is in each of these events:

Solution: It may be helpful to list out exactly what is in each of these events: MATH 5010(002) Fall 2017 Homework 1 Solutions Please inform your instructor if you find any errors in the solutions. 1. You ask a friend to choose an integer N between 0 and 9. Let A = {N 5}, B = {3 N

More information

Programming Paradigms

Programming Paradigms PP 2017/18 Unit 11 Functional Programming with Haskell 1/37 Programming Paradigms Unit 11 Functional Programming with Haskell J. Gamper Free University of Bozen-Bolzano Faculty of Computer Science IDSE

More information

Use the Move tool to drag A around and see how the automatically constructed objects (like G or the perpendicular and parallel lines) are updated.

Use the Move tool to drag A around and see how the automatically constructed objects (like G or the perpendicular and parallel lines) are updated. Math 5335 Fall 2015 Lab #0: Installing and using GeoGebra This semester you will have a number of lab assignments which require you to use GeoGebra, a dynamic geometry program. GeoGebra lets you explore

More information

Complex Systems Made Simple

Complex Systems Made Simple Complex Systems Made Simple 1. Introduction 2. A Complex Systems Sampler 3. Commonalities a. What is NetLogo? b. Graphical interface c. Programming concepts d. Termites NetLogo project? Fall 2015 René

More information

COMS 469: Interactive Media II

COMS 469: Interactive Media II COMS 469: Interactive Media II Agenda Review Data Types & Variables Decisions, Loops, and Functions Review gunkelweb.com/coms469 Review Basic Terminology Computer Languages Interpreted vs. Compiled Client

More information

Fundamentals. Training Kit. Presentation Products, Inc. 632 W 28th St, 7th fl New York, NY f presentationproducts.

Fundamentals. Training Kit. Presentation Products, Inc. 632 W 28th St, 7th fl New York, NY f presentationproducts. Fundamentals Training Kit Presentation Products, Inc. 632 W 28th St, 7th fl New York, NY 10001 212.736.6350 f 212.736.6353 presentationproducts.com Table of Contents Getting Started How Does the SMART

More information

FILE MAINTENANCE COMMANDS

FILE MAINTENANCE COMMANDS Birla Institute of Technology & Science, Pilani Computer Programming (CS F111) Lab-2 ----------------------------------------------------------------------------------------------------------------------

More information

Copyright 1984 VisiCorp All Rights Reserved. Printed in U.S.A.

Copyright 1984 VisiCorp All Rights Reserved. Printed in U.S.A. Copyright 1984 VisiCorp All Rights Reserved. Printed in U.S.A. Visi On Word Program Copyright 1984 VisiCorp All Rights Reserved. Epson MX-80 TM is a trademark of Epson America, Inc. Visi OnTM, Visi On

More information

Lecture 1. Introduction to course, Welcome to Engineering, What is Programming and Why is this the first thing being covered in Engineering?

Lecture 1. Introduction to course, Welcome to Engineering, What is Programming and Why is this the first thing being covered in Engineering? Lecture 1 Introduction to course, Welcome to Engineering, What is Programming and Why is this the first thing being covered in Engineering? Welcome to ENGR 102 Syllabus review Your Time Expectations (in

More information

Access - Introduction to Queries

Access - Introduction to Queries Access - Introduction to Queries Part of managing a database involves asking questions about the data. A query is an Access object that you can use to ask the question(s). The answer is contained in the

More information

Boolean Logic & Branching Lab Conditional Tests

Boolean Logic & Branching Lab Conditional Tests I. Boolean (Logical) Operations Boolean Logic & Branching Lab Conditional Tests 1. Review of Binary logic Three basic logical operations are commonly used in binary logic: and, or, and not. Table 1 lists

More information

What Is a Program? Pre-Quiz

What Is a Program? Pre-Quiz What Is a Program? What Is a Program? Pre-Quiz 1. What is a program? 2. What is an algorithm? Give an example. 2 What Is a Program? Pre-Quiz Answers 1. What is a program? A program is a sequence of instructions

More information

Microsoft Office Excel Use Excel s functions. Tutorial 2 Working With Formulas and Functions

Microsoft Office Excel Use Excel s functions. Tutorial 2 Working With Formulas and Functions Microsoft Office Excel 2003 Tutorial 2 Working With Formulas and Functions 1 Use Excel s functions You can easily calculate the sum of a large number of cells by using a function. A function is a predefined,

More information