Introduction to z-tree: Day 2

Size: px
Start display at page:

Download "Introduction to z-tree: Day 2"

Transcription

1 Introduction to z-tree: Day 2 Andrew W. Bausch NYU Department of Politics bausch@nyu.edu January 10, 2012 Andrew W. Bausch January 10, / 27

2 Overview: Interactive Games Individual decision making experiments Subject s payoffs only depend on subject s own decisions Programs in the treatment only process information of a single subject Interactive experiments Payoffs of a subject also depend on the behavior of other subjects Programs have to access information from records of other subjects Andrew W. Bausch January 10, / 27

3 Overview: Interactive Games Matching Scope Operator & the same function Programming an experiment with interaction Andrew W. Bausch January 10, / 27

4 Matching Random Partner Matching In interactive experiments subjects are assigned into groups and the game is played repeatedly over several rounds Who interacts with whom in a given round? z-tree has built-in functions, but just as easy to do it yourself and you retain more control Andrew W. Bausch January 10, / 27

5 Matching Random Partner Matching In the first stage, create a one-line Program in the Subjects Table randgroup = random(); This generates a random number that we will use to create the groups End this program so the subjects can access each other s randgroup Andrew W. Bausch January 10, / 27

6 Matching Random Partner Matching continued Create a second Program in the Subjects Table right below the first Define GroupSize in Background ranking = count(randgroup >= : randgroup); ranking = ranking - 1; GroupNum = rounddown(ranking / GroupSize,1); We rank each subjects random number and make groups based on the ranking Andrew W. Bausch January 10, / 27

7 Matching Keeping the Same Groups Start with the same two programs as above wrap if(period == 1) around those programs in the second program, put an else statement else{ GroupNum= OLDsubjects.find(same(Subject), GroupNum); } z-tree normally only allows access the value of variables from the Subject s current period Use the OLDsubjects.find function to get each subject s previous value of GroupNum and passing it forward to the current round If we do this every round, the subjects keep the same GroupNum throughout the experiment Andrew W. Bausch January 10, / 27

8 Scope Operator Main Use Getting information from other subjects The scope operator is a colon : But, easier to read if you use the same function I primarily use the colon when applying a function ranking = count(randgroup >=: randgroup); Andrew W. Bausch January 10, / 27

9 same Function Passing Information between players Groupaverage = average(same(group), Contribution); Gets all contributions from a subjects group and uses the average function to calculate the group average Passing Information specific information from a player Choice3 = find(same(groupnum)&playernum == 3, Choice); Finds Player 3 in this subject s group and assigns Player 3 s Choice to a variable called Choice3 for all subjects You can create player numbers similar to the way we assigned groups Andrew W. Bausch January 10, / 27

10 The guessing game (beauty contest) Nagel, R. (1995). Unraveling in guessing games: An experimental study. American Economic Review, 85(5), Andrew W. Bausch January 10, / 27

11 The guessing game 6 subjects (2 groups of 3 subjects) Keep the same group throughout Subjects enter a number between 0 and 100 Subject closest to 2/3 of the group s average entry wins a prize of 60 points In case of a tie, the prize is shared equally among the winning group members Continue for 10 rounds Andrew W. Bausch January 10, / 27

12 Background variables Declare the variables we don t plan on changing by creating a new program under Background I keep them all in the subjects table Andrew W. Bausch January 10, / 27

13 Setting up Groups Andrew W. Bausch January 10, / 27

14 Getting a Random Number if(period ==1) { randgroup = random(); } Assigning the Groups if(period == 1) { ranking = count(randgroup >= : randgroup); ranking = ranking - 1; GroupNum = rounddown(ranking / GroupSize,1); } else { GroupNum = OLDsubjects.find(same(Subject), GroupNum); } Note: These must be in two separate programs Andrew W. Bausch January 10, / 27

15 Set the Active Screen for Stage 1 Can copy and paste from yesterday Minimum input is 0 Maximum input is 100 Andrew W. Bausch January 10, / 27

16 Get the Group Average Note that we are going to need to use three separate short programs Andrew W. Bausch January 10, / 27

17 Get the Group Average // Get the group average Groupaverage=average(same(GroupNum), guess); // find 2/3s of it twothirdsgroupave = Groupaverage*2/3; // Calculate the difference Diff = abs(guess - twothirdsgroupave); Andrew W. Bausch January 10, / 27

18 Calculate the lowest difference Andrew W. Bausch January 10, / 27

19 Calculate the lowest difference // Calculate the lowest difference for the group Best = minimum( same(groupnum), Diff); // See if this subject is the winner Winner = if(diff == Best, 1, 0); Andrew W. Bausch January 10, / 27

20 Find the Payoffs Andrew W. Bausch January 10, / 27

21 Find the Payoffs // Determine how many winners NumWinners = sum(same(groupnum), Winner); // Set the round payoff using the number of winners and //the Winner variable RoundPayoff = Prize*Winner / NumWinners; Andrew W. Bausch January 10, / 27

22 Conditional Displays We want to tell each subject is she won Add New Plot Text Set Display Condition Winner == 1 <> You won! You were one of < NumWinners 1 > winners Andrew W. Bausch January 10, / 27

23 Conditional Displays Or lost Add New Plot Text Set Display Condition Winner == 1 You Lost! Andrew W. Bausch January 10, / 27

24 Displaying the Payoff Add New Plot Text <> Your Payoff this round is < RoundPayoff.1 > Andrew W. Bausch January 10, / 27

25 Stage 1 Andrew W. Bausch January 10, / 27

26 Stage 2: Winners Andrew W. Bausch January 10, / 27

27 Stage 2: Losers Andrew W. Bausch January 10, / 27

research assistant at VSE/LEE course site: janvavra.github.io consultations by appointment

research assistant at VSE/LEE   course site: janvavra.github.io consultations by appointment research assistant at VSE/LEE email: vavra.jn@gmail.com consultations by appointment course site: janvavra.github.io presentations, guides for installation, links, code. currently under review, will email

More information

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

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

More information

ECE15: Lab #4. Problem 1. University of California San Diego

ECE15: Lab #4. Problem 1. University of California San Diego University of California San Diego ECE15: Lab #4 This lab is a cumulative wrap-up assignment for the entire course. As such, it relates to the material covered in Lecture Units 1 5 and 7 9 in class. Here

More information

Classwork 7: Craps. N. Duong & R. Rodriguez, Java Crash Course January 6, 2015

Classwork 7: Craps. N. Duong & R. Rodriguez, Java Crash Course January 6, 2015 Classwork 7: Craps N. Duong & R. Rodriguez, Java Crash Course January 6, 2015 For this classwork, you will be writing code for the game Craps. For those of you who do not know, Craps is a dice-rolling

More information

Tic Tac Toe Game! Day 8

Tic Tac Toe Game! Day 8 Tic Tac Toe Game! Day 8 Game Description We will be working on an implementation of a Tic-Tac-Toe Game. This is designed as a two-player game. As you get more involved in programming, you might learn how

More information

Standard EBU settings for EBUScore programs - Gordon Rainsford 5 January 2016

Standard EBU settings for EBUScore programs - Gordon Rainsford 5 January 2016 Standard EBU settings for EBUScore programs - Gordon Rainsford 5 January 2016 In the Club Event Details screen, ensure that the Club NBO No is set as EBU, and that the P2P rate is set as 99. If you are

More information

Java Outline (Upto Exam 2)

Java Outline (Upto Exam 2) Java Outline (Upto Exam 2) Part 4 IF s (Branches) and Loops Chapter 12/13 (The if Statement) Hand in Program Assignment#1 (12 marks): Create a program called Ifs that will do the following: 1. Ask the

More information

CMPT 100 : INTRODUCTION TO

CMPT 100 : INTRODUCTION TO CMPT 100 : INTRODUCTION TO COMPUTING TUTORIAL #5 : JAVASCRIPT 2 GUESSING GAME 1 By Wendy Sharpe BEFORE WE GET STARTED... If you have not been to the first tutorial introduction JavaScript then you must

More information

Introduction to Computer Science Unit 3. Programs

Introduction to Computer Science Unit 3. Programs Introduction to Computer Science Unit 3. Programs This section must be updated to work with repl.it Programs 1 to 4 require you to use the mod, %, operator. 1. Let the user enter an integer. Your program

More information

Review Chapter 6 in Bravaco. Short Answers 1. This type of method does not return a value. a. null b. void c. empty d. anonymous

Review Chapter 6 in Bravaco. Short Answers 1. This type of method does not return a value. a. null b. void c. empty d. anonymous Assignment 3 Methods Review CSC 123 Fall 2018 Notes: All homework must be submitted via e-mail. All parts of assignment must be submitted in a single e-mail with multiple attachments when required. Notes:

More information

Session 8.2. Finding Winners Using Arrays

Session 8.2. Finding Winners Using Arrays 1 Session 8.2 Finding Winners Using Arrays Chapter 8.2: Finding Winners Using Arrays 2 Session Overview Find out how the C# language makes it easy to create an array that contains multiple values of a

More information

Function Call Stack and Activation Records

Function Call Stack and Activation Records 71 Function Call Stack and Activation Records To understand how C performs function calls, we first need to consider a data structure (i.e., collection of related data items) known as a stack. Students

More information

CSE 203A: Randomized Algorithms

CSE 203A: Randomized Algorithms CSE 203A: Randomized Algorithms (00:30) The Minimax Principle (Ch 2) Lecture on 10/18/2017 by Daniel Kane Notes by Peter Greer-Berezovsky Game Tree Evaluation (2.1) - n round deterministic 2-player game

More information

CS1132 Fall 2009 Assignment 1. 1 The Monty Hall Dillemma. 1.1 Programming the game

CS1132 Fall 2009 Assignment 1. 1 The Monty Hall Dillemma. 1.1 Programming the game CS1132 Fall 2009 Assignment 1 Adhere to the Code of Academic Integrity. You may discuss background issues and general solution strategies with others and seek help from course staff, but the homework you

More information

do fifty-two: An Introductory Programming Language

do fifty-two: An Introductory Programming Language do fifty-two: An Introductory Programming Language Sinclair Target Yichi Liu Josephine Tirtanata Jayson K Ng Yunfei Wang September 23, 2014 Project Group Sinclair Target / wst2109 / Language Guru Yichi

More information

Pianola User Guide for Club Members How to analyse your own results and find a partner with Pianola

Pianola User Guide for Club Members How to analyse your own results and find a partner with Pianola Pianola User Guide for Club Members How to analyse your own results and find a partner with Pianola Pianola User Guide Page 1 Contents Introduction... 3 Results... 4 Personal summary Travellers Personal

More information

Problems for Op 2014

Problems for Op 2014 Problems for Op 2014 By Eric Durant, PhD, MBA Friday 21 November 2014 Copyright 2014 MSOE 1. Counting double letters (10 Points) Write a program that requires the user to enter a word

More information

Weighted Powers Ranking Method

Weighted Powers Ranking Method Weighted Powers Ranking Method Introduction The Weighted Powers Ranking Method is a method for ranking sports teams utilizing both number of teams, and strength of the schedule (i.e. how good are the teams

More information

Introduction to z-tree. Design: Urs Fischbacher Programming: Urs Fischbacher & Stefan Schmid This slides by Ernesto Reuben

Introduction to z-tree. Design: Urs Fischbacher Programming: Urs Fischbacher & Stefan Schmid This slides by Ernesto Reuben Introduction to z-tree Design: Urs Fischbacher Programming: Urs Fischbacher & Stefan Schmid This slides by Ernesto Reuben How well do you know ztree? 1. Never used it 2. Played with it a bit 3. Used it

More information

2011 NetRiders Skills Challenge Post Secondary Frequently Asked Questions (FAQ)

2011 NetRiders Skills Challenge Post Secondary Frequently Asked Questions (FAQ) 2011 NetRiders Skills Challenge Post Secondary Frequently Asked Questions (FAQ) WHO Q. Who is eligible to participate in NetRiders as a Competitor? A. Any post-secondary (college/university) Cisco Networking

More information

TWO PLAYER REACTION GAME

TWO PLAYER REACTION GAME LESSON 18 TWO PLAYER REACTION GAME OBJECTIVE For your final project for this level for the course, create a game in Python that will test your reaction time versus another player. MATERIALS This lesson

More information

ROCK PAPER SCISSORS Rock Paper Scissors Lab Project Using C or C++

ROCK PAPER SCISSORS Rock Paper Scissors Lab Project Using C or C++ ROCK PAPER SCISSORS Rock Paper Scissors Lab Project Using C or C++ Copyright 2014 Dan McElroy Project Definition Truth Tables Topics Covered Keyboard Character Input (C and C++) Converting Characters to

More information

VISUAL GUIDE to. RX Scripting. for Roulette Xtreme - System Designer 2.0. L J Howell UX Software Ver. 1.0

VISUAL GUIDE to. RX Scripting. for Roulette Xtreme - System Designer 2.0. L J Howell UX Software Ver. 1.0 VISUAL GUIDE to RX Scripting for Roulette Xtreme - System Designer 2.0 L J Howell UX Software 2009 Ver. 1.0 TABLE OF CONTENTS INTRODUCTION...ii What is this book about?... iii How to use this book... iii

More information

Integers and the Coordinate Plane

Integers and the Coordinate Plane Name Date Class 9A Dear Family, A Family Letter: Understanding Integers The student will begin the study of an important set of numbers called integers. Integers are the set of numbers that include all

More information

The Plurality-with-Elimination Method

The Plurality-with-Elimination Method The Plurality-with-Elimination Method Lecture 9 Section 1.4 Robb T. Koether Hampden-Sydney College Fri, Sep 8, 2017 Robb T. Koether (Hampden-Sydney College) The Plurality-with-Elimination Method Fri, Sep

More information

MATH 1340 Mathematics & Politics

MATH 1340 Mathematics & Politics MTH 1340 Mathematics & Politics Lecture 4 June 25, 2015 Slides prepared by Iian Smythe for MTH 1340, Summer 2015, at Cornell University 1 Profiles and social choice functions Recall from last time: in

More information

The for Loop. Lesson 11

The for Loop. Lesson 11 The for Loop Lesson 11 Have you ever played Tetris? You know that the game never truly ends. Blocks continue to fall one at a time, increasing in speed as you go up in levels, until the game breaks from

More information

Programming Lab 1 (JS Hwk 3) Due Thursday, April 28

Programming Lab 1 (JS Hwk 3) Due Thursday, April 28 Programming Lab 1 (JS Hwk 3) Due Thursday, April 28 Lab You may work with partners for these problems. Make sure you put BOTH names on the problems. Create a folder named JSLab3, and place all of the web

More information

RANDOM NUMBER GAME PROJECT

RANDOM NUMBER GAME PROJECT Random Number Game RANDOM NUMBER GAME - Now it is time to put all your new knowledge to the test. You are going to build a random number game. - The game needs to generate a random number between 1 and

More information

Problem A. Ascent Sequences

Problem A. Ascent Sequences Problem A. Ascent Sequences file: file: Consider a sequence a 1, a 2,..., a n of non-negative integers. An ascent in the sequence is a pair of adjacent elements such that the element with greater index

More information

University of New Mexico Department of Computer Science. Final Examination. CS 561 Data Structures and Algorithms Fall, 2011

University of New Mexico Department of Computer Science. Final Examination. CS 561 Data Structures and Algorithms Fall, 2011 University of New Mexico Department of Computer Science Final Examination CS 561 Data Structures and Algorithms Fall, 2011 Name: Email: Nothing is true. All is permitted - Friedrich Nietzsche. Well, not

More information

Adapted from Code.org curriculum

Adapted from Code.org curriculum Adapted from Code.org curriculum Objectives Use the return command to design functions. Identify instances when a function with a return value can be used to contain frequently used computations within

More information

Voting. Xiaoyue Zhang

Voting. Xiaoyue Zhang Voting Xiaoyue Zhang Preference Ballot Ordered list of candidates Assuming no ties Preference schedule = many preference ballots Alice's Preferences 1. Apple 2. Banana 3. Peach 4. Pear 5. Kiwi What is

More information

def instructions(response): # Add to instruction_string so that it contains information on # how to play rock-paper-scissors instruction_string = ""

def instructions(response): # Add to instruction_string so that it contains information on # how to play rock-paper-scissors instruction_string = Python Team Project Large development projects are rarely done by one person alone. Instead most developers work in teams. Thus, understanding how to divide up work and collaborate are essential to computer

More information

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

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

More information

MIDTERM EXAMINATION Networked Life (NETS 112) November 21, 2013 Prof. Michael Kearns

MIDTERM EXAMINATION Networked Life (NETS 112) November 21, 2013 Prof. Michael Kearns MIDTERM EXAMINATION Networked Life (NETS 112) November 21, 2013 Prof. Michael Kearns This is a closed-book exam. You should have no material on your desk other than the exam itself and a pencil or pen.

More information

Last Class: Clock Synchronization. Today: More Canonical Problems

Last Class: Clock Synchronization. Today: More Canonical Problems Last Class: Clock Synchronization Logical clocks Vector clocks Global state Lecture 11, page 1 Today: More Canonical Problems Distributed snapshot and termination detection Election algorithms Bully algorithm

More information

Chapter 5: Probability and Statistics. Middle SchooI Assessments

Chapter 5: Probability and Statistics. Middle SchooI Assessments Chapter 5: Probability and Statistics Middle SchooI Assessments 264 Chapter 5: Probability and Statistics Perplexing Polygons grade 6 OVERARCHING PERPLEXING POLYGONS Cut along dotted lines In Mrs. Mac

More information

How It All Stacks Up - or - Bar Charts with Plotly. ISC1057 Janet Peterson and John Burkardt Computational Thinking Fall Semester 2016

How It All Stacks Up - or - Bar Charts with Plotly. ISC1057 Janet Peterson and John Burkardt Computational Thinking Fall Semester 2016 * How It All Stacks Up - or - Bar Charts with Plotly ISC1057 Janet Peterson and John Burkardt Computational Thinking Fall Semester 2016 In a game of poker, players bet by tossing chips into the center

More information

do fifty two: Language Reference Manual

do fifty two: Language Reference Manual do fifty two: Language Reference Manual Sinclair Target Jayson Ng Josephine Tirtanata Yichi Liu Yunfei Wang 1. Introduction We propose a card game language targeted not at proficient programmers but at

More information

Python Programming: An Introduction to Computer Science

Python Programming: An Introduction to Computer Science Python Programming: An Introduction to Computer Science Chapter 9 Simulation and Design Python Programming, 2/e 1 Objectives æ To understand the potential applications of simulation as a way to solve real-world

More information

Table of contents. Abstract. Disclaimer. Scope. Procedure. AS-IS overview. Audit overview. Conclusion. Appendix A. Automated tools reports 12

Table of contents. Abstract. Disclaimer. Scope. Procedure. AS-IS overview. Audit overview. Conclusion. Appendix A. Automated tools reports 12 1 Table of contents Abstract 3 Disclaimer 3 Scope 3 Procedure 4 AS-IS overview 5 Audit overview 10 Conclusion 11 Disclaimer 12 Appendix A. Automated tools reports 12 2 Abstract In this report, we consider

More information

CSC101 - BMCC - Spring /22/2019. Lab 07

CSC101 - BMCC - Spring /22/2019. Lab 07 CSC101 - BMCC - Spring 2019 03/22/2019 Lab 07 Download and extract the content of CSC101_Lab07.zip from the course web page (labs.html); then browse and open the folder Lab07 where you will find all necessary

More information

Lesson 39: Conditionals #3 (W11D4)

Lesson 39: Conditionals #3 (W11D4) Lesson 39: Conditionals #3 (W11D4) Balboa High School Michael Ferraro October 29, 2015 1 / 29 Do Now In order to qualify for a $50k loan, the following conditions must be met: Your annual income must be

More information

The Daily Mail and Lotto 250k Giveaway promotion

The Daily Mail and Lotto 250k Giveaway promotion The Daily Mail and Lotto 250k Giveaway promotion INTRODUCTION 1. The following terms and conditions ( Terms ) relate to the Daily Mail s Lotto 250k Giveaway Guaranteed (the Promotion ). The Promotion gives

More information

econnect Baccarat User Guide EC7 June 2017

econnect Baccarat User Guide EC7 June 2017 econnect Baccarat User Guide EC7 June 2017 Table of Contents Baccarat Camera View A. Card Displayed on Virtual Table B. Bet Session Recording C. How to open a camera D. What is displayed on Data View E.

More information

Integers Review. Author: Taras Gula me at before reproducing this booklet

Integers Review. Author: Taras Gula  me at before reproducing this booklet Integers Review Title of Pages: #1: Introduction to Integers #2: Addition of Integers #3: Addition of Integers - practice #4: Subtraction of Integers #5: Subtraction of Integers - practice #6: Solving

More information

Programming Problems 15th Annual Computer Science Programming Contest

Programming Problems 15th Annual Computer Science Programming Contest Programming Problems 15th Annual Computer Science Programming Contest Department of Mathematics and Computer Science Western Carolina University March 0, 200 Criteria for Determining Scores Each program

More information

What s New in Spotfire DXP 1.1. Spotfire Product Management January 2007

What s New in Spotfire DXP 1.1. Spotfire Product Management January 2007 What s New in Spotfire DXP 1.1 Spotfire Product Management January 2007 Spotfire DXP Version 1.1 This document highlights the new capabilities planned for release in version 1.1 of Spotfire DXP. In this

More information

Handling Ties. Analysis of Ties in Input and Output Data of Rankings

Handling Ties. Analysis of Ties in Input and Output Data of Rankings Analysis of Ties in Input and Output Data of Rankings 16.7.2014 Knowledge Engineering - Seminar Sports Data Mining 1 Tied results in the input data Frequency depends on data source tie resolution policy

More information

Lab 2: Booleans, Strings, Random Numbers, Recursion, Variables, Input function

Lab 2: Booleans, Strings, Random Numbers, Recursion, Variables, Input function Lab 2: Booleans, Strings, Random Numbers, Recursion, Variables, Input function Due: Mar25 (Note that this is a 2-week lab) This lab must be done using paired partners. You should choose a different partner

More information

While Loops A while loop executes a statement as long as a condition is true while condition: statement(s) Statement may be simple or compound Typical

While Loops A while loop executes a statement as long as a condition is true while condition: statement(s) Statement may be simple or compound Typical Recommended Readings Chapter 5 Topic 5: Repetition Are you saying that I am redundant? That I repeat myself? That I say the same thing over and over again? 1 2 Repetition So far, we have learned How to

More information

K-Means++: The Advantages of Careful Seeding

K-Means++: The Advantages of Careful Seeding K-Means++: The Advantages of Careful Seeding PAPER BY DAVID ARTHUR & SERGEI VASSILVITSKII PRESENTATION BY STEVEN ROHR What is it and why do we need it? By Augmenting k-means with a very simple, randomized

More information

Welcome! COMP s1. Programming Fundamentals

Welcome! COMP s1. Programming Fundamentals Welcome! 0 COMP1511 18s1 Programming Fundamentals COMP1511 18s1 Lecture 4 1 More Functions + Loops Andrew Bennett even more functions while loops 2 Before we begin introduce

More information

MATH 51: MATLAB HOMEWORK 3

MATH 51: MATLAB HOMEWORK 3 MATH 5: MATLAB HOMEWORK Experimental data generally suffers from imprecision, though frequently one can predict how data should behave by graphing results collected from experiments. For instance, suppose

More information

Possibilities of Voting

Possibilities of Voting Possibilities of Voting MATH 100, Survey of Mathematical Ideas J. Robert Buchanan Department of Mathematics Summer 2018 Introduction When choosing between just two alternatives, the results of voting are

More information

NCAA Instructions Nerdy for Sports

NCAA Instructions Nerdy for Sports Home Page / Login 2 Registration 3 Main Menu 4 Making your Picks 5 Editing your Picks 7 View your Picks 8 Double Check your Picks 9 Actual Results 11 Payouts 12 Reports 12 League History 16 Contact Us

More information

Leader Election in Rings

Leader Election in Rings Leader Election Arvind Krishnamurthy Fall 2003 Leader Election in Rings Under different models: Synchronous vs. asynchronous Anonymous vs. non-anonymous (knowledge of unique id) Knowledge of n (non-uniform)

More information

Homework #2 Assembly Programming

Homework #2 Assembly Programming Homework #2 Assembly Programming Last updated: 2016-05-22 Due date: see course website Directions: For short-answer questions, submit your answers in PDF format as a file called -hw2.pdf. Word documents

More information

CS 210 Fundamentals of Programming I Spring 2015 Programming Assignment 4

CS 210 Fundamentals of Programming I Spring 2015 Programming Assignment 4 CS 210 Fundamentals of Programming I Spring 2015 Programming Assignment 4 20 points Out: February 18/19, 2015 Due: February 25/26, 2015 Reminder: This is a programming assignment, and work on this assignment

More information

Solving Minesweeper Using CSP

Solving Minesweeper Using CSP Solving Minesweeper Using CSP AI Course Final Project Gil & Chai Usage (After using Makefile) java player/aiplayer

More information

7. Arrays, More Java Looping

7. Arrays, More Java Looping 7-1 7. Arrays, More Java Looping Review and Preview In the last class, we introduced the idea of looping repeating code blocks. In this class Java lesson, we look at another way to loop (the Java for loop)

More information

Sequential Two-Prize Contests

Sequential Two-Prize Contests Sequential Two-Prize Contests Aner Sela September, 2009 Abstract We study two-stage all-pay auctions with two identical prizes. In each stage, the players compete for one prize. Each player may win either

More information

Problem A Math for a Birthday Present

Problem A Math for a Birthday Present Bina Nusantara Programming Contest for High School Student (BNPC-HS) 2007 Qualification Round (Programming Task) - 11 November 2007 Problem A Math for a Birthday Present Program File Input File Output

More information

Three Types of Probability

Three Types of Probability CHAPTER Three Types of Probability This article is not so much about particular problems or problem solving tactics as it is about labels. If you think about it, labels are a big key to the way we organize

More information

PRIMES Circle: High School Math Enrichment at MIT

PRIMES Circle: High School Math Enrichment at MIT PRIMES Circle: High School Math Enrichment at MIT Department of Mathematics, MIT ivogt@mit.edu June 25th, 2015 PRIMES Umbrella organization: research and outreach Four programs: MIT PRIMES: research on

More information

CPSC 427: Object-Oriented Programming

CPSC 427: Object-Oriented Programming CPSC 427: Object-Oriented Programming Michael J. Fischer Lecture 18 November 7, 2016 CPSC 427, Lecture 18 1/19 Demo: Craps Game Polymorphic Derivation (continued) Name Visibility CPSC 427, Lecture 18 2/19

More information

Integration Test Plan. Angry Face Studios

Integration Test Plan. Angry Face Studios Integration Test Plan Angry Face Studios April 9, 2008 Contents 1 Revision History 3 2 Introduction 4 2.1 Scope................................................. 4 2.2 Purpose................................................

More information

Getting started with social media and comping

Getting started with social media and comping Getting started with social media and comping Promotors are taking a leap further into the digital age, and we are finding that more and more competitions are migrating to Facebook and Twitter. If you

More information

Redtooth Quiz center 5 User Manual

Redtooth Quiz center 5 User Manual Redtooth Quiz center 5 User Manual Table of contents 1 Introduction... 4 2 Quiz center... 5 2.1 Quizzes... 5 2.1.1 Play... 6 2.1.2 Download... 6 2.1.3 Import... 6 2.1.4 Preview... 6 2.1.5 Delete... 6 2.1.6

More information

Privacy Policy- Introduction part Personal Information

Privacy Policy- Introduction part Personal Information Privacy policy The Privacy Policy is applicable to the website www.mypitcrew.in registered as MyPitCrew. This privacy statement also does not apply to the websites of our business partners, corporate affiliates

More information

static String usersname; public static int numberofplayers; private static double velocity, time;

static String usersname; public static int numberofplayers; private static double velocity, time; A class can include other things besides subroutines. In particular, it can also include variable declarations. Of course, you can declare variables inside subroutines. Those are called local variables.

More information

Mill Hill School. 13+ Entrance Examination Mathematics. January Time: 1 hour. School: Mark: Materials required for examination

Mill Hill School. 13+ Entrance Examination Mathematics. January Time: 1 hour. School: Mark: Materials required for examination Name: School: Mark: Mill Hill School 13+ Entrance Examination Mathematics January 2014 Time: 1 hour Materials required for examination Ruler, protractor, compasses, pen, pencil, eraser Calculators must

More information

Python 2.7 will also work for this workshop due to certain language rules, however I prefer working with the most current stable version.

Python 2.7 will also work for this workshop due to certain language rules, however I prefer working with the most current stable version. , webmaster@cse-club.com Fall 2014 In this workshop, we will be creating a basic text-based game to learn the basics Python programming language. By the end of this workshop, you will learn: The syntax

More information

Variables and Constants

Variables and Constants HOUR 3 Variables and Constants Programs need a way to store the data they use. Variables and constants offer various ways to work with numbers and other values. In this hour you learn: How to declare and

More information

Introduction to Computer Programming

Introduction to Computer Programming Introduction to Computer Programming Lecture #7 - Conditional Loops The Problem with Counting Loops Many jobs involving the computer require repetition, and that this can be implemented using loops. Counting

More information

ASCII Art. Introduction: Python

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

More information

Programming assignment A

Programming assignment A Programming assignment A ASCII Minesweeper Official release on Feb 14 th at 1pm (Document may change before then without notice) Due 5pm Feb 25 th Minesweeper is computer game that was first written in

More information

CS 314 Exam 2 Spring

CS 314 Exam 2 Spring Points off 1 2 3 4 5 Total off CS 314 Exam 2 Spring 2017 Your Name Your UTEID Instructions: 1. There are 5 questions on this test. 100 points available. Scores will be scaled to 200 points. 2. You have

More information

CS3 Midterm 2 Standards and Solutions

CS3 Midterm 2 Standards and Solutions CS3 Midterm 2 Standards and Solutions Spring 2007 16 14 12 10 8 6 4 2 0 Std. Dev = 5.43 Mean = 18.3 N = 90.00 2.0 6.0 10.0 14.0 18.0 22.0 26.0 30.0 4.0 8.0 12.0 16.0 20.0 24.0 28.0 scaled Problem 1. Roman

More information

Homework 1. Hadachi&Lind October 25, Deadline for doing homework is 3 weeks starting from now due date is:

Homework 1. Hadachi&Lind October 25, Deadline for doing homework is 3 weeks starting from now due date is: Homework 1 Hadachi&Lind October 25, 2017 Must Read: 1. Deadline for doing homework is 3 weeks starting from now 2017.10.25 due date is: 2017.11.15 5:59:59 EET 2. For any delay in submitting the homework

More information

Keypad Quiz Version 5 Quick Start Guide

Keypad Quiz Version 5 Quick Start Guide Keypad Quiz Version 5 Quick Start Guide Redtooth Keypad Quiz version 5 is here! Welcome to the Redtooth Keypad Quiz version 5 Quick Start guide! This document will guide you in the process of upgrading

More information

Lecture. Simulation && Design. Richard E Sarkis CSC 161: The Art of Programming

Lecture. Simulation && Design. Richard E Sarkis CSC 161: The Art of Programming Lecture Simulation && Design Richard E Sarkis CSC 161: The Art of Programming Class Administrivia Agenda To understand the potential applications of simulation as a way to solve real-world problems To

More information

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

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

More information

CPSC 217 Assignment 3

CPSC 217 Assignment 3 CPSC 217 Assignment 3 Due: Monday November 23, 2015 at 12:00 noon Weight: 7% Sample Solution Length: 135 lines, including some comments (not including the provided code) Individual Work: All assignments

More information

Privacy Policy. What Information Is Collected? Internet Traffic Data

Privacy Policy. What Information Is Collected? Internet Traffic Data Privacy Policy Purple Tree Photography, doing business as Purple Tree Photography ( Purple Tree Photography, we or us ) is sensitive to concerns that personal information collected from its customers (

More information

EGR 111 Loops. This lab is an introduction to loops, which allow MATLAB to repeat commands a certain number of times.

EGR 111 Loops. This lab is an introduction to loops, which allow MATLAB to repeat commands a certain number of times. EGR 111 Loops This lab is an introduction to loops, which allow MATLAB to repeat commands a certain number of times. New MATLAB commands: for, while,, length 1. The For Loop Suppose we want print a statement

More information

Website Privacy Policy

Website Privacy Policy Website Privacy Policy Last updated: May 12, 2016 This privacy policy (the Privacy Policy ) applies to this website and all services provided through this website, including any games or sweepstakes (collectively,

More information

CS 1301 Pair Homework 2 Conversions Due: Monday January 27th, 2014, before 11:55pm Out of 100 points Files to submit: hw2.py

CS 1301 Pair Homework 2 Conversions Due: Monday January 27th, 2014, before 11:55pm Out of 100 points Files to submit: hw2.py CS 1301 Pair Homework 2 Conversions Due: Monday January 27th, 2014, before 11:55pm Out of 100 points Files to submit: hw2.py You will be writing several functions, but they will all be saved in one file:

More information

2018 SmartHealth Wellness Program Frequently Asked Questions (FAQ)

2018 SmartHealth Wellness Program Frequently Asked Questions (FAQ) 2018 SmartHealth Wellness Program Frequently Asked Questions (FAQ) What if this list did not answer my questions? 1. Call toll free at 1-855-750-8866 2. Email support@limeade.com 3. For questions about

More information

Drawing Shapes on a Coordinate Grid

Drawing Shapes on a Coordinate Grid UNIT STUDENT OOK LESSO N Drawing Shapes on a oordinate Grid Quick Review t t Home Sc h o o l To describe the position of a shape on a grid, we use ordered pairs. The numbers in an ordered pair are called

More information

How to Find Your Most Cost-Effective Keywords

How to Find Your Most Cost-Effective Keywords GUIDE How to Find Your Most Cost-Effective Keywords 9 Ways to Discover Long-Tail Keywords that Drive Traffic & Leads 1 Introduction If you ve ever tried to market a new business or product with a new website,

More information

Noughts and Crosses. Step 1: Drawing the grid. Introduction

Noughts and Crosses. Step 1: Drawing the grid. Introduction 6 Noughts and Crosses These projects are for use inside the UK only. All Code Clubs must be registered. You can check registered clubs at www.codeclub.org.uk/. This coursework is developed in the open

More information

STRAT. A Program for Analyzing Statistical Strategic Models. Version 1.4. Curtis S. Signorino Department of Political Science University of Rochester

STRAT. A Program for Analyzing Statistical Strategic Models. Version 1.4. Curtis S. Signorino Department of Political Science University of Rochester STRAT A Program for Analyzing Statistical Strategic Models Version 1.4 Curtis S. Signorino Department of Political Science University of Rochester c Copyright, 2001 2003, Curtis S. Signorino All rights

More information

COMP Cams 500 Contest Rules

COMP Cams 500 Contest Rules Weekend Blowout Sale: COMP Cams 500 Contest Rules Beginning on Thursday, February 17, 2011, the COMP Cams webstore will activate the promo code Daytona. Entering this code at checkout will take 10 percent

More information

12-4 Geometric Sequences and Series. Lesson 12 3 quiz Battle of the CST s Lesson Presentation

12-4 Geometric Sequences and Series. Lesson 12 3 quiz Battle of the CST s Lesson Presentation 12-4 Geometric Sequences and Series Lesson 12 3 quiz Battle of the CST s Lesson Presentation Objectives Find terms of a geometric sequence, including geometric means. Find the sums of geometric series.

More information

SIMULTANEOUS EQUATIONS

SIMULTANEOUS EQUATIONS Mathematics Revision Guides Simultaneous Equations Page 1 of 6 M.K. HOME TUITION Mathematics Revision Guides Level: GCSE Foundation Tier SIMULTNEOUS EQUTIONS Version: 3.2 Date: 08-02-2015 Mathematics Revision

More information

Assignment 6: Dodo keeps getting smarter

Assignment 6: Dodo keeps getting smarter Assignment 6: Dodo keeps getting smarter Algorithmic Thinking and Structured Programming (in Greenfoot) c 2015 Renske Smetsers-Weeda & Sjaak Smetsers Licensed under the Creative Commons Attribution 4.0

More information

Register of Processings Manual Version: Mei 2018

Register of Processings Manual Version: Mei 2018 Register of Processings Manual Version: 1.0 28 Mei 2018 This manual should help you register your processing. By law the University has to have a register of all personal data processing. This tool provides

More information

Fundamentals of Computer Science. Sentinel Based Repetition

Fundamentals of Computer Science. Sentinel Based Repetition Sentinel Based Repetition 59 syntax: The while Loop Statement while (expression) statement a while loop statement is (almost) identical to a for loop statement that has no initialization or increment expressions

More information