Problem Dice program

Size: px
Start display at page:

Download "Problem Dice program"

Transcription

1 Activity 1 Problem Dice program Aim: Based on the Maths 00 activity Problem Dice, Introduce the Program app to simulate 100 rolls of the dice. Creating a program automates a sequence of instructions we used in the previous activity. The following program takes the commands you used in the previous activity to randomly generate 100 rolls on a pair of dice and draw a histogram of the differences. Enter, save and run a program to simulate the differences game. Program app Open program app Create a new program Tap E Enter a name for the program Maximum of 8 characters Tap OK Enter the program Enter the text as shown Some of the text can be entered from menu [Misc Statistics(1) StatGraph] [Misc Statistics(1) Graph ] [I/O Draw ] randlist(100,1,6) a Simulate 100 rolls of a six-sided die and store as a abs(a b) list1 stores the difference between a and b in list1 StatGraph 1,On,,list1,1 Sets StatGraph 1 to On and to draw a using list1 draws the Run the program Tap { to save the program Tap ) to leave the program editor Tap } to run the program Hazeldene publishing 017 Year 9 Mathematics: ClassPad Activities

2 Do more: Create frequency table Tap P to edit the program Make the adjustments Modify the program to simulate 00 rolls. Record the frequency and draw the histogram. table 00 rolls Difference 0 1 Modify your program to simulate the sum of 00 rolls of a pair of 8-sided dice and record your results. table Difference Hazeldene publishing 017 Year 9 Mathematics: ClassPad Activities

3 Modify your program to simulate the sum of 00 rolls of a pair of 6-sided dice and record your results. table Sum 0 1 Modify your program to simulate the sum of 00 rolls of three 6-sided dice and record your results. Be patient! table Sum Hazeldene publishing 017 Year 9 Mathematics: ClassPad Activities

4 Learning notes Detailed instructions: View this video demo of process of creating the program Learning to program: Many people learn coding by modifying work others have done. You will learn more by taking these programs and then modifying than you will starting from scratch. There is a.vcp file on the website that you can download and access the programs using ClassPad Manager on your laptop. The program explained randlist(100,1,6) a randlist(100,1,6) b abs(a-b) list1 StatGraph 1,On,,list1,1 {0,1,,,,} list {0,0,0,0,0,0} list For 1 i To 100 list1[i]+1 d list[d]+1 list[d] DispListEditor Generate lists of 100 random numbers between 1 and 6 and store Calculate the difference between the two dice and store in list1 Set up the Statistics graph: Statgrpah1, set to a using list1 with a frequency of 1 Draw the graph Initialise lists and. List is the differences and list will store how many results have the matching difference This is a loop to go through the 100 rolls. Note the difference between the dice and save as d. Increment the count for that difference. The + 1 is because the differences started at 0 in the first element in the list. Display the Statistics window showing the frequency table Dice Difference Program modified to run with parameters Specify the number of rolls and the number of faces (max 1) on each die each time you run the program. Statistics app only displays 00 elements in a list. This program allows more trials, but on your handheld expect to be waiting a while! Code as shown in screenshot randlist(n,1,faces) a randlist(n,1,faces) b abs(a-b) list {0,1,,,,,6,7,8,9,10,11} list {0,0,0,0,0,0,0,0,0,0,0,0} list For 1 i To n list[i]+1 d list[d]+1 list[d] Hazeldene publishing 017 Year 9 Mathematics: ClassPad Activities

5 DispListEditor StatGraph 1,On,,list,list Running from main screen Another coding examples Select from a list without replacement The code works by inputting a list and the number of elements you want o select from that list. The code uses parameters and can be called by another program or in the Main screen. E.g. selectn({1,,,,8,1},) will select two elements and they are stored in variable pick. mylist wklist dim(wklist) l 'initialise list to hold selection seq(0,x,1,n,1) pick For 1 i To n 'Select element rand(1,l) p wklist[p] pick[i] 'Delete selected item from list For p+1 j To l wklist[j] wklist[j-1] 'sublist(wklist,1,p-1)+sublist(wklist,p+1,l) wklist Print pick l-1 l Print mylist Print pick Once it is working the Print statements can be deleted. Hazeldene publishing 017 Year 9 Mathematics: ClassPad Activities 6

6 Example of running program in Main screen Drawing cards Working in Main Draw a card form a regular deck of cards {,,, } suits {1,,,,,6,7,8,9,10,J,Q,K} kind {0,0} s rand(1,) c suits[mod(c,)+1] s[1] kind[mod(c,1)+1] s[] s The symbols for the card suits Writing a program to simulate dealing a random hand of cards {,,, } suits {1,,,,,6,7,8,9,10,J,Q,K} kind seq(x,x,1,,1) pack selectn(pack,) Pause ClrText For 1 i To Locate,1*i,suits[mod(pack[i],)+1] Locate 1,1*i,kind[mod(pack[i],1)+1] Code of first two versions of dice differences program DiceDiff randlist(100,1,6) a randlist(100,1,6) b abs(a-b) list1 StatGraph 1,On,,list1,1 DiceDif randlist(100,1,6) a randlist(100,1,6) b abs(a-b) list1 StatGraph 1,On,,list1,1 {0,1,,,,} list {0,0,0,0,0,0} list For 1 i To 100 list1[i]+1 d list[d]+1 list[d] DispListEditor Hazeldene publishing 017 Year 9 Mathematics: ClassPad Activities 7

Step by Step An Example for each Application

Step by Step An Example for each Application Step by Step An Example for each Application ClassPad website: http://edu.casio.com/products/classpad/ CASIO Education website: http://edu.casio.com CASIO America website: www.casioeducation.com ClassPad

More information

Objective 1: To simulate the rolling of a die 100 times and to build a probability distribution.

Objective 1: To simulate the rolling of a die 100 times and to build a probability distribution. Minitab Lab #2 Math 120 Nguyen 1 of 6 Objectives: 1) Simulate games of chance that have equally likely outcomes 2) Construct a binomial probability distribution and sketch a probability histogram 3) Calculate

More information

Activity 7. Modeling Exponential Decay with a Look at Asymptotes. Objectives. Introduction. Modeling the Experiment: Casting Out Sixes

Activity 7. Modeling Exponential Decay with a Look at Asymptotes. Objectives. Introduction. Modeling the Experiment: Casting Out Sixes Objectives Activity 7 Modeling Exponential Decay with a Look at Asymptotes Define parameters A and B in the exponential equation y = ab x Understand asymptotes, particularly non-zero asymptotes Identify

More information

Quick and simple ClassPad programs for solving problems such as those posed by Project Euler.

Quick and simple ClassPad programs for solving problems such as those posed by Project Euler. Quick and simple ClassPad programs for solving problems such as those posed by Project Euler. Some readers may be familiar with Project Euler (http://projecteuler.net). It is a series of challenging mathematical/computer

More information

Homework Review: 4-17 to 4-22

Homework Review: 4-17 to 4-22 Homework Review: 4-17 to 4-22 4-21 Since the slope ratio for 11 0.2, AB 50'. The slope ratio for 68 2.5, so BC 4', segment AB is actually longer. 4-22 a. 12 b. Yes c. 6/12 = 1/2; 8/12 = 2/3 Warm-Up: In

More information

Math 574 Review Exam #1

Math 574 Review Exam #1 Math 574 Review Exam 1 1. How many 8-card hands, dealt from a standard deck of 5, consist of: (a). 5 of one suit and 3 of another suit? (b). 4 each of two suits. (c). 3 of one suit, 3 of a second suit,

More information

Compliments and Disjoint Events

Compliments and Disjoint Events Compliments and Disjoint Events p. 1/ Compliments and Disjoint Events Gene Quinn Compliments and Disjoint Events p. 2/ Suppose E is an event. Then "E does not occur" is also an event. Compliments and Disjoint

More information

Tutorial 12 Craps Game Application: Introducing Random Number Generation and Enumerations

Tutorial 12 Craps Game Application: Introducing Random Number Generation and Enumerations Tutorial 12 Craps Game Application: Introducing Random Number Generation and Enumerations Outline 12.1 Test-Driving the Craps Game Application 12.2 Random Number Generation 12.3 Using an enum in the Craps

More information

hp calculators HP 9g Probability Random Numbers Random Numbers Simulation Practice Using Random Numbers for Simulations

hp calculators HP 9g Probability Random Numbers Random Numbers Simulation Practice Using Random Numbers for Simulations Random Numbers Simulation Practice Using Random Numbers for Simulations Random numbers Strictly speaking, random numbers are those numbers the digits of which are chosen with replacement so that it is

More information

C Functions. 5.2 Program Modules in C

C Functions. 5.2 Program Modules in C 1 5 C Functions 5.2 Program Modules in C 2 Functions Modules in C Programs combine user-defined functions with library functions - C standard library has a wide variety of functions Function calls Invoking

More information

CC INTEGRATED II ETOOLS

CC INTEGRATED II ETOOLS CC INTEGRATED II ETOOLS Table of Contents General etools... 4 Algebra Tiles (CPM)... 5 Pattern Tile & Dot Tool (CPM)... 8 Similarity Toolkit (CPM)...10 Probability Tools (CPM)...12 Desmos Graphing Calculator...16

More information

BBC Micro:Bit. Year 7. Teacher Guide and Planning

BBC Micro:Bit. Year 7. Teacher Guide and Planning BBC Micro:Bit Year 7 Teacher Guide and Planning Micro:Bit Block Editor Planning Support - Teacher help to complete the steps required for the Micro:Bit to run successfully - 1:1 peer help and partner working.

More information

ClassPad website: CASIO Education website:

ClassPad website:  CASIO Education website: Simple steps to help you get started using the ClassPad 330 and ClassPad Manager Professional Software Visit http://edu.casio.com to download a 30 day trial of the ClassPad Manager Professional Version

More information

Heads Up! (Continued)

Heads Up! (Continued) . Name Date A c t i v i t y 6 Heads Up! (Continued) In this activity, you will do more experiments with simulations and use a calculator program that will quickly simulate multiple coin tosses. The Problem

More information

Quick. ClassPad II. Reference Guide. Press these keys for numbers, basic operations, and the most common variables

Quick. ClassPad II. Reference Guide. Press these keys for numbers, basic operations, and the most common variables ClassPad II Quick Reference Guide Press these keys for numbers, basic operations, and the most common variables Tap any icon to select the application. Tap m at any time to return to the menu screen. Tap

More information

Java Assignment 3: Loop Practice Ver 3.0 Last Updated: 12/1/2015 8:57 AM

Java Assignment 3: Loop Practice Ver 3.0 Last Updated: 12/1/2015 8:57 AM Java Assignment 3: Loop Practice Ver 3.0 Last Updated: 12/1/2015 8:57 AM Let s get some practice creating programs that repeat commands inside of a loop in order to accomplish a particular task. You may

More information

Section 3.1 Shapes of Distributions MDM4U Jensen

Section 3.1 Shapes of Distributions MDM4U Jensen Section 3.1 Shapes of Distributions MDM4U Jensen Part 1: Histogram Review Example 1: Earthquakes are measured on a scale known as the Richter Scale. There data are a sample of earthquake magnitudes in

More information

Fractals and the Chaos Game

Fractals and the Chaos Game Math: Outside the box! Fractals and the Chaos Game Monday February 23, 2009 3:30-4:20 IRMACS theatre, ASB 10900 Randall Pyke Senior Lecturer Department of Mathematics, SFU A Game. Is this a random walk?

More information

The Math Class. Using various math class methods. Formatting the values.

The Math Class. Using various math class methods. Formatting the values. The Math Class Using various math class methods. Formatting the values. The Math class is used for mathematical operations; in our case some of its functions will be used. In order to use the Math class,

More information

Decision Support and Intelligent Systems. Monte Carlo Simulation

Decision Support and Intelligent Systems. Monte Carlo Simulation 887654 Decision Support and Intelligent Systems Monte Carlo Simulation Monte Carlo Monte Carlo is a technique for selecting numbers randomly from a probability distribution. A mathematical process used

More information

CAMBRIDGE TECHNOLOGY IN MATHS Year 12 ClassPad user guide

CAMBRIDGE TECHNOLOGY IN MATHS Year 12 ClassPad user guide Year 12 ClassPad User guide Page 1 of 12 CAMBRIDGE TECHNOLOGY IN MATHS Year 12 ClassPad user guide CONTENTS Introduction to the ClassPad 330 2 Using the Main menu 4 Graphing 8 Defining functions 9 Probability

More information

Introduction to Computer Science with MakeCode for Minecraft

Introduction to Computer Science with MakeCode for Minecraft Introduction to Computer Science with MakeCode for Minecraft Lesson 4: Variables In this lesson, we ll explore the concept of a variable, an important way to store information and make your programs more

More information

EXCODE. Code An App From Scratch

EXCODE. Code An App From Scratch 3 EXCODE Code An App From Scratch Course Overview Weeks 1-2 Learning Python Weeks 3-5 Creating your game Week 6 Presenting the games Get the course notes exeterentrepreneurs.com/excode-content exeterentrepreneurs.com/excode-content/

More information

15-110: Principles of Computing, Spring 2018

15-110: Principles of Computing, Spring 2018 5-: Principles of Computing, Spring 28 Problem Set 8 (PS8) Due: Friday, March 3 by 2:3PM via Gradescope Hand-in HANDIN INSTRUCTIONS Download a copy of this PDF file. You have two ways to fill in your answers:.

More information

Dr M Kasim A Jalil. Faculty of Mechanical Engineering UTM (source: Deitel Associates & Pearson)

Dr M Kasim A Jalil. Faculty of Mechanical Engineering UTM (source: Deitel Associates & Pearson) Lecture 9 Functions Dr M Kasim A Jalil Faculty of Mechanical Engineering UTM (source: Deitel Associates & Pearson) Objectives In this chapter, you will learn: To understand how to construct programs modularly

More information

Chapter 5 C Functions

Chapter 5 C Functions Chapter 5 C Functions Objectives of this chapter: To construct programs from small pieces called functions. Common math functions in math.h the C Standard Library. sin( ), cos( ), tan( ), atan( ), sqrt(

More information

Random Walks and Defining Functions FEB 9 AND 11, 2015

Random Walks and Defining Functions FEB 9 AND 11, 2015 Random Walks and Defining Functions FEB 9 AND 11, 2015 If we take a random walk, will we go places? Problem: Simulate a random walk in which a person starts of at point 0 and at each step randomly picks

More information

Previous Lecture: Today s Lecture: Announcements: Nesting if-statements Logical operators short-circuit. Iteration using for

Previous Lecture: Today s Lecture: Announcements: Nesting if-statements Logical operators short-circuit. Iteration using for Previous Lecture: Nesting if-statements Logical operators short-circuit Today s Lecture: Iteration using for Announcements: Discussion this week is in the classrooms as listed in Student Center Register

More information

Place Value. Objectives To develop place-value concepts and connect place value in money with place value in base-10 blocks. Assessment Management

Place Value. Objectives To develop place-value concepts and connect place value in money with place value in base-10 blocks. Assessment Management Place Value Objectives To develop place-value concepts and connect place value in money with place value in base-10 blocks. www.everydaymathonline.com epresentations etoolkit Algorithms Practice EM Facts

More information

University of Massachusetts Amherst, Electrical and Computer Engineering

University of Massachusetts Amherst, Electrical and Computer Engineering University of Massachusetts Amherst, Electrical and Computer Engineering ECE 122 Midterm Exam 1 Makeup Answer key March 2, 2018 Instructions: Closed book, Calculators allowed; Duration:120 minutes; Write

More information

More About Objects and Methods

More About Objects and Methods More About Objects and Methods Chapter 6 Objectives Define and use constructors Write and use static variables and methods Use methods from class Math Use predefined wrapper classes Use stubs, drivers

More information

6.S189 Homework 2. What to turn in. Exercise 3.1 Defining A Function. Exercise 3.2 Math Module.

6.S189 Homework 2. What to turn in. Exercise 3.1 Defining A Function. Exercise 3.2 Math Module. 6.S189 Homework 2 http://web.mit.edu/6.s189/www/materials.html What to turn in Checkoffs 3, 4 and 5 are due by 5 PM on Monday, January 15th. Checkoff 3 is over Exercises 3.1-3.2, Checkoff 4 is over Exercises

More information

The Hong Kong Polytechnic University

The Hong Kong Polytechnic University COMP1001-Problem Solving in IT Top-Down Design Objective: Upon completion of this lab, you will be able to: How to use top down design to design an Automatic teller machine (ATM) Structure of Top-Down

More information

Data Handling. Moving from A to A* Calculate the numbers to be surveyed for a stratified sample (A)

Data Handling. Moving from A to A* Calculate the numbers to be surveyed for a stratified sample (A) Moving from A to A* A* median, quartiles and interquartile range from a histogram (A*) Draw histograms from frequency tables with unequal class intervals (A) Calculate the numbers to be surveyed for a

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

The Math Class (Outsource: Math Class Supplement) Random Numbers. Lab 06 Math Class

The Math Class (Outsource: Math Class Supplement) Random Numbers. Lab 06 Math Class The (Outsource: Supplement) The includes a number of constants and methods you can use to perform common mathematical functions. A commonly used constant found in the Math class is Math.PI which is defined

More information

ELEC6021 Research Methods Matlab Session 2

ELEC6021 Research Methods Matlab Session 2 ELEC6021 Research Methods Matlab Session 2 In the first session, we looked at how to write our own Matlab functions, among other things. This session poses a number of problems and asks you to write Matlab

More information

What s Normal Anyway?

What s Normal Anyway? Name Class Problem 1 A Binomial Experiment 1. When rolling a die, what is the theoretical probability of rolling a 3? 2. When a die is rolled 100 times, how many times do you expect that a 3 will be rolled?

More information

BASIC SIMULATION CONCEPTS

BASIC SIMULATION CONCEPTS BASIC SIMULATION CONCEPTS INTRODUCTION Simulation is a technique that involves modeling a situation and performing experiments on that model. A model is a program that imitates a physical or business process

More information

MFA Pilot Instructions

MFA Pilot Instructions MFA Pilot Instructions Getting Started You will need the following: Your smartphone, a computer, and Internet access. Before using MFA your computer will need to be running Office 2016. If you are still

More information

Quick. ClassPad II. Reference Guide. Press these keys for numbers, basic operations, and the most common variables

Quick. ClassPad II. Reference Guide. Press these keys for numbers, basic operations, and the most common variables ClassPad II Quick Reference Guide Press these keys for numbers, basic operations, and the most common variables Tap any icon to select the application. Tap m at any time to return to the menu screen. Tap

More information

Single Dimensional Data. How can computation pick best data values? Or, turn math into searching? How is this Multi-Dimensional Data?

Single Dimensional Data. How can computation pick best data values? Or, turn math into searching? How is this Multi-Dimensional Data? // CS : Introduction to Computation UNIVERSITY of WISCONSIN-MADISON Computer Sciences Department Professor Andrea Arpaci-Dusseau How can computation pick best data values? Or, turn math into searching?

More information

Use Arrays and Collections

Use Arrays and Collections Use Arrays and Collections Contents Introduction... 1 Create Act on each item action... 1 Use Array and Collection in a Method... 9 Create a method... 9 Create Action Execute actions for all items... 10

More information

Building Java Programs

Building Java Programs Building Java Programs Chapter 5 Random Numbers reading: 5.1, 5.6 1 http://xkcd.com/221/ 2 The while loop while loop: Repeatedly executes its body as long as a logical test is true. while (test) { statement(s);

More information

6 th Grade Enriched Math to 7 th Grade Pre-Algebra

6 th Grade Enriched Math to 7 th Grade Pre-Algebra Summer Work 2018 6 th Grade Enriched Math to 7 th Grade Pre-Algebra 6 th Grade Skills that are necessary for success in 7 th grade and beyond: - ability to add subtract, multiply and divide decimals, fractions

More information

Adding a New Class. In this Chapter: T Defining a New Class. T Adding a New Class Attribute to the app Class. T app Class: Attribute Restrictions

Adding a New Class. In this Chapter: T Defining a New Class. T Adding a New Class Attribute to the app Class. T app Class: Attribute Restrictions Adding a New Class In this Chapter: T Defining a New Class T Adding a New Class Attribute to the app Class T app Class: Attribute Restrictions The Official AppGameKit Tier 2 Starter s Guide: Adding a New

More information

Functions in C++ Problem-Solving Procedure With Modular Design C ++ Function Definition: a single

Functions in C++ Problem-Solving Procedure With Modular Design C ++ Function Definition: a single Functions in C++ Problem-Solving Procedure With Modular Design: Program development steps: Analyze the problem Develop a solution Code the solution Test/Debug the program C ++ Function Definition: A module

More information

Discrete Mathematics 2 Exam File Spring 2012

Discrete Mathematics 2 Exam File Spring 2012 Discrete Mathematics 2 Exam File Spring 2012 Exam #1 1.) Suppose f : X Y and A X. a.) Prove or disprove: f -1 (f(a)) A. Prove or disprove: A f -1 (f(a)). 2.) A die is rolled four times. What is the probability

More information

Biostatistics & SAS programming. Kevin Zhang

Biostatistics & SAS programming. Kevin Zhang Biostatistics & SAS programming Kevin Zhang February 27, 2017 Random variables and distributions 1 Data analysis Simulation study Apply existing methodologies to your collected samples, with the hope to

More information

My first six months with. By Damien Bushby of Blackburn High School, Victoria Presented at MAV Dec, 2007

My first six months with. By Damien Bushby of Blackburn High School, Victoria Presented at MAV Dec, 2007 My first six months with ClassPad. By Damien Bushby of Blackburn High School, Victoria Presented at MAV Dec, 2007 1 Which calculator? Continuation with current company. Trial of new model. Fat fingers

More information

BLOCK STRUCTURE. class block main method block do-while statement block if statement block. if statement block. Block Structure Page 1

BLOCK STRUCTURE. class block main method block do-while statement block if statement block. if statement block. Block Structure Page 1 BLOCK STRUCTURE A block is a bundle of statements in a computer program that can include declarations and executable statements. A programming language is block structured if it (1) allows blocks to be

More information

Chapter 1 Histograms, Scatterplots, and Graphs of Functions

Chapter 1 Histograms, Scatterplots, and Graphs of Functions Chapter 1 Histograms, Scatterplots, and Graphs of Functions 1.1 Using Lists for Data Entry To enter data into the calculator you use the statistics menu. You can store data into lists labeled L1 through

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

Robotics II. Module 2: Application of Data Programming Blocks

Robotics II. Module 2: Application of Data Programming Blocks Robotics II Module 2: Application of Data Programming Blocks PREPARED BY Academic Services Unit December 2011 Applied Technology High Schools, 2011 Module 2: Application of Data Programming Blocks Module

More information

CS220/MATH320 Applied Discrete Mathematics Instructor: Marc Pomplun Practice Exam. Sample Solutions

CS220/MATH320 Applied Discrete Mathematics Instructor: Marc Pomplun Practice Exam. Sample Solutions CS220/MATH320 Applied Discrete Mathematics Instructor: Marc Pomplun Practice Exam Sample Solutions Question 1: Cardinality How many distinct elements does the set S contain in each case? Check the appropriate

More information

CIS192 Python Programming

CIS192 Python Programming CIS192 Python Programming Probability, Simulations & Course Wrap-Up Raymond Yin University of Pennsylvania December 8, 2016 Raymond Yin (University of Pennsylvania) CIS 192 December 8, 2016 1 / 21 Outline

More information

Functions and Recursion

Functions and Recursion Functions and Recursion 1 Outline Introduction Program Components in C++ Math Library Functions Functions Function Definitions Function Prototypes Header Files Random Number Generation Example: A Game

More information

The MSU Department of Mathematics "Account Manager" can be used for the following:

The MSU Department of Mathematics Account Manager can be used for the following: MSU Department of Mathematics Account Manager Tutorial Overview The MSU Department of Mathematics "Account Manager" can be used for the following: Change your Math account password Reset a forgotten password

More information

Minitab Lab #1 Math 120 Nguyen 1 of 7

Minitab Lab #1 Math 120 Nguyen 1 of 7 Minitab Lab #1 Math 120 Nguyen 1 of 7 Objectives: 1) Retrieve a MiniTab file 2) Generate a list of random integers 3) Draw a bar chart, pie chart, histogram, boxplot, stem-and-leaf diagram 4) Calculate

More information

COMP 110 Programming Exercise: Simulation of the Game of Craps

COMP 110 Programming Exercise: Simulation of the Game of Craps COMP 110 Programming Exercise: Simulation of the Game of Craps Craps is a game of chance played by rolling two dice for a series of rolls and placing bets on the outcomes. The background on probability,

More information

OMNITRACKER Demo Version. Quick Installation Guide

OMNITRACKER Demo Version. Quick Installation Guide OMNITRACKER Demo Version Quick Installation Guide 1 Step 1: Demo Download Download by clicking on "OMNITRACKER Client- Server" all files for a demo-installation. The.exe file includes all necessary components

More information

3. Probability 51. probability A numerical value between 0 and 1 assigned to an event to indicate how often the event occurs (in the long run).

3. Probability 51. probability A numerical value between 0 and 1 assigned to an event to indicate how often the event occurs (in the long run). 3. Probability 51 3 Probability 3.1 Key Definitions and Ideas random process A repeatable process that has multiple unpredictable potential outcomes. Although we sometimes use language that suggests that

More information

IT 374 C# and Applications/ IT695 C# Data Structures

IT 374 C# and Applications/ IT695 C# Data Structures IT 374 C# and Applications/ IT695 C# Data Structures Module 2.5: Methods A Deeper Look Xianrong (Shawn) Zheng Spring 2017 1 Outline static Methods, static Variables, and Class Math Methods with Multiple

More information

USER GUIDE.

USER GUIDE. USER GUIDE www.wizteach.com Support Information Support Contact: Please contact your supplier or distributor for support. Alternatively email: support@wizteach.com Minimum System Requirements: Windows

More information

Bitwise Operators Objects and Methods

Bitwise Operators Objects and Methods Bitwise Operators Objects and Methods Chapter 6 Java Bitwise Operators Java has six bitwise operators: Symbol Operator & Bitwise AND Bitwise OR ^ Bitwise XOR ~ Bitwise NOT > RIGHT SHIFT

More information

Experiment 1 Yahtzee or Validating the t-table

Experiment 1 Yahtzee or Validating the t-table Experiment 1 Yahtzee or Validating the t-table Learning Goals 1. Receive training and practice with many useful spreadsheet functions in Excel. 2. Review and experience the concepts of probability and

More information

Introduction to Basic eactivity Manipulations

Introduction to Basic eactivity Manipulations for Version 3 Basic Edition Lesson 5 Introduction to Basic eactivity Manipulations Welcome In this lesson, we will learn how to use the most unique application on the ClassPad: eactivity. Within the eactivity

More information

Chapter Four: Loops II

Chapter Four: Loops II Chapter Four: Loops II Slides by Evan Gallagher & Nikolay Kirov Chapter Goals To understand nested loops To implement programs that read and process data sets To use a computer for simulations Processing

More information

Functions. Computer System and programming in C Prentice Hall, Inc. All rights reserved.

Functions. Computer System and programming in C Prentice Hall, Inc. All rights reserved. Functions In general, functions are blocks of code that perform a number of pre-defined commands to accomplish something productive. You can either use the built-in library functions or you can create

More information

Modeling RNA/DNA with Matlab - Chemistry Summer 2007

Modeling RNA/DNA with Matlab - Chemistry Summer 2007 Modeling RNA/DNA with Matlab - Chemistry 694 - Summer 2007 If you haven t already, download MatlabPrograms.zip from the course Blackboard site and extract all the files into a folder on your disk. Be careful

More information

Fun with Fractals and Functions. CHAMP at University of Houston March 2, 2015 Houston, Texas

Fun with Fractals and Functions. CHAMP at University of Houston March 2, 2015 Houston, Texas Fun with Fractals and Functions CHAMP at University of Houston March 2, 2015 Houston, Texas Alice Fisher afisher@rice.edu Director of Technology Applications & Integration at Rice University School Mathematics

More information

Is the result of multiplying 2 positive numbers positive or negative? Is the result of multiplying 2 negative numbers positive or negative?

Is the result of multiplying 2 positive numbers positive or negative? Is the result of multiplying 2 negative numbers positive or negative? Write down all the work necessary for the problem, this is a part of your class notes that you can use to study from. You will not be able to use notes on quizzes or tests. DO NOT simply write it and toss

More information

static int min(int a, int b) Returns the smaller of two int values. static double pow(double a,

static int min(int a, int b) Returns the smaller of two int values. static double pow(double a, The (Outsource: Supplement) The includes a number of constants and methods you can use to perform common mathematical functions. A commonly used constant found in the Math class is Math.PI which is defined

More information

Functions. Angela Chih-Wei Tang ( 唐之瑋 ) Department of Communication Engineering National Central University JhongLi, Taiwan.

Functions. Angela Chih-Wei Tang ( 唐之瑋 ) Department of Communication Engineering National Central University JhongLi, Taiwan. Functions Angela Chih-Wei Tang ( 唐之瑋 ) Department of Communication Engineering National Central University JhongLi, Taiwan 2009 Fall Outline 5.1 Introduction 5.3 Math Library Functions 5.4 Functions 5.5

More information

Getting Started Manual. SmartList To Go

Getting Started Manual. SmartList To Go Getting Started Manual SmartList To Go Table of contents Installing SmartList To Go 3 Launching SmartList To Go on the handheld 4 SmartList To Go toolbar 4 Creating a SmartList 5 The Field Editor Screen

More information

Introduction to LabVIEW. Modified Powerpoint file taken from ma/courses/es110/

Introduction to LabVIEW. Modified Powerpoint file taken from  ma/courses/es110/ Introduction to LabVIEW Modified Powerpoint file taken from http://www.sonoma.edu/users/f/farahman/sono ma/courses/es110/ 1 Graphical programming language & Data flow LabVIEW relies on graphical symbols

More information

EET2141 Project 2: Binary Adder Using Xilinx 7.1i Due Friday April 25

EET2141 Project 2: Binary Adder Using Xilinx 7.1i Due Friday April 25 EET2141 Project 2: Binary Adder Using Xilinx 7.1i Due Friday April 25 Introduction This Xilinx project introduces the characteristics of the ripple carry adder. From the last project, you learned that

More information

SCRATCH MODULE 3: NUMBER CONVERSIONS

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

More information

Procedures: Algorithms and Abstraction

Procedures: Algorithms and Abstraction Procedures: Algorithms and Abstraction 5 5.1 Objectives After completing this module, a student should be able to: Read and understand simple NetLogo models. Make changes to NetLogo procedures and predict

More information

TI-84 GRAPHING CALCULATOR

TI-84 GRAPHING CALCULATOR TI-84 GRAPHING CALCULATOR Table of Contents Set Up & Troubleshooting... 3 TI-84: Resetting the Calculator... 4 TI-84: Mode Settings... 5 Entering Data... 7 TI-84: Entering & Editing Lists of Data... 8

More information

SportPesa for Android

SportPesa for Android SportPesa for Android Quick User Guide www.sportpesa.com info@sportpesa.com Contents 01 APP DOWNLOAD 03 02 INSTALLING THE APPLICATION 04 03 BETTING CARDS 05 04 BETSLIP 06 05 PLAYING JACKPOT 07 06 HOW TO

More information

Geometry Activity: Segment and Shape Construction. CALCULATORS: Casio: ClassPad 300 Texas Instruments: TI-89, TI-89 Titanium

Geometry Activity: Segment and Shape Construction. CALCULATORS: Casio: ClassPad 300 Texas Instruments: TI-89, TI-89 Titanium Geometry Activity: Segment and Shape Construction Casio Classpad 300 vs. TI-89 CALCULATORS: Casio: ClassPad 300 Texas Instruments: TI-89, TI-89 Titanium C.C. Edwards Using the Casio ClassPad 300 The Cowboy

More information

12 Lead ECG CardioVu Software Installation Guide

12 Lead ECG CardioVu Software Installation Guide 1.0 Introduction The CardioVu software requires a 64 bit Windows OS. This document shows how to install SQL Server 2012 Express database SP1 x64 for use with CardioVu software. The TelemedSQLInstall.exe

More information

Statistics I 2011/2012 Notes about the third Computer Class: Simulation of samples and goodness of fit; Central Limit Theorem; Confidence intervals.

Statistics I 2011/2012 Notes about the third Computer Class: Simulation of samples and goodness of fit; Central Limit Theorem; Confidence intervals. Statistics I 2011/2012 Notes about the third Computer Class: Simulation of samples and goodness of fit; Central Limit Theorem; Confidence intervals. In this Computer Class we are going to use Statgraphics

More information

12/22/11. } Rolling a Six-Sided Die. } Fig 6.7: Rolling a Six-Sided Die 6,000,000 Times

12/22/11. } Rolling a Six-Sided Die. } Fig 6.7: Rolling a Six-Sided Die 6,000,000 Times } Rolling a Six-Sided Die face = 1 + randomnumbers.nextint( 6 ); The argument 6 called the scaling factor represents the number of unique values that nextint should produce (0 5) This is called scaling

More information

Monte Carlo Techniques. Professor Stephen Sekula Guest Lecture PHY 4321/7305 Sep. 3, 2014

Monte Carlo Techniques. Professor Stephen Sekula Guest Lecture PHY 4321/7305 Sep. 3, 2014 Monte Carlo Techniques Professor Stephen Sekula Guest Lecture PHY 431/7305 Sep. 3, 014 What are Monte Carlo Techniques? Computational algorithms that rely on repeated random sampling in order to obtain

More information

Building Java Programs

Building Java Programs Building Java Programs Chapter 5 Lecture 5-2: Random Numbers reading: 5.1, 5.6 1 http://xkcd.com/221/ 2 Randomness Lack of predictability: don't know what's coming next Random process: outcomes do not

More information

Student Name and ID Number. MATH 3012, Quiz 3, April 16, 2018, WTT

Student Name and ID Number. MATH 3012, Quiz 3, April 16, 2018, WTT MATH 3012, Quiz 3, April 16, 2018, WTT Student Name and ID Number 1. A graph with weights on edges is shown below. In the space to the right of the figure, list in order the edges which make up a minimum

More information

Midterm CSE 21 Fall 2012

Midterm CSE 21 Fall 2012 Signature Name Student ID Midterm CSE 21 Fall 2012 Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 _ (20 points) _ (15 points) _ (21 points) _ (13 points) _ (9 points) _ (7 points) Total _ (85 points) (80 points

More information

CIS 162 Project 4 Farkle (a dice game)

CIS 162 Project 4 Farkle (a dice game) CIS 162 Project 4 Farkle (a dice game) Due Date at the start of class on Monday, 3 December (be prepared for quick demo and zybook test) Before Starting the Project Read chapter 10 (ArrayList) and 13 (arrays)

More information

Teaching Kids to Program. Lesson Plan: Catch the Ball

Teaching Kids to Program. Lesson Plan: Catch the Ball Teaching Kids to Program Lesson Plan: Catch the Ball Step 1: 1. Open your web browser and go to SCRATCH (http://scratch.mit.edu/ ) 2. Sign in to your Scratch account by clicking on the button on the top

More information

OBJECTS AND CLASSES. Examples. You and I are instances of the class of objects known as people.

OBJECTS AND CLASSES. Examples. You and I are instances of the class of objects known as people. OBJECTS AND CLASSES Natural-World Objects In our natural world, an object is something that is an instance of a class, which is a larger group of like things. s You and I are instances of the class of

More information

Condition Controlled Loops. Introduction to Programming - Python

Condition Controlled Loops. Introduction to Programming - Python Condition Controlled Loops Introduction to Programming - Python Decision Structures Review Programming Challenge: Review Ask the user for a number from 1 to 7. Tell the user which day of the week was selected!

More information

Probability and Statistics for Final Year Engineering Students

Probability and Statistics for Final Year Engineering Students Probability and Statistics for Final Year Engineering Students By Yoni Nazarathy, Last Updated: April 11, 2011. Lecture 1: Introduction and Basic Terms Welcome to the course, time table, assessment, etc..

More information

OneNote May 13, 2015 Tech Talk Odegaard 220 Greg Frick

OneNote May 13, 2015 Tech Talk Odegaard 220 Greg Frick OneNote 2013 May 13, 2015 Tech Talk Odegaard 220 Greg Frick From the Top About OneNote Usage examples Anatomy of OneNote Recommended practices Learn more About: OneNote is. For Free-form information gathering

More information

Programming for Engineers Functions

Programming for Engineers Functions Programming for Engineers Functions ICEN 200 Spring 2018 Prof. Dola Saha 1 Introduction Real world problems are larger, more complex Top down approach Modularize divide and control Easier to track smaller

More information

CS 540: Introduction to Artificial Intelligence

CS 540: Introduction to Artificial Intelligence CS 540: Introduction to Artificial Intelligence Midterm Exam: 7:15-9:15 pm, October, 014 Room 140 CS Building CLOSED BOOK (one sheet of notes and a calculator allowed) Write your answers on these pages

More information

Born in Tulsa in 1914 and passed away in Norman in 2010.

Born in Tulsa in 1914 and passed away in Norman in 2010. Sooner Math Bowl 2012 November 15, 2012 Photo Martin Gardner by Alex Bellos in 2008 in Norman Born in Tulsa in 1914 and passed away in Norman in 2010. 1 Stage 1 2 Stage 1, Round 1 (2 Questions, 3 Minutes)

More information

Math Centers for Common Core. Numbers and Operations: Fractions. Created by Jennifer Findley

Math Centers for Common Core. Numbers and Operations: Fractions. Created by Jennifer Findley Math Centers for Common Core Numbers and Operations: Fractions Created by Jennifer Findley Common Core Alignment.NF. Add and subtract fractions with unlike denominators (including mixed numbers) by replacing

More information

Q5. What values are stored in the array at the comment in main? Note that the incrementall returns void, but does take an int[] parameter.

Q5. What values are stored in the array at the comment in main? Note that the incrementall returns void, but does take an int[] parameter. Q1. Which of the following choices is the correct syntax for declaring/initializing an array of integers? 1. int[] a = new int[10]; 2. int a[10] = new int[10]; 3. []int a = [10]int; 4. int a[10]; 5. int[10]

More information