CMPSCI 119 Spring 2014 Friday, November 7, 2014 Midterm #2 Solution Key Professor William T. Verts

Size: px
Start display at page:

Download "CMPSCI 119 Spring 2014 Friday, November 7, 2014 Midterm #2 Solution Key Professor William T. Verts"

Transcription

1 CMPSCI 119 Spring 2014 Friday, November 7, 2014 Midterm #2 Solution Key Professor William T. Verts

2 <1> 20 Points Rewrite the following code to use for-loops instead of while-loops. Use as few Python statements as possible without changing how the function works. H = getheight(canvas) W = getwidth(canvas) X = 0 while (X < W): Y = 0 while (Y < H): PX = getpixel(canvas,x,y) setcolor(px,newcolor) Y = Y + 1 X = X + 1 H = getheight(canvas) W = getwidth(canvas) for X in range(w): for Y in range(h): PX = getpixel(canvas,x,y) setcolor(px,newcolor) Expected Answer -or- Expected Answer for X in range(getwidth(canvas)): for Y in range(getheight(canvas)): setcolor(getpixel(canvas,x,y),newcolor) -or- for PX in getpixels(canvas): setcolor(px,newcolor) Acceptable Answer but not: setallpixelstoacolor(canvas,newcolor) Page 1

3 <2> 20 Points What is printed out when Main() is called? def Toad(W,H): print W*3+H def Frog(W,X=5): if (W > X): Toad(X,W) else: Toad(W,W) def Main(): Frog(8) 23 Frog(4,9) 16 In Main: What Frog gets: What Toad gets: What Toad prints: Frog(8) Frog(8,5) Toad(5,8) print 5*3+8 = 23 Frog(4,9) Frog(4,9) Toad(4,4) print 4*3+4 = 16 Page 2

4 <3> 20 Points Variable Mask contains the value [[1,2,3], [4,5,6], [7,8,9]]. Variable Frog contains the value [9, "Cat", (3,8), 4]. What are the results of each of the following statements? If there is any kind of error in the statement, respond with. [4,5,6] X = Mask[1] 7 X = Mask[2][0] 3 X = len(mask) X = Mask[0,0] "a" X = Frog[1][1] (3,8) X = Frog[2] 4 X = Frog[3] 4.0 X = Frog[3]*1.0 X = Frog[3][6] 8 X = Frog[2][1] [4,5,6,9] X = Mask[1]+[Frog[0]] [1,2,3,4,5,6] X = Mask[0]+Mask[1] 4 X = len(frog) 3 X = len(frog[1]) 2 X = len(frog[2]) X = len(frog[3]) "Catfish" X = Frog[1]+"fish" X = Frog[2]+"fish" [9,"Cat",(3,8),4,9,"Cat",(3,8),4] X = Frog+Frog 10 X = Frog[0]+1 Page 3

5 <4> 20 Points We know that pixel-transform functions (B&W, RGB, negate, gray, etc.) and reflection functions (mirror and flip) can be done in-place in one canvas, but filtering functions (emboss, focus, edge-detect, etc.) and 90 rotation functions each require a new canvas for their results. What about a function that rotates an image by 180? Can this be done in-place, or does it require a new canvas? Either explain your answer in words, or write a function that demonstrates your answer. This can be done in-place. The process requires that all pixels be scanned from the upper-left corner to the middle of the canvas, and swapped with their counterparts relative to the lower-right corner. The scan stops after exactly half the pixels in the canvas have been scanned. def Rotate180 (Canvas): H = getheight(canvas) W = getwidth(canvas) P = W * H X1 = 0 Y1 = 0 X2 = W-1 Y2 = H-1 for I in range(p/2): PX1 = getpixel(canvas,x1,y1) PX2 = getpixel(canvas,x2,y2) C1 = getcolor(px1) C2 = getcolor(px2) setcolor(px1,c2) setcolor(px2,c1) X1 = X1 + 1 if (X1 > W-1): X1 = 0 Y1 = Y1 + 1 X2 = X2-1 if (X2 < 0): X2 = W-1 Y2 = Y2-1 Page 4

6 <5> 20 Points A Whoozit is a cyan square of radius 50, with a Thingie centered at each corner. A Thingie is a green square of radius 40, with a Widget in each corner centered 20 pixels from the center of the Thingie. A Widget is a yellow square of radius 15, with a red circle of radius 10 on top, and a white circle of radius 5 on top of that. Fill in the blanks in the functions below to complete the drawing of a Whoozit at location <X,Y>. def addcircle (Canvas, X, Y, R, Fill): addovalfilled(canvas, X-R, Y-R, 2*R+1, 2*R+1, Fill) addoval(canvas, X-R, Y-R, 2*R+1, 2*R+1, black) def addsquare (Canvas, X, Y, R, Fill): addrectfilled(canvas, X-R, Y-R, 2*R+1, 2*R+1, Fill) addrect(canvas, X-R, Y-R, 2*R+1, 2*R+1, black) def addwidget (Canvas, X, Y): addsquare (Canvas, X, Y, 15, yellow) addcircle (Canvas, X, Y, 10, red) addcircle (Canvas, X, Y, 5, white) def addthingie (Canvas, X, Y): addsquare (Canvas, X, Y, 40, green) addwidget (Canvas, X-20, Y-20) addwidget (Canvas, X+20, Y-20) addwidget (Canvas, X-20, Y+20) addwidget (Canvas, X+20, Y+20) def addwhoozit (Canvas, X, Y): addsquare (Canvas, X, Y, 50, cyan) addthingie (Canvas, X-50, Y-50) addthingie (Canvas, X+50, Y-50) addthingie (Canvas, X-50, Y+50) addthingie (Canvas, X+50, Y+50) Page 5

CMPSCI 119 Spring 2015 Wednesday, April 1, 2015 Midterm #2 Solution Key Professor William T. Verts

CMPSCI 119 Spring 2015 Wednesday, April 1, 2015 Midterm #2 Solution Key Professor William T. Verts CMPSCI 119 Spring 2015 Wednesday, April 1, 2015 Midterm #2 Solution Key Professor William T. Verts 20 Points Modify the following code to use for-loops instead of while-loops. Use as few Python statements

More information

CMPSCI 119 Fall 2018 Wednesday, November 14, 2018 Midterm #2 Solution Key Professor William T. Verts

CMPSCI 119 Fall 2018 Wednesday, November 14, 2018 Midterm #2 Solution Key Professor William T. Verts CMPSCI 119 Fall 2018 Wednesday, November 14, 2018 Midterm #2 Solution Key Professor William T. Verts 25 Points What is the value of each expression below? Answer any 25; answer more for extra credit.

More information

CMPSCI 119 Fall 2018 Thursday, November 29, 2018 Midterm #3 Solution Key Professor William T. Verts

CMPSCI 119 Fall 2018 Thursday, November 29, 2018 Midterm #3 Solution Key Professor William T. Verts CMPSCI 119 Fall 2018 Thursday, November 29, 2018 Midterm #3 Solution Key Professor William T. Verts 25 Points What is the value of each expression below? Answer any 25; answer more for extra credit.

More information

CMPSCI 119 Spring 2017 Wednesday, March 29, 2017 Midterm #2 Professor William T. Verts QUESTION POINTS SCORE TOTAL 100

CMPSCI 119 Spring 2017 Wednesday, March 29, 2017 Midterm #2 Professor William T. Verts QUESTION POINTS SCORE TOTAL 100 CMPSCI 119 Spring 2017 Wednesday, March 29, 2017 Midterm #2 Professor William T. Verts NAME QUESTION POINTS SCORE 1 25+5 2 5 3 24 4 20 5 16 6 10 TOTAL 100 25 Points What is the value of each expression

More information

CMPSCI 119 Fall 2017 Monday, October 10, 2017 Midterm #1 Solution Key Professor William T. Verts

CMPSCI 119 Fall 2017 Monday, October 10, 2017 Midterm #1 Solution Key Professor William T. Verts CMPSCI 119 Fall 2017 Monday, October 10, 2017 Midterm #1 Solution Key Professor William T. Verts 20 Points Do any 20; do more for extra credit. Correct answers are worth +1 point, blank answers are

More information

CMPSCI 119 LAB #2 Anime Eyes Professor William T. Verts

CMPSCI 119 LAB #2 Anime Eyes Professor William T. Verts CMPSCI 119 LAB #2 Anime Eyes Professor William T. Verts The goal of this Python programming assignment is to write your own code inside a provided program framework, with some new graphical and mathematical

More information

CMPSCI 119 Spring 2015 Final Exam Friday, May 1, 2015 Solution Key

CMPSCI 119 Spring 2015 Final Exam Friday, May 1, 2015 Solution Key CMPSCI 119 Spring 2015 Final Exam Friday, May 1, 2015 Solution Key 25 Points Answer any 25 questions. Answer more for extra credit. Be careful about which variables and constants are integers, which

More information

CMPSCI 119 LAB #2 Greebles / Anime Eyes Professor William T. Verts

CMPSCI 119 LAB #2 Greebles / Anime Eyes Professor William T. Verts CMPSCI 119 LAB #2 Greebles / Anime Eyes Professor William T. Verts The goal of this Python programming assignment is to write your own code inside a provided program framework, with some new graphical

More information

CMPSCI 119 LAB #4 Fish Tank Professor William T. Verts

CMPSCI 119 LAB #4 Fish Tank Professor William T. Verts CMPSCI 119 LAB #4 Fish Tank Professor William T. Verts The goal of this Python programming assignment is again to write your own code inside a provided program framework, with some new graphical and mathematical

More information

CS 107 Practice Final Exam Spring Instructions: closed books, closed notes, open minds, 2 hour time limit. There are 4 sections.

CS 107 Practice Final Exam Spring Instructions: closed books, closed notes, open minds, 2 hour time limit. There are 4 sections. Name CS 107 Practice Final Exam Spring 2016 Instructions: closed books, closed notes, open minds, 2 hour time limit. There are 4 sections. Part I: Definitions and Theory Part II: Binary, Logic, and Gates

More information

1. (10 pts) Order the following three images by how much memory they occupy:

1. (10 pts) Order the following three images by how much memory they occupy: CS 47 Prelim Tuesday, February 25, 2003 Problem : Raster images (5 pts). (0 pts) Order the following three images by how much memory they occupy: A. a 2048 by 2048 binary image B. a 024 by 024 grayscale

More information

Ancient Cell Phone Tracing an Object and Drawing with Layers

Ancient Cell Phone Tracing an Object and Drawing with Layers Ancient Cell Phone Tracing an Object and Drawing with Layers 1) Open Corel Draw. Create a blank 8.5 x 11 Document. 2) Go to the Import option and browse to the Graphics 1 > Lessons folder 3) Find the Cell

More information

GIMP WEB 2.0 ICONS. GIMP is all about IT (Images and Text) OPEN GIMP

GIMP WEB 2.0 ICONS. GIMP is all about IT (Images and Text) OPEN GIMP GIMP WEB 2.0 ICONS or WEB 2.0 ICONS: MEMO Web 2.0 Icons: Memo GIMP is all about IT (Images and Text) OPEN GIMP Step 1: To begin a new GIMP project, from the Menu Bar, select File New. At the Create a New

More information

CMPSCI 119 LAB #3 Fish Tank Professor William T. Verts

CMPSCI 119 LAB #3 Fish Tank Professor William T. Verts CMPSCI 119 LAB #3 Fish Tank Professor William T. Verts The goal of this Python programming assignment is again to write your own code inside a provided program framework, with some new graphical and mathematical

More information

Transformation, tessellation and symmetry line symmetry

Transformation, tessellation and symmetry line symmetry Transformation, tessellation and symmetry line symmetry Reflective or line symmetry describes mirror image, when one half of a shape or picture matches the other exactly. The middle line that divides the

More information

CMPSCI 120 Extra Credit #1 Professor William T. Verts

CMPSCI 120 Extra Credit #1 Professor William T. Verts CMPSCI 120 Extra Credit #1 Professor William T. Verts Setting Up In this assignment you are to create a Web page that contains a client-side image map. This assignment does not build on any earlier assignment.

More information

1. Complete these exercises to practice creating user functions in small sketches.

1. Complete these exercises to practice creating user functions in small sketches. Lab 6 Due: Fri, Nov 4, 9 AM Consult the Standard Lab Instructions on LEARN for explanations of Lab Days ( D1, D2, D3 ), the Processing Language and IDE, and Saving and Submitting. Rules: Do not use the

More information

CMPSCI 120 Fall 2015 Midterm Exam #2 Solution Key Monday, November 16, 2015 Professor William T. Verts

CMPSCI 120 Fall 2015 Midterm Exam #2 Solution Key Monday, November 16, 2015 Professor William T. Verts CMPSCI 120 Fall 2015 Midterm Exam #2 Solution Key Monday, November 16, 2015 Professor William T. Verts Page 1 of 6 20 Points Quick Answers. Do any 10 for full credit (2 points each); do more for extra

More information

5. Introduction to Procedures

5. Introduction to Procedures 5. Introduction to Procedures Topics: The module SimpleGraphics Creating and Showing figures Drawing Rectangles, Disks, and Stars Optional arguments Application Scripts Procedures We continue our introduction

More information

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science.

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science. Professor William Hoff Dept of Electrical Engineering &Computer Science http://inside.mines.edu/~whoff/ 1 Binary Image Processing 2 Binary means 0 or 1 values only Also called logical type (true/false)

More information

mith College Computer Science Week 10 CSC111 Spring 2015 Dominique Thiébaut

mith College Computer Science Week 10 CSC111 Spring 2015 Dominique Thiébaut mith College Computer Science Week 10 CSC111 Spring 2015 Dominique Thiébaut dthiebaut@smith.edu Next Few Lectures Image Processing with Nested For-Loops Lists can be Used to Solve Many Problems (Chap.

More information

Recipes4Success. Draw and Animate a Rocket Ship. Frames 5 - Drawing Tools

Recipes4Success. Draw and Animate a Rocket Ship. Frames 5 - Drawing Tools Recipes4Success You can use the drawing tools and path animation tools in Frames to create illustrated cartoons. In this Recipe, you will draw and animate a rocket ship. 2012. All Rights Reserved. This

More information

CS 101 Computer Science I Fall Instructor Muller. stddraw API. (DRAFT of 1/15/2013)

CS 101 Computer Science I Fall Instructor Muller. stddraw API. (DRAFT of 1/15/2013) CS 101 Computer Science I Fall 2013 Instructor Muller stddraw API (DRAFT of 1/15/2013) This document describes the application programmer interface (API) for the stddraw library. An API describes the set

More information

CSC 110 Final Exam. ID checked

CSC 110 Final Exam. ID checked ID checked CSC 110 Final Exam Name: Date: 1. Write a Python program that asks the user for a positive integer n and prints out n evenly spaced values between 0 and 10. The values should be printed with

More information

Draw beautiful and intricate patterns with Python Turtle, while learning how to code with Python.

Draw beautiful and intricate patterns with Python Turtle, while learning how to code with Python. Raspberry Pi Learning Resources Turtle Snowflakes Draw beautiful and intricate patterns with Python Turtle, while learning how to code with Python. How to draw with Python Turtle 1. To begin, you will

More information

CISC 1600, Lab 2.1: Processing

CISC 1600, Lab 2.1: Processing CISC 1600, Lab 2.1: Processing Prof Michael Mandel 1 Getting set up For this lab, we will be using Sketchpad, a site for building processing sketches online using processing.js. 1.1. Go to http://cisc1600.sketchpad.cc

More information

Introduction to Computer Science (I1100) Data Storage

Introduction to Computer Science (I1100) Data Storage Data Storage 145 Data types Data comes in different forms Data Numbers Text Audio Images Video 146 Data inside the computer All data types are transformed into a uniform representation when they are stored

More information

CMPSCI 105 Midterm Exam Solution Spring 2008 March 27, 2008 Professor William T. Verts

CMPSCI 105 Midterm Exam Solution Spring 2008 March 27, 2008 Professor William T. Verts CMPSCI 105 Midterm Exam Solution Spring 2008 March 27, 2008 Professor William T. Verts GENERAL KNOWLEDGE 13 Points Fill in your answer into the box at the left side of each question. Show your work

More information

CS 4620 Midterm, March 21, 2017

CS 4620 Midterm, March 21, 2017 CS 460 Midterm, March 1, 017 This 90-minute exam has 4 questions worth a total of 100 points. Use the back of the pages if you need more space. Academic Integrity is expected of all students of Cornell

More information

Introduction to Programming Using Python Lecture 6. Dr. Zhang COSC 1437 Spring, 2018 March 01, 2018

Introduction to Programming Using Python Lecture 6. Dr. Zhang COSC 1437 Spring, 2018 March 01, 2018 Introduction to Programming Using Python Lecture 6 Dr. Zhang COSC 1437 Spring, 2018 March 01, 2018 Chapter 9 GUI Programming Using Tkinter Getting started with Tkinter with a simple example. Code example:

More information

Day 1: Introduction to MATLAB and Colorizing Images CURIE Academy 2015: Computational Photography Sign-Off Sheet

Day 1: Introduction to MATLAB and Colorizing Images CURIE Academy 2015: Computational Photography Sign-Off Sheet Day 1: Introduction to MATLAB and Colorizing Images CURIE Academy 2015: Computational Photography Sign-Off Sheet NAME: NAME: Part 1.1 Part 1.2 Part 1.3 Part 2.1 Part 2.2 Part 3.1 Part 3.2 Sign-Off Milestone

More information

CMPSCI 120 Fall 2016 Professor William T. Verts

CMPSCI 120 Fall 2016 Professor William T. Verts CMPSCI 120 Fall 2016 Midterm Exam #2 Solution Key Wednesday, November 16, 2016 Professor William T. Verts 20 Points Quick Answers. Do any 10 for full credit (2 points each); do more for extra credit

More information

CO2 Rail Car. Wheel Rear Px. on the Command Manager toolbar.

CO2 Rail Car. Wheel Rear Px. on the Command Manager toolbar. Chapter 6 CO2 Rail Car Wheel Rear Px A. Sketch Construction Lines. Step 1. Click File Menu > New, click Part Metric and OK. Step 2. Click Front (plane) in the Feature Manager (left panel), Fig. 1. Step

More information

Midterm #2a Fall minutes DO NOT WRITE IN THIS AREA

Midterm #2a Fall minutes DO NOT WRITE IN THIS AREA 15-112 Midterm #2a Fall 2015 80 minutes Name: Andrew ID: @andrew.cmu.edu Section: You may not use any books, notes, or electronic devices during this exam. You may not ask questions about the exam except

More information

CSc 110, Spring 2018 Lecture 9: Parameters, Graphics and Random. Adapted from slides by Marty Stepp and Stuart Reges

CSc 110, Spring 2018 Lecture 9: Parameters, Graphics and Random. Adapted from slides by Marty Stepp and Stuart Reges CSc 110, Spring 2018 Lecture 9: Parameters, Graphics and Random Adapted from slides by Marty Stepp and Stuart Reges Exercise: multiple parameters def main(): print_number(4, 9) print_number(17, 6) print_number(8,

More information

Grade 6 Math Circles. Shapeshifting

Grade 6 Math Circles. Shapeshifting Faculty of Mathematics Waterloo, Ontario N2L 3G1 Plotting Grade 6 Math Circles October 24/25, 2017 Shapeshifting Before we begin today, we are going to quickly go over how to plot points. Centre for Education

More information

CMPSCI 105 Midterm Exam Solution Spring 2005 March 24, 2005 Professor William T. Verts

CMPSCI 105 Midterm Exam Solution Spring 2005 March 24, 2005 Professor William T. Verts CMPSCI 105 Midterm Exam Solution Spring 2005 March 24, 2005 Professor William T. Verts GENERAL KNOWLEDGE 8 Points Fill in your answer into the box at the left side of each question. Show your work

More information

Answers to Practice Questions

Answers to Practice Questions CPSC 301: Computing in the Life Sciences Winter 2015 2016, Term 2 Answers to Practice Questions Question 1 a. Any task that involves animation of many agents is easier implemented in Scratch than Python.

More information

CS 111X - Spring Final Exam - KEY

CS 111X - Spring Final Exam - KEY CS 111X - Spring 2016 - Final Exam 1/10 Computing ID: CS 111X - Spring 2016 - Final Exam - KEY Name: Computing ID: On my honor as a student, I have neither given nor received unauthorized assistance on

More information

Step 1: Create A New Photoshop Document

Step 1: Create A New Photoshop Document Snowflakes Photo Border In this Photoshop tutorial, we ll learn how to create a simple snowflakes photo border, which can be a fun finishing touch for photos of family and friends during the holidays,

More information

Kimberly Nguyen Professor Oliehoek Introduction to Programming 8 September 2013

Kimberly Nguyen Professor Oliehoek Introduction to Programming 8 September 2013 1. A first program // Create 200x200 canvas // Print favorite quote size(200, 200); println("it is what it is"); // Draw rectangle and a line rect(100,100,50,50); line(0,0,50,50); // Save as.pde. Can be

More information

GIMP WEB 2.0 ICONS. GIMP is all about IT (Images and Text) OPEN GIMP

GIMP WEB 2.0 ICONS. GIMP is all about IT (Images and Text) OPEN GIMP GIMP WEB 2.0 ICONS WEB 2.0 ICONS: STICKY NOTE Web 2.0 Icons: Sticky Note GIMP is all about IT (Images and Text) OPEN GIMP Step 1: To begin a new GIMP project, from the Menu Bar, select File New. At the

More information

Midterm #2a Spring minutes DO NOT WRITE IN THIS AREA

Midterm #2a Spring minutes DO NOT WRITE IN THIS AREA 15-112 Midterm #2a Spring 2016 80 minutes Name: Andrew ID: @andrew.cmu.edu Section: You may not use any books, notes, or electronic devices during this exam. You may not ask questions about the exam except

More information

Add Photo Mounts To A Photo With Photoshop Part 1

Add Photo Mounts To A Photo With Photoshop Part 1 Add Photo Mounts To A Photo With Photoshop Part 1 Written by Steve Patterson. In this Photoshop Effects tutorial, we ll learn how to create and add simplephoto mounts to an image, a nice finishing touch

More information

Graphics. Setting Snap to Grid

Graphics. Setting Snap to Grid 2 This chapter describes how to add static and dynamic graphics to a control panel and how to create and use custom graphics. Any visible item on a LookoutDirect control panel is a graphic. All graphics

More information

CISC 1600, Lab 3.1: Processing

CISC 1600, Lab 3.1: Processing CISC 1600, Lab 3.1: Processing Prof Michael Mandel 1 Getting set up For this lab, we will be using OpenProcessing, a site for building processing sketches online using processing.js. 1.1. Go to https://www.openprocessing.org/class/57767/

More information

Spring 2011 Prof. Hyesoon Kim

Spring 2011 Prof. Hyesoon Kim Spring 2011 Prof. Hyesoon Kim Application Geometry Rasterizer CPU Each stage cane be also pipelined The slowest of the pipeline stage determines the rendering speed. Frames per second (fps) Executes on

More information

NAME: Question Points TOTAL 100

NAME: Question Points TOTAL 100 CMPSCI 120 Fall 2013 Midterm Exam #2 Solution Key Friday, November 8, 2013 Professor William T. Verts NAME: Question Points 1 20 2 20 3 20 4 20 5 20 TOTAL 100 Score 20 Points Quick Answers. Do any

More information

CS 100 Python commands, computing concepts, and algorithmic approaches for final Fall 2015

CS 100 Python commands, computing concepts, and algorithmic approaches for final Fall 2015 CS 100 Python commands, computing concepts, and algorithmic approaches for final Fall 2015 These pages will NOT BE INCLUDED IN THE MIDTERM. print - Displays a value in the command area - Examples: - print

More information

CMPSCI 105 Midterm Exam Solution Spring 2004 March 25, 2004 Professor William T. Verts

CMPSCI 105 Midterm Exam Solution Spring 2004 March 25, 2004 Professor William T. Verts CMPSCI 105 Midterm Exam Solution Spring 2004 March 25, 2004 Professor William T. Verts GENERAL KNOWLEDGE 8 Points Fill in your answer into the box at the left side of each question. Show your work

More information

Text & Design 2015 Wojciech Piskor

Text & Design 2015 Wojciech Piskor Text & Design 2015 Wojciech Piskor www.wojciechpiskor.wordpress.com wojciech.piskor@gmail.com All rights reserved. No part of this publication may be reproduced or transmitted in any form or by any means,

More information

15-110: Principles of Computing, Spring Problem Set 3 (PS3) Due: Friday, February 9 by 2:30PM on Gradescope

15-110: Principles of Computing, Spring Problem Set 3 (PS3) Due: Friday, February 9 by 2:30PM on Gradescope 15-110: Principles of Computing, Spring 2018 Problem Set 3 (PS3) Due: Friday, February 9 by 2:30PM on Gradescope HANDIN INSTRUCTIONS Download a copy of this PDF file. You have two ways to fill in your

More information

Easy Graphical User Interfaces

Easy Graphical User Interfaces Easy Graphical User Interfaces with breezypythongui Types of User Interfaces GUI (graphical user interface) TUI (terminal-based user interface) UI Inputs Outputs Computation Terminal-Based User Interface

More information

Word 2003: Flowcharts Learning guide

Word 2003: Flowcharts Learning guide Word 2003: Flowcharts Learning guide How can I use a flowchart? As you plan a project or consider a new procedure in your department, a good diagram can help you determine whether the project or procedure

More information

Garfield AP CS. Graphics

Garfield AP CS. Graphics Garfield AP CS Graphics Assignment 3 Working in pairs Conditions: I set pairs, you have to show me a design before you code You have until tomorrow morning to tell me if you want to work alone Cumulative

More information

GIMP WEB 2.0 BADGES. GIMP is all about IT (Images and Text) OPEN GIMP

GIMP WEB 2.0 BADGES. GIMP is all about IT (Images and Text) OPEN GIMP GIMP WEB 2.0 BADGES and Badges: Circle with Flap Completed Project WEB 2.0 BADGES: CIRCLE WITH FLAP GIMP is all about IT (Images and Text) OPEN GIMP Step 1: To begin a new GIMP project, from the Menu Bar,

More information

int b = 2; for (int a = 0; a < 10 b < 20; a++) { a = a + b; b = b + a; }

int b = 2; for (int a = 0; a < 10 b < 20; a++) { a = a + b; b = b + a; } 1. What does mystery(9870) return? public int mystery(int n) { String m = ""; while (n > 0) { m = m + n%10; n = n/10; return m; (a) "9870" (b) "987" (c) "0" (d) "789" (e) "7890" 2. What are the values

More information

Functions with Parameters and Return Values

Functions with Parameters and Return Values CS101, Spring 2015 Functions with Parameters and Return Values Lecture #4 Last week we covered Objects and Types Variables Methods Tuples Roadmap Last week we covered Objects and Types Variables Methods

More information

Making images pretty again...using machine learning

Making images pretty again...using machine learning The «Lena» standard reference image Making images pretty again...using machine learning Lars Løvlie Inmeta Consulting www.inmeta.no Expert consulting in Machine Learning ml@inmeta.no Tradesolution Mediastore

More information

Intelligent Setup input

Intelligent Setup input Intelligent Setup This document is mainly to show you how to do intelligent setup. The following steps are applying to normal modules. 1. Click Screen Configuration click Receiver in the interface of Hardware

More information

Quick Guide for Photoshop CC Basics April 2016 Training:

Quick Guide for Photoshop CC Basics April 2016 Training: Photoshop CC Basics Creating a New File 1. Click File > New 2. Keep Default Photoshop Size selected in the Preset drop-down list. 3. Click OK. Showing Rulers 1. On the Menu bar, click View. 2. Click Rulers.

More information

Question 1 (10 points) Write the correct answer in each of the following: a) Write a Processing command to create a canvas of 400x300 pixels:

Question 1 (10 points) Write the correct answer in each of the following: a) Write a Processing command to create a canvas of 400x300 pixels: Question 1 (10 points) Write the correct answer in each of the following: a) Write a Processing command to create a canvas of 400x300 pixels: size(400, 300); b) After the above command is carried out,

More information

Intersecting Frame (Photoshop)

Intersecting Frame (Photoshop) Intersecting Frame (Photoshop) Tip of the Week by Jen White on October 4, 2011 Sometimes you feel like a nut. Sometimes you don t. I ve got that little Almond Joy jingle stuck in my head! It was driving

More information

AGENDA. :: Homework Upload. :: Photoshop Lesson 4: Creating a PSD Wireframe [Homepage] I. DOCUMENT SET-UP: II. DRAWING SHAPES III.

AGENDA. :: Homework Upload. :: Photoshop Lesson 4: Creating a PSD Wireframe [Homepage] I. DOCUMENT SET-UP: II. DRAWING SHAPES III. CLASS :: 04 MULTIMEDIA TOOLS :: CLASS NOTES 10.02 2017 AGENDA :: Homework Upload [ A-2 ] Ultimate Composite! Upload A-2 Project to Student PSD Folder :: Photoshop Lesson 4: Creating a PSD Wireframe [Homepage]

More information

CSC 101: Lab Manual#11 Programming Turtle Graphics in Python Lab due date: 5:00pm, day after lab session

CSC 101: Lab Manual#11 Programming Turtle Graphics in Python Lab due date: 5:00pm, day after lab session CSC 101: Lab Manual#11 Programming Turtle Graphics in Python Lab due date: 5:00pm, day after lab session Purpose: The purpose of this lab is to get a little introduction to the process of computer programming

More information

CAS London CPD Day February 16

CAS London CPD Day February 16 Practical Sheet: GUI Programming This sheet is a set of exercises for introducing GUI programming in Python using Tkinter, assuming knowledge of basic Python programming. All materials are at http://www.eecs.qmul.ac.uk/~william/cas-london-2016.html

More information

Motic Images Plus 3.0 ML Software. Windows OS User Manual

Motic Images Plus 3.0 ML Software. Windows OS User Manual Motic Images Plus 3.0 ML Software Windows OS User Manual Motic Images Plus 3.0 ML Software Windows OS User Manual CONTENTS (Linked) Introduction 05 Menus and tools 05 File 06 New 06 Open 07 Save 07 Save

More information

:: MULTIMEDIA TOOLS :: CLASS NOTES

:: MULTIMEDIA TOOLS :: CLASS NOTES CLASS :: 04 02.15 2017 AGENDA :: Homework Upload [ A-2 ] Ultimate Composite! Upload A-2 Project to Student PSD Folder :: Photoshop Lesson 4: Creating a PSD Wireframe [Homepage] I. DOCUMENT SET-UP: a. Dimensions

More information

Photoshop Domain 3: Understanding Adobe Photoshop CS 5

Photoshop Domain 3: Understanding Adobe Photoshop CS 5 Photoshop Domain 3: Understanding Adobe Photoshop CS 5 Adobe Creative Suite 5 ACA Certification Preparation: Featuring Dreamweaver, Flash, and Photoshop 1 Objectives Identify elements of the Photoshop

More information

15-110: Principles of Computing, Spring 2018

15-110: Principles of Computing, Spring 2018 15-110: Principles of Computing, Spring 2018 Problem Set 5 (PS5) Due: Friday, February 23 by 2:30PM via Gradescope Hand-in HANDIN INSTRUCTIONS Download a copy of this PDF file. You have two ways to fill

More information

Solution Notes. COMP 151: Terms Test

Solution Notes. COMP 151: Terms Test Family Name:.............................. Other Names:............................. ID Number:............................... Signature.................................. Solution Notes COMP 151: Terms

More information

Appendix 1: Manual for Fovea Software

Appendix 1: Manual for Fovea Software 1 Appendix 1: Manual for Fovea Software Fovea is a software to calculate foveal width and depth by detecting local maxima and minima from fovea images in order to estimate foveal depth and width. This

More information

ACS-1805 Introduction to Programming (with App Inventor)

ACS-1805 Introduction to Programming (with App Inventor) ACS-1805 Introduction to Programming (with App Inventor) Chapter 8 Creating Animated Apps 10/25/2018 1 What We Will Learn The methods for creating apps with simple animations objects that move Including

More information

Lab 2. Hanz Cuevas Velásquez, Bob Fisher Advanced Vision School of Informatics, University of Edinburgh Week 3, 2018

Lab 2. Hanz Cuevas Velásquez, Bob Fisher Advanced Vision School of Informatics, University of Edinburgh Week 3, 2018 Lab 2 Hanz Cuevas Velásquez, Bob Fisher Advanced Vision School of Informatics, University of Edinburgh Week 3, 2018 This lab will focus on learning simple image transformations and the Canny edge detector.

More information

COMPSCI 119 Extra Credit Lab #2 Bar Codes Professor William T. Verts

COMPSCI 119 Extra Credit Lab #2 Bar Codes Professor William T. Verts Introduction and Background COMPSCI 119 Extra Credit Lab #2 Bar Codes Professor William T. Verts In this assignment you are to create bar codes from user input. There are two common bar codes in use today,

More information

Create a unit using United Streaming and PowerPoint. Materials: Microsoft PowerPoint, Internet access, United Streaming account

Create a unit using United Streaming and PowerPoint. Materials: Microsoft PowerPoint, Internet access, United Streaming account Create a unit using United Streaming and PowerPoint Materials: Microsoft PowerPoint, Internet access, United Streaming account Find United Streaming Clips: 1. Decide on a topic for your unit. 2. Search

More information

EXAMINATIONS 2016 TRIMESTER 2

EXAMINATIONS 2016 TRIMESTER 2 EXAMINATIONS 2016 TRIMESTER 2 CGRA 151 INTRODUCTION TO COMPUTER GRAPHICS Time Allowed: TWO HOURS CLOSED BOOK Permitted materials: Silent non-programmable calculators or silent programmable calculators

More information

Building Java Programs

Building Java Programs Building Java Programs Graphics reading: Supplement 3G videos: Ch. 3G #1-2 Objects (briefly) object: An entity that contains data and behavior. data: Variables inside the object. behavior: Methods inside

More information

Adobe Photoshop Elements 2.0 Lessons for Educators

Adobe Photoshop Elements 2.0 Lessons for Educators Adobe Photoshop Elements 2.0 Lessons for Educators April Fool s Day Project Adobe Education April Fool s Day Project This project takes advantage of many of the tools in the Adobe Photoshop Elements toolbox

More information

CISC 1600 Lecture 3.1 Introduction to Processing

CISC 1600 Lecture 3.1 Introduction to Processing CISC 1600 Lecture 3.1 Introduction to Processing Topics: Example sketches Drawing functions in Processing Colors in Processing General Processing syntax Processing is for sketching Designed to allow artists

More information

Body. Chapter 1. Simple Machines. A. New Part. Step 1. Click File Menu > New.

Body. Chapter 1. Simple Machines. A. New Part. Step 1. Click File Menu > New. Chapter 1 A. New Part. Step 1. Click File Menu > New. Simple Machines Body Step 2. Click Part from the list and click OK, Fig. 1. B. Sketch Construction Rectangle. Step 1. Click Right Plane in the Feature

More information

Text Tricks Text # 1 Fill Text with an image

Text Tricks Text # 1 Fill Text with an image Text Tricks Text # 1 Fill Text with an image (save as Image_Text_1.jpg) Make sure that the picture is bigger than the text. Open the image you want to put in the text. Click on CTRL+A to select it all.

More information

My dear students, Believe in yourselves. Believe in your abilities. You can DO this! -Dr. M

My dear students, Believe in yourselves. Believe in your abilities. You can DO this! -Dr. M 1/29 2/22 3/12 4/8 5/9 6/20 otal/100 Please do not write in the spaces above. Directions: You have 50 minutes in which to complete this exam. You must show all work, or risk losing credit. Be sure to answer

More information

Zombies! In Google SketchUp

Zombies! In Google SketchUp In showing my SketchUp students the procedure to create the chat model (one of the other projects included in this month s set), I started with a model that included two 2D people downloaded from the 3D

More information

2. If a window pops up that asks if you want to customize your color settings, click No.

2. If a window pops up that asks if you want to customize your color settings, click No. Practice Activity: Adobe Photoshop 7.0 ATTENTION! Before doing this practice activity you must have all of the following materials saved to your USB: runningshoe.gif basketballshoe.gif soccershoe.gif baseballshoe.gif

More information

SSEA Newbies Handout 09 Summer 2012 August 17 th, 2012 Assignment 4: Bouncing Ball and Bizz Bazz Buzz

SSEA Newbies Handout 09 Summer 2012 August 17 th, 2012 Assignment 4: Bouncing Ball and Bizz Bazz Buzz SSEA Newbies Handout 09 Summer 2012 August 17 th, 2012 Assignment 4: Bouncing Ball and Bizz Bazz Buzz For the next week (from today until next Thursday), you ll be implementing a pair of programs that

More information

Making Backgrounds With Paint Shop Pro

Making Backgrounds With Paint Shop Pro Making Backgrounds With Paint Shop Pro A good Web site deserves a good background. Whether you decide on a single color, a faded repeated logo, a textured tile, or a border, the background of your Web

More information

INKSCAPE BASICS. 125 S. Prospect Avenue, Elmhurst, IL (630) elmhurstpubliclibrary.org. Create, Make, and Build

INKSCAPE BASICS. 125 S. Prospect Avenue, Elmhurst, IL (630) elmhurstpubliclibrary.org. Create, Make, and Build INKSCAPE BASICS Inkscape is a free, open-source vector graphics editor. It can be used to create or edit vector graphics like illustrations, diagrams, line arts, charts, logos and more. Inkscape uses Scalable

More information

Problem 1.1 (3 pts) :Python uses atomic data types and builds up from there. Give an example of: a. an int b. a double c. a string

Problem 1.1 (3 pts) :Python uses atomic data types and builds up from there. Give an example of: a. an int b. a double c. a string Lab 1: Due Sunday, Feb 28, midnight This is a paired programming lab: In this lab you will work in pairs. In lab, you will choose your partner for the next two weeks. Get your partner s name and email

More information

FIREWORKS TRICKS AND TIPS CS6

FIREWORKS TRICKS AND TIPS CS6 FIREWORKS TRICKS AND TIPS CS6 Here are some cool things you can do with Fireworks to create wonderful works of art! SHAPES AND EFFECTS Draw a shape with the shape tool. Fill with color. Change the line

More information

Create a Swirly Lollipop Using the Spiral Tool Philip Christie on Jun 13th 2012 with 12 Comments

Create a Swirly Lollipop Using the Spiral Tool Philip Christie on Jun 13th 2012 with 12 Comments Advertise Here Create a Swirly Lollipop Using the Spiral Tool Philip Christie on Jun 13th 2012 with 12 Comments Tutorial Details Program: Adobe Illustrator CS5 Difficulty: Beginner Es timated Completion

More information

GIMP WEB 2.0 ICONS. GIMP is all about IT (Images and Text) OPEN GIMP

GIMP WEB 2.0 ICONS. GIMP is all about IT (Images and Text) OPEN GIMP GIMP WEB 2.0 ICONS Web 2.0 Banners: Download E-Book WEB 2.0 ICONS: DOWNLOAD E-BOOK OPEN GIMP GIMP is all about IT (Images and Text) Step 1: To begin a new GIMP project, from the Menu Bar, select File New.

More information

7-2 Similarity and Transformations

7-2 Similarity and Transformations 7-2 Similarity and Transformations Warm Up Lesson Presentation Lesson Quiz Holt Geometry McDougal Geometry Warm Up Find the image point when the indicated transformation is applied to the given pre-image

More information

Drawing a Circle. 78 Chapter 5. geometry.pyde. def setup(): size(600,600) def draw(): ellipse(200,100,20,20) Listing 5-1: Drawing a circle

Drawing a Circle. 78 Chapter 5. geometry.pyde. def setup(): size(600,600) def draw(): ellipse(200,100,20,20) Listing 5-1: Drawing a circle 5 Transforming Shapes with Geometry In the teahouse one day Nasrudin announced he was selling his house. When the other patrons asked him to describe it, he brought out a brick. It s just a collection

More information

CS 160: Lecture 10. Professor John Canny Spring 2004 Feb 25 2/25/2004 1

CS 160: Lecture 10. Professor John Canny Spring 2004 Feb 25 2/25/2004 1 CS 160: Lecture 10 Professor John Canny Spring 2004 Feb 25 2/25/2004 1 Administrivia In-class midterm on Friday * Closed book (no calcs or laptops) * Material up to last Friday Lo-Fi Prototype assignment

More information

c.def (pronounced SEE-def) Language Reference Manual

c.def (pronounced SEE-def) Language Reference Manual c.def (pronounced SEE-def) Macromedia Flash TM animation language Language Reference Manual Dennis Rakhamimov (dr524@columbia.edu), Group Leader Eric Poirier (edp29@columbia.edu) Charles Catanach (cnc26@columbia.edu)

More information

An Introduction to Processing

An Introduction to Processing An Introduction to Processing Creating static drawings Produced by: Mairead Meagher Dr. Siobhán Drohan Department of Computing and Mathematics http://www.wit.ie/ Topics list Coordinate System in Computing.

More information

Spring 2009 Prof. Hyesoon Kim

Spring 2009 Prof. Hyesoon Kim Spring 2009 Prof. Hyesoon Kim Application Geometry Rasterizer CPU Each stage cane be also pipelined The slowest of the pipeline stage determines the rendering speed. Frames per second (fps) Executes on

More information

SPRINGBOARD UNIT 5 GEOMETRY

SPRINGBOARD UNIT 5 GEOMETRY SPRINGBOARD UNIT 5 GEOMETRY 5.1 Area and Perimeter Perimeter the distance around an object. To find perimeter, add all sides. Area the amount of space inside a 2 dimensional object. Measurements for area

More information

COMPUTING SCIENCE 3Z: PROGRAMMING LANGUAGES 3

COMPUTING SCIENCE 3Z: PROGRAMMING LANGUAGES 3 Tuesday, 28 May 2009 2.00 pm 3.30 pm (Duration: 1 hour 30 minutes) DEGREES OF MSci, MEng, BEng, BSc, MA and MA (Social Sciences) COMPUTING SCIENCE 3Z: PROGRAMMING LANGUAGES 3 Answer all 4 questions. This

More information