SSEA Newbies Handout 09 Summer 2012 August 17 th, 2012 Assignment 4: Bouncing Ball and Bizz Bazz Buzz
|
|
- Rhoda Norman
- 5 years ago
- Views:
Transcription
1 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 make use of your recently acquired programming skills. The first program works to implement a bouncing ball animation, and the second helps use get better at a game called Bizz Bazz Buzz. The bouncing ball application is complex, but still short enough that you shouldn t feel any pressure to decompose and define your own helper methods. The second, however, in substantial enough that you should definitely decompose and define your own methods. We ll work in class today and on Tuesday to ensure that you re outfitted to succeed in building programs that benefit from these new decomposition techniques. Due: Thursday, August 23 rd at 4:00 p.m. Problem 1: Bouncing Ball Implement a GraphicsProgram that bounces a ball within the boundaries of the graphics window. Your program should begin by placing a red circle (50 pixels in diameter) at the center of the graphics window. Every 10 milliseconds, your program should shift the position of the ball by dx and dy pixels, where both dx and dy initially have the value of one. Whenever the leading edge of the ball touches one of the window boundaries, your program should make the ball bounce by negating the value of dx and dy, as appropriate. (If you re interested, you might have the ball change colors every time it bounces maybe have it rotate through red, orange, magenta, black, green, blue, gray, and cyan.) The bouncing ball s itinerary would take it from the center of the screen in a southeasterly direction. It would eventually bounce and head northeast until it bounced off the eastern wall. The first few seconds of the application would see the bouncing ball trace through the path outlined in the following snapshot. The ball would travel from the center (shown as the checkered ball) through the dashed line to the be-bricked ball and continue on from there.
2 2 Don t worry about figuring out how to get the program to stop. For this exercise, you should use a while (true) loop so that the program just keeps on bouncing the ball until you close the window. There is one GOval method you should use to shift the location of the oval to a new spot: setlocation. setlocation takes a new x and y value that defines the new upper left coordinate of the rectangle circumscribing the oval. Consider this code snippet: public void run() { GOval circle = new GOval(0, 0, 10, 10); add(circle); pause(1000); circle.setlocation(50, 50); } The above would create a small circle that when added would hug the upper left corner of the canvas. The circle would sit there for a full second (or 1000 milliseconds) before being relocated 50 pixels to the right and 50 pixels down. In particular, don t create a new GOval with each iteration just move the original one around.
3 3 Problem 2: Bizz Bazz Buzz Bizz Bazz Buzz is a multiple player game where everyone sits in a circle ala duck-duckgoose and counts off consecutive numbers in a round robin manner. One person says 1, the person next to him says 2, the person next to her says 3, and so on in one big, merry loop. Play continues until someone either takes too long or makes a mistake, and the person who messes up leaves the circle and play resumes with those who remain. Now, counting off numbers is fairly easy easy enough that even a circle of drunken imbeciles could play for a very long time. The twist: whenever you get to a number that s a multiple of 3, 5, or 7 and/or includes any one of those three digits, you don t say the number itself, but you say something else. The rules outlined below dictate what you should say instead: If the number is a multiple of 3 and/or the digit 3 appears one or more times, then you don t say the number. Instead, you say the word "bizz" if it s a multiple of three, and you say "bizz" for every 3 that appears. For example: o You wouldn t say 13. You d say "bizz", because 13 contains a single 3. o You wouldn t say 233. You d instead say "bizz bizz", because 3 appears twice. o You wouldn t say 333. You d actually say "bizz bizz bizz bizz, because it s a multiple of 3, and because the digit 3 appears three times equals 4. Fun! If the number is a multiple of 5 and/or the digit 5 appears one or more times, then you don t say the number; rather, you say something involving the word "bazz". 5 is to "bazz" as 3 is to "bizz". For example: o You wouldn t say 52. No, you d say "bazz, because a single 5 appears as the first digit. o You wouldn t say 25. You d say "bazz bazz" instead. 25 is a multiple of 5, and the digit 5 appears exactly one time. o You wouldn t say 55. It s actually "bazz bazz bazz". If the number is a multiple of 3 and 5, and/or both digits appear, you say something involving a combination of "bizz" and "bazz". o You wouldn t say 35. It s a multiple of 5, and it contains a 3 and also a 5. So you d say "bizz bazz bazz". The same goes for the digit 7, except it s paired with the word "buzz". o 77 isn t 77. It s actually "buzz buzz buzz". It s a multiple of 7. It has two 7s. Hence, you say buzz" three times. Woo.
4 o 105 isn t 105. It s really "bizz bazz bazz buzz". 105 equals 3 times 5 times 7, and there s a 5 in there! Four words! Those numbers having nothing to do with 3s, 5s, and 7s are printed as is: 2, 8, 29, and 44 are examples. The Program The program is conceptually straightforward: You need to write a program that generates what should be said for the numbers 1 through 100 during a game of Bizz Bazz Buzz. The program output should look something like this: Here's a program that'll help you master the game of Bizz Bazz Buzz!! ) 1 2.) 2 3.) bizz bizz 4.) 4 5.) bazz bazz 6.) bizz 7.) buzz buzz 8.) 8 9.) bizz 10.) bazz 11.) ) bizz 13.) bizz 14.) buzz 15.) bizz bazz bazz output for 16 through 94 has been excluded from handout, just to save paper 95.) bazz bazz 96.) bizz 97.) buzz 98.) buzz 99.) bizz 100.) bazz The Approach I ve provided you with starter code, which includes the implementation of a method called countoccurrences. At the moment, the run method includes some calls to the countoccurrences method to demonstrate that it works as intended. Once you get a chance to run the sample program a few times (look at the Newbies web site for a demo) and look over the code I give you, you ll want to start hacking. Here s how I want you to proceed: 1. Introduce a new method called countnumtimestosay, which has the following prototype: 4
5 private int countnumtimestosay(int number, int digit) { 5 Implement countnumtimestosay to return the number of times a word should appear in what gets printed on behalf of the specified number, either because the digit appears in number one or more times, number is a multiple of digit, or both. Your implementation should call of the countoccurrences method, because the number that countnumtimestosay needs to return is always equal to or just one more than whatever countoccurrences returns. Note that you don t actually pass the word (i.e. "bizz" or "bazz"), because the word itself doesn t influence what gets returned. Once you ve implemented countnumtimestosay, change the last half of the run method. Get rid of the lines that test countoccurrences, and replace it with similar code that tests countnumtimestosay. It s completely up to you what you write here, but you might include these if it ll help you get started. println("number of bizzes in 133: " + countnumtimestosay(133, 3)); println("number of buzzes in 7217:" + countnumtimestosay(7217, 7)); The truly ambitious programmer will write a good number of these to ensure the countnumtimestosay method works the way we need it to. 2. Making use of the countnumtimestosay method you just wrote, introduce a method called printnumber, which has the following prototype: private void printnumber(int number) { The method decides whether the supplied number should be printed as is, or if it should be printed as a combination of bizzes, bazzes, and/or buzzes. It also prints whatever should be printed. Once you have an implementation you suspect it pretty good, go ahead and erase the code that tested countnumtimestosay and replace it with code that tests printnumber. 3. Finally, remove all test code from the run method, and add a simple for loop that prints out the numbers 1 through 100, using the printnumber method. There s a lot on your plate, but with your smarts and your drive to succeed, I am super duper confident you ll finish both of these programs and live to brag about it.
Assignment #3 Breakout!
Eric Roberts Handout #18 CS 106A January 26, 2005 Assignment #3 Breakout! Due: Friday, February 4, 5:00P.M. Your job in this assignment is to write the classic arcade game of Breakout. It is a large assignment,
More informationSmoother Graphics Taking Control of Painting the Screen
It is very likely that by now you ve tried something that made your game run rather slow. Perhaps you tried to use an image with a transparent background, or had a gazillion objects moving on the window
More informationOrbBasic Lesson 1 Goto and Variables: Student Guide
OrbBasic Lesson 1 Goto and Variables: Student Guide Sphero MacroLab is a really cool app to give the Sphero commands, but it s limited in what it can do. You give it a list of commands and it starts at
More information[ the academy_of_code] Senior Beginners
[ the academy_of_code] Senior Beginners 1 Drawing Circles First step open Processing Open Processing by clicking on the Processing icon (that s the white P on the blue background your teacher will tell
More informationOrbBasic 1: Student Guide
OrbBasic 1: Student Guide Sphero MacroLab is a really cool app to give the Sphero commands, but it s limited in what it can do. You give it a list of commands and it starts at the top and goes to the bottom,
More informationThe name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet.
Mr G s Java Jive #2: Yo! Our First Program With this handout you ll write your first program, which we ll call Yo. Programs, Classes, and Objects, Oh My! People regularly refer to Java as a language that
More informationPractice Midterm Examination #1
Eric Roberts Handout #35 CS106A May 2, 2012 Practice Midterm Examination #1 Review session: Sunday, May 6, 7:00 9:00 P.M., Hewlett 200 Midterm exams: Tuesday, May 8, 9:00 11:00 A.M., CEMEX Auditorium Tuesday,
More informationCS 134 Programming Exercise 3:
CS 134 Programming Exercise 3: Repulsive Behavior Objective: To gain experience implementing classes and methods. Note that you must bring a program design to lab this week! The Scenario. For this lab,
More information2SKILL. Variables Lesson 6. Remembering numbers (and other stuff)...
Remembering numbers (and other stuff)... Let s talk about one of the most important things in any programming language. It s called a variable. Don t let the name scare you. What it does is really simple.
More information+ Inheritance. Sometimes we need to create new more specialized types that are similar to types we have already created.
+ Inheritance + Inheritance Classes that we design in Java can be used to model some concept in our program. For example: Pokemon a = new Pokemon(); Pokemon b = new Pokemon() Sometimes we need to create
More informationAnimations involving numbers
136 Chapter 8 Animations involving numbers 8.1 Model and view The examples of Chapter 6 all compute the next picture in the animation from the previous picture. This turns out to be a rather restrictive
More informationChapter01.fm Page 1 Monday, August 23, :52 PM. Part I of Change. The Mechanics. of Change
Chapter01.fm Page 1 Monday, August 23, 2004 1:52 PM Part I The Mechanics of Change The Mechanics of Change Chapter01.fm Page 2 Monday, August 23, 2004 1:52 PM Chapter01.fm Page 3 Monday, August 23, 2004
More informationCS Problem Solving and Object-Oriented Programming
CS 101 - Problem Solving and Object-Oriented Programming Lab 5 - Draw a Penguin Due: October 28/29 Pre-lab Preparation Before coming to lab, you are expected to have: Read Bruce chapters 1-3 Introduction
More informationUV Mapping to avoid texture flaws and enable proper shading
UV Mapping to avoid texture flaws and enable proper shading Foreword: Throughout this tutorial I am going to be using Maya s built in UV Mapping utility, which I am going to base my projections on individual
More informationPractice Final Examination #2
Eric Roberts Handout #61 CS 106A May 30, 2012 Practice Final Examination #2 Review session: Wednesday, June 6, 7:30 9:30 P.M. (Hewlett 200) Scheduled finals: Friday, June 8, 8:30 11:30 A.M. (Dinkelspiel
More informationAssignment 5: Part 1 (COMPLETE) Sprites on a Plane
Assignment 5: Part 1 (COMPLETE) Sprites on a Plane COMP-202B, Winter 2011, All Sections Due: Wednesday, April 6, 2011 (13:00) This assignment comes in TWO parts. Part 2 of the assignment will be published
More informationICS 61 Game Systems and Design Introduction to Scratch
ICS 61, Winter, 2015 Introduction to Scratch p. 1 ICS 61 Game Systems and Design Introduction to Scratch 1. Make sure your computer has a browser open at the address http://scratch.mit.edu/projects/editor/.
More informationCS125 : Introduction to Computer Science. Lecture Notes #11 Procedural Composition and Abstraction. c 2005, 2004 Jason Zych
CS125 : Introduction to Computer Science Lecture Notes #11 Procedural Composition and Abstraction c 2005, 2004 Jason Zych 1 Lecture 11 : Procedural Composition and Abstraction Solving a problem...with
More informationAnimations that make decisions
Chapter 17 Animations that make decisions 17.1 String decisions Worked Exercise 17.1.1 Develop an animation of a simple traffic light. It should initially show a green disk; after 5 seconds, it should
More informationSimple Glass TNT Molecule Tutorial
Simple Glass TNT Molecule Tutorial Quinten Kilborn Today, I ll be showing you how to make an awesome looking glass TNT molecule. I was messing with glass textures and found that it makes an awesome science
More informationAdobe Flash CS3 Reference Flash CS3 Application Window
Adobe Flash CS3 Reference Flash CS3 Application Window When you load up Flash CS3 and choose to create a new Flash document, the application window should look something like the screenshot below. Layers
More informationLaboratory 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 informationMastering Truspace 7
How to move your Truespace models in Dark Basic Pro by Vickie Eagle Welcome Dark Basic Users to the Vickie Eagle Truspace Tutorials, In this first tutorial we are going to build some basic landscape models
More informationPolygons and Angles: Student Guide
Polygons and Angles: Student Guide You are going to be using a Sphero to figure out what angle you need the Sphero to move at so that it can draw shapes with straight lines (also called polygons). The
More informationCreating a Brochure in Publisher
Creating a Brochure in Publisher If you closed the Flyer, as indicated above, you will see the Microsoft Publisher Task Pane on the left side of your screen. Click the Brochures selection in the Publication
More informationENGR 40M Project 3c: Coding the raindrop pattern
ENGR 40M Project 3c: Coding the raindrop pattern For due dates, see the overview handout The raindrop pattern works like this: Once per time period (say, 150 ms), (a) move the pattern one plane down: the
More informationLearn to make watchosle
HACKING WITH SWIFT COMPLETE TUTORIAL COURSE Learn to make watchosle P apps with real-worldam S Swift projects REEPaul Hudson F Project 1 NoteDictate 2 www.hackingwithswift.com Setting up In this project
More information: 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 information2. Click on the Freeform Pen Tool. It looks like the image to the right. If it s not showing, right click on that square and choose it from the list.
This tutorial will walk you through how to use Paths in Photoshop. It explains the general workings of paths, as well as how to use them to do specific tasks. Tasks such as how to create vector shapes
More informationMaking a maze with Scratch
Making a maze with Scratch Can you make it to the end? Student guide An activity by the Australian Computing Academy Let s go! Step 0: Get started Go to www.scratch.mit.edu Sign in with the username and
More informationCom S 227 Spring 2018 Assignment points Due Date: Thursday, September 27, 11:59 pm (midnight) "Late" deadline: Friday, September 28, 11:59 pm
Com S 227 Spring 2018 Assignment 2 200 points Due Date: Thursday, September 27, 11:59 pm (midnight) "Late" deadline: Friday, September 28, 11:59 pm (Remember that Exam 1 is MONDAY, October 1.) General
More informationCS125 : Introduction to Computer Science. Lecture Notes #38 and #39 Quicksort. c 2005, 2003, 2002, 2000 Jason Zych
CS125 : Introduction to Computer Science Lecture Notes #38 and #39 Quicksort c 2005, 2003, 2002, 2000 Jason Zych 1 Lectures 38 and 39 : Quicksort Quicksort is the best sorting algorithm known which is
More informationBUYING DECISION CRITERIA WHEN DEVELOPING IOT SENSORS
BUYING DECISION CRITERIA WHEN DEVELOPING IOT SENSORS PHILIP POULIDIS VIDEO TRANSCRIPT What is your name and what do you do? My name is Philip Poulidis and I m the VP and General Manager of Mobile and Internet
More informationCMPSCI 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 informationSNOWFLAKES PHOTO BORDER - PHOTOSHOP CS6 / CC
Photo Effects: Snowflakes Photo Border (Photoshop CS6 / CC) SNOWFLAKES PHOTO BORDER - PHOTOSHOP CS6 / CC In this Photoshop tutorial, we ll learn how to create a simple and fun snowflakes photo border,
More informationAssignment 3 Functions, Graphics, and Decomposition
Eric Roberts Handout #19 CS106A October 8, 1999 Assignment 3 Functions, Graphics, and Decomposition Due: Friday, October 15 [In] making a quilt, you have to choose your combination carefully. The right
More informationBurning CDs in Windows XP
B 770 / 1 Make CD Burning a Breeze with Windows XP's Built-in Tools If your PC is equipped with a rewritable CD drive you ve almost certainly got some specialised software for copying files to CDs. If
More informationAccounts and Passwords
Accounts and Passwords Hello, I m Kate and we re here to learn how to set up an account on a website. Many websites allow you to create a personal account. Your account will have its own username and password.
More informationOperating System Principles: Memory Management Swapping, Paging, and Virtual Memory CS 111. Operating Systems Peter Reiher
Operating System Principles: Memory Management Swapping, Paging, and Virtual Memory Operating Systems Peter Reiher Page 1 Outline Swapping Paging Virtual memory Page 2 Swapping What if we don t have enough
More informationENCM 339 Fall 2017: Editing and Running Programs in the Lab
page 1 of 8 ENCM 339 Fall 2017: Editing and Running Programs in the Lab Steve Norman Department of Electrical & Computer Engineering University of Calgary September 2017 Introduction This document is a
More informationAdapted from slides by Brahm Capoor. Breakout YEAH hours. Michael (Chung Troute)
Adapted from slides by Brahm Capoor Breakout YEAH hours Michael (Chung Troute) Road Map Lecture Review Graphics Animation Events Using the debugger Assignment Overview Q&A! Graphics GRect rect = new GRect(50,
More informationName: Date: Multimedia Graphics and Web Publishing Mr. Dietzler. Flash Topics TWEENING AND MOTION GUIDES
Name: Date: Multimedia Graphics and Web Publishing Mr. Dietzler Flash Topics TWEENING AND MOTION GUIDES TWEENING: Motion Tweening: The most basic type of tweening is Motion Tweening in which you specify
More informationAssignment 2: Welcome to Java!
CS106A Winter 2011-2012 Handout #12 January 23, 2011 Assignment 2: Welcome to Java! Based on a handout by Eric Roberts and Mehran Sahami Having helped Karel the Robot through the challenges of Assignment
More informationLearn a lot beyond the conventional VLOOKUP
The Ultimate Guide Learn a lot beyond the conventional VLOOKUP Hey there, Howdy? =IF ( you are first timer at Goodly, Then a very warm welcome here, Else for all my regular folks you know I love you :D
More informationObjects and Graphics
Objects and Graphics One Last Thought on Loops... Looping Forever while loops iterate as long as their condition evaluates to true. A loop of the form while (true) will loop forever (unless something stops
More information1 LOGGING IN REQUEST A SUB (from the calendar) REQUEST A SUB (from Line Listing) ACCEPTING AN INVITATION TO BE A SUB...
SHORELINE SENIOR MEN S TENNIS USER GUIDE FOR MYTENNISGROUP.COM Copyright 2013 by Richard Yanowitz on behalf of the Shoreline (CT) Senior Men s Tennis Group This document walks you through the basics of
More informationOn the Web sun.com/aboutsun/comm_invest STAROFFICE 8 DRAW
STAROFFICE 8 DRAW Graphics They say a picture is worth a thousand words. Pictures are often used along with our words for good reason. They help communicate our thoughts. They give extra information that
More informationLab 4: On Lists and Light Sabers
Lab 4: On Lists and Light Sabers Due: March 19th at 11:59pm Overview The goal of this lab is to familiarize yourself with the usage of Lists and their implementations, Array List and Linked. To do so,
More informationthe NXT-G programming environment
2 the NXT-G programming environment This chapter takes a close look at the NXT-G programming environment and presents a few simple programs. The NXT-G programming environment is fairly complex, with lots
More informationIt s possible to get your inbox to zero and keep it there, even if you get hundreds of s a day.
It s possible to get your email inbox to zero and keep it there, even if you get hundreds of emails a day. It s not super complicated, though it does take effort and discipline. Many people simply need
More informationCS311 - Neural Nets Lab Thursday, April 11
CS311 - Neural Nets Lab Thursday, April 11 In class today we re going to be playing with a software that simulates neural networks to get a better feeling for how they work, how they can be used to solve
More information- 1 - Handout #33 March 14, 2014 JAR Files. CS106A Winter
CS106A Winter 2013-2014 Handout #33 March 14, 2014 JAR Files Handout by Eric Roberts, Mehran Sahami, and Brandon Burr Now that you ve written all these wonderful programs, wouldn t it be great if you could
More informationCSCI-1200 Data Structures Spring 2018 Lecture 14 Associative Containers (Maps), Part 1 (and Problem Solving Too)
CSCI-1200 Data Structures Spring 2018 Lecture 14 Associative Containers (Maps), Part 1 (and Problem Solving Too) HW6 NOTE: Do not use the STL map or STL pair for HW6. (It s okay to use them for the contest.)
More informationCS108, Stanford Handout #3. HW1 CodeCamp
CS108, Stanford Handout #3 Fall, 2008-09 Osvaldo Jiménez HW1 CodeCamp Thanks to Nick Parlante for much of this handout For this first homework, you will run through a series of small coding problems to
More informationSketchUp Quick Start For Surveyors
SketchUp Quick Start For Surveyors Reason why we are doing this SketchUp allows surveyors to draw buildings very quickly. It allows you to locate them in a plan of the area. It allows you to show the relationship
More informationCreating an Animated Navigation Bar in InDesign*
Creating an Animated Navigation Bar in InDesign* *for SWF or FLA export only Here s a digital dilemma: You want to provide navigation controls for readers, but you don t want to take up screen real estate
More informationNotes 3: Actionscript to control symbol locations
Notes 3: Actionscript to control symbol locations Okay, you now know enough actionscript to shoot yourself in the foot, especially if you don t use types. REMEMBER to always declare vars and specify data
More informationCoderDojo Activity Cards: The Cards (Animation2.html): How to use: Student comes to mentor, and together they choose a card to do next.
CoderDojo Activity Cards: How to use: Student comes to mentor, and together they choose a card to do next. The idea is always to choose a card that is interesting, and at the right level for the moment,
More informationPost Experiment Interview Questions
Post Experiment Interview Questions Questions about the Maximum Problem 1. What is this problem statement asking? 2. What is meant by positive integers? 3. What does it mean by the user entering valid
More informationCopy Music from CDs for Videos & Slideshows
Copy Music from CDs for Videos & Slideshows C 528 / 1 Easily Create Music to Use in Your Personal Video Projects Digital cameras make it easy to take pictures and movie clips, and programs like Windows
More informationCMPSCI 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 informationONLINE BOOKING GUIDE
ONLINE BOOKING GUIDE Table of Contents OVERVIEW & LOGGING IN... 2 SET UP & EDIT YOUR PROFILE... 4 BOOKING PREFERENCES TENNIS... 5 TENNIS BOOKINGS... 6 MAKE A BOOKING TENNIS... 6 MAKE A BOOKING SQUASH...
More informationInstalling and Using Trackside Cameras Revised November 2008
Installing and Using Trackside Cameras Revised November 2008 Trackside cameras are a useful and creative way to add visual interest to your route. Rather than just look out the windshield of the locomotive
More informationIn this lesson, you ll learn how to:
LESSON 5: ADVANCED DRAWING TECHNIQUES OBJECTIVES In this lesson, you ll learn how to: apply gradient fills modify graphics by smoothing, straightening, and optimizing understand the difference between
More informationMemory Management: Virtual Memory and Paging CS 111. Operating Systems Peter Reiher
Memory Management: Virtual Memory and Paging Operating Systems Peter Reiher Page 1 Outline Paging Swapping and demand paging Virtual memory Page 2 Paging What is paging? What problem does it solve? How
More informationTurn in a printout of your code exercises stapled to your answers to the written exercises by 2:10 PM on Tuesday, January 18th.
6.189 Homework 4 Readings How To Think Like A Computer Scientist: Wednesday: Make sure you ve finished Chapters 12-14 (all), & Chapter 16 (all); Thursday - get all readings finished! What to turn in Turn
More informationArtwork Guidelines YOUR KEEP-ME GUIDE TO SUPPLYING ARTWORK FOR UNBEELIEVABLY GOOD PRINTS
Artwork Guidelines YOUR KEEP-ME GUIDE TO SUPPLYING ARTWORK FOR UNBEELIEVABLY GOOD PRINTS Here at BeeNoticed it s our job to produce awesome branded products that create just the right kind of buzz for
More informationUsing GitHub to Share with SparkFun a
Using GitHub to Share with SparkFun a learn.sparkfun.com tutorial Available online at: http://sfe.io/t52 Contents Introduction Gitting Started Forking a Repository Committing, Pushing and Pulling Syncing
More informationHow to Get Your Inbox to Zero Every Day
How to Get Your Inbox to Zero Every Day MATT PERMAN WHATSBESTNEXT.COM It s possible to get your email inbox to zero and keep it there, even if you get hundreds of emails a day. It s not super complicated,
More informationIntroduction to Programming with JES
Introduction to Programming with JES Titus Winters & Josef Spjut October 6, 2005 1 Introduction First off, welcome to UCR, and congratulations on becoming a Computer Engineering major. Excellent choice.
More informationQuick 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 informationSimple Java YEAH Hours. Brahm Capoor and Vrinda Vasavada
Simple Java YEAH Hours Brahm Capoor and Vrinda Vasavada What are YEAH hours? Held soon after each assignment is released Help you to get an early start on your assignments Future dates TBA Slides will
More informationCOMP 161 Lecture Notes 16 Analyzing Search and Sort
COMP 161 Lecture Notes 16 Analyzing Search and Sort In these notes we analyze search and sort. Counting Operations When we analyze the complexity of procedures we re determine the order of the number of
More informationMobile Computing Professor Pushpedra Singh Indraprasth Institute of Information Technology Delhi Activity Logging Lecture 16
Mobile Computing Professor Pushpedra Singh Indraprasth Institute of Information Technology Delhi Activity Logging Lecture 16 Hello, last two classes we learned about activity life cycles and the call back
More informationChapter 2.6: Testing and running a solution
Chapter 2.6: Testing and running a solution 2.6 (a) Types of Programming Errors When programs are being written it is not surprising that mistakes are made, after all they are very complicated. There are
More informationDrawing 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 informationNotebook Assignments
Notebook Assignments These six assignments are a notebook using techniques from class in the single concrete context of graph theory. This is supplemental to your usual assignments, and is designed for
More informationIntroduction to VPython for E&M This tutorial will guide you through the basics of programming in VPython
Introduction to VPython for E&M This tutorial will guide you through the basics of programming in VPython VPython is a programming language that allows you to easily make 3-D graphics and animations. We
More informationJump to: Using AAUP Photos AAUP Logos Embedding the AAUP Twitter Feed Embedding the AAUP News Feed CREATING A WEBSITE
Jump to: Using AAUP Photos AAUP Logos Embedding the AAUP Twitter Feed Embedding the AAUP News Feed CREATING A WEBSITE You can make a simple, free chapter website using Google Sites. To start, go to https://sites.google.com/
More informationSection 1. System Technologies and Implications. Modules
System Technologies and Implications Modules 1.1 Introduction to computers 1.2 Software 1.3 Hardware 1.4 File management 1.5 ICTs in perspective 1.6 Extended software concepts 1.7 Extended hardware concepts
More informationPong in Unity a basic Intro
This tutorial recreates the classic game Pong, for those unfamiliar with the game, shame on you what have you been doing, living under a rock?! Go google it. Go on. For those that now know the game, this
More informationInstructions for the 3 Spinner & More Programs
Instructions for the 3 Spinner & More Programs Including instructions for importing slides from files. (The preferred way to move slides to another presentation) Instructions for Importing Slides from
More informationComputer 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 informationREVISITING THE SOLUTION TO RUBIK S CUBE
REVISITING THE SOLUTION TO RUBIK S CUBE Now that we know a lot about the mathematics behind Rubik s cube, it s time to take a closer at the solution we use. The first part, of course, is pretty easy. When
More informationLesson 9 Transcript: Backup and Recovery
Lesson 9 Transcript: Backup and Recovery Slide 1: Cover Welcome to lesson 9 of the DB2 on Campus Lecture Series. We are going to talk in this presentation about database logging and backup and recovery.
More informationTouring the Mac S e s s i o n 4 : S A V E, P R I N T, C L O S E & Q U I T
Touring the Mac S e s s i o n 4 : S A V E, P R I N T, C L O S E & Q U I T Touring_the_Mac_Session-4_Feb-22-2011 1 To store your document for later retrieval, you must save an electronic file in your computer.
More informationAssignment II: Calculator Brain
Assignment II: Calculator Brain Objective You will start this assignment by enhancing your Assignment 1 Calculator to include the changes made in lecture (i.e. CalculatorBrain, etc.). This is the last
More informationUnit 21 - Creating a Navigation Bar in Macromedia Fireworks
Unit 21 - Creating a Navigation Bar in Macromedia Fireworks Items needed to complete the Navigation Bar: Unit 21 - House Style Unit 21 - Graphics Sketch Diagrams Document ------------------------------------------------------------------------------------------------
More informationIntro to Event-Driven Programming
Unit 5. Lessons 1 to 5 AP CS P We roughly follow the outline of assignment in code.org s unit 5. This is a continuation of the work we started in code.org s unit 3. Occasionally I will ask you to do additional
More informationCreate your first workbook
Create your first workbook You've been asked to enter data in Excel, but you've never worked with Excel. Where do you begin? Or perhaps you have worked in Excel a time or two, but you still wonder how
More informationHow to Read AWStats. Why it s important to know your stats
How to Read AWStats Welcome to the world of owning a website. One of the things that both newbie and even old time website owners get overwhelmed by is their analytics and understanding the data. One of
More informationintroduction to Programming in C Department of Computer Science and Engineering Lecture No. #40 Recursion Linear Recursion
introduction to Programming in C Department of Computer Science and Engineering Lecture No. #40 Recursion Linear Recursion Today s video will talk about an important concept in computer science which is
More informationADDING CONDITIONAL STATEMENTS PART 2
Begin programming: Build your first mobile game ADDING CONDITIONAL STATEMENTS PART 2 This document complements the Steps provided in Week 3 for adding conditional statements. The game wouldn t be a game
More informationPart 1: Understanding Windows XP Basics
542362 Ch01.qxd 9/18/03 9:54 PM Page 1 Part 1: Understanding Windows XP Basics 1: Starting Up and Logging In 2: Logging Off and Shutting Down 3: Activating Windows 4: Enabling Fast Switching between Users
More informationInstructor (Mehran Sahami): All righty. Welcome back to yet another fun-filled, exciting day of CS106A.
Programming Methodology-Lecture16 Instructor (Mehran Sahami): All righty. Welcome back to yet another fun-filled, exciting day of CS106A. So it s the day before the midterm. This is kind of like, you know,
More informationData Structures and Algorithms Dr. Naveen Garg Department of Computer Science and Engineering Indian Institute of Technology, Delhi.
Data Structures and Algorithms Dr. Naveen Garg Department of Computer Science and Engineering Indian Institute of Technology, Delhi Lecture 18 Tries Today we are going to be talking about another data
More informationWe will start our journey into Processing with creating static images using commands available in Processing:
Processing Notes Chapter 1: Starting Out We will start our journey into Processing with creating static images using commands available in Processing: rect( ) line ( ) ellipse() triangle() NOTE: to find
More informationDay 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 informationGoogle SketchUp Design Exercise 1
Google SketchUp Design Exercise 1 The first thing students like to do in SketchUp is make a basic house and try out different colors and materials. They also love making windows and doors, and trying out
More informationRobotics and Electronics Unit 5
Robotics and Electronics Unit 5 Objectives. Students will work with mechanical push buttons understand the shortcomings of the delay function and how to use the millis function. In this unit we will use
More information