ENGR 490: Software Tools for Engineering Laboratory Lab 5: Flowchart and Pseudocode Demo due Friday, September 30 th, 2011 (by 4PM)

Size: px
Start display at page:

Download "ENGR 490: Software Tools for Engineering Laboratory Lab 5: Flowchart and Pseudocode Demo due Friday, September 30 th, 2011 (by 4PM)"

Transcription

1 1 ENGR 490: Software Tools for Engineering Laboratory Lab 5: Flowchart and Pseudocode Demo due Friday, September 30 th, 2011 (by 4PM) Objective We will discuss the software design using Flowchart and Pseudocode. In the assignment, students need to make the flowchart or pseudocode before writing the program. Part 0: Admin stuffs 1. Let s build the folder where you will save your project files. I suggest c:\projects\yourname\engr490\lab5. All files should be organized and put in dropbox. Part 1: Shuffle the array 1. If we want to make 1 random number, it will be very simple by calling rand() command. 2. How about if we want to make N random number that each number is not repeated. This application is suitable for making games, multiple choices. 3. There are many ways to do but Dr. Somsak will show you 2 methods using flowchart first. a. Create a new project called ExampleShuffleArray1 b. The first idea is to create an array with size N, and initialize with number from 0 to N-1 in order. c. Then we will pick 2 numbers from 0 to N-1 representing the indexes and swap the content inside that 2 locations. Repeat this process many times, eventually the content will be random and never repeat. See the flowchart.

2 4. If you agree that the flowchart is correct and covers everything that you need, we can start writing the code now. Run and you will see the results. At this point, I would recommend to include a bunch of header files since you don t remember which command is belong to which one. 5. Notice that way that I use #define instead of hard code number. Because we can change the size of array to anything easy by changing one place, instead of doing many times Run the program and see results. Try to remember the number for a few samples. Run again, see if it is random and never repeat. 7. You may be able to shorten the loop by doing just 1000 times, instead of 1 million. It should yield the fine result since it is too small array. 8. Try to make a random for array size 52. You can simple by changing the N in define.

3 Part 2: Shuffle the array part 2 1. The method in part 1 for shuffling array or generating nonrepeat numbers is simple. It has a disadvantage that we create the array size N ahead of time. If the N is big, 5000, it can use a lot of memory and time to shuffle. 2. Sometimes in application that we want to make a few array but the content is nonrepeat and big numbers. We should use different method. 3. The second method that we will use based on making one random number at the time. Each time that we make, we will check if it is already created, if yes we will repeat until it is never created. 4. As you can see, we know that we need to make N random number, use for-loop. 5. But we don t know how many times we need to check with the duplicated numbers. In this case, we will involve using while. 6. Following is the flowchart, see that is more complicate than the first one but it is faster to get the outputs. a. Variable i is for index of X, keep track the new random number b. Variable k is for index that checks duplicate with anything that X has so far. c. This method can do any range, does not need to be 0 to N-1, can be 1 million to 2 millions. 3

4 7. Make a new project, write this code. Run. You will see it makes 10 numbers from 100 to You can change any number in the define. 8. BUG: what happen if you define N is 10, and random max and min are 0 and 5 respectively. Try and run. Why nothing shows up? 9. In the future, feel free to use either one of this method to make shuffled array. 4

5 5 Part 3: Sorting Array 1. If you have the array size N and would like to sort from minimum to maximum (or max to min), there are several methods we can do such as bubble sort. 2. The idea of bubble sort is to compare 2 numbers at the time and switch them if it is not in order. The comparison will continue until there is nothing changed or swapped. 3. I recommend you to look at this link for visualization The pseudo code of this bubble sort can be written as 5. Copy part 2 code folder to a new one. Name the folder ExampleSort. 6. Add sorting once you have the random array, before printing out. Don t forget to declare variables for swapped and temp.

6 6 C code implementation //assume you have an unsorted array size N //use results from part 2 //see how I translate pseudocode to C code swapped = 1; while (swapped){ swapped = 0; for(i=0;i<n-1;i++){ if (X[i] > X[i+1]){ //swap 2 elements temp = X[i]; X[i] = X[i+1]; X[i+1] = temp; swapped = 1; } } } //show X 7. You should see that the outputs show array of random data that also sorted from min to max. 8. Question 1: can you simply modify a little, to sort from max to min. It should be easy. 9. Question 2: based on pseudo code and C code, can you write the flowchart? The solution is on the next page, don t look at it until you practice to write the flowchart. 10. If you want the program for drawing flowchart for report or website, Google Doc provides the flowchart program called drawing. You can login google account and find google doc. Create a new drawing file. Once finish, you export to a picture file.

7 7

8 8 ENGR 490: Software Tools for Engineering Lab Assignment 5: Flowchart and Pseudocode Source code and demo due by Friday, September 30 th, 2011 (by 4PM) 1. You should assign each person to take one question independently and discuss at the end. 2. For the hard question, you should work as a team, starting with design flowchart. Competition Rules and Award In this competition, Dr. Somsak will measure how effective and concise that you write the code. He will use the number of lines that you wrote on 2 problems, 1) salesman travel and 2) histrogram to measure. He will count the number of lines in the code, except { line, white space such as blank line. Then he will take log base 10 for the number of lines for each problem and sum. The team with lowest number is the winner. The award is 1 question off for the oral midterm. Each problem needs to start with flowchart before writing the code. Dr. Somsak will ask to see your flowchart each time you ask his help and demo time. Project 1: Roll roll the dice.. Crap Game (appleapple) Design a crap game. You will roll 2 dices. Use spacebar to simulate rolling the dice. You can do it by system( pause ); command. You will need to include stdlib.h. Use %c with the appropriate number to make sound. In this problem, you simply make 2 random numbers independently. I can repeat. Show the message of points, money. Start money with 200 dollars and you can bet each round that is less than the money that you have. If you bet more than the money that you have, the program should repeat ask you again. If you win, you get money back + same amount that you bet. You you lose, you will lose the bet. If the money reaches zero lose, if the point is over 999 win the game. Make the flowchart first.

9 9 Project 2: Histogram (appleappleapple) Competition problem Given that you have an array size 1000 containing salary of 1000 people. You can do this task with random data between 5000 and We want to find the histogram of data, basically the range of data and it will tell how many counts in there. The range is divided into 20 spacing equally, e.g , Count and assign each array elements into the histogram. The result should show o Bin 1: salary from??? to??? has xxxx persons o Bin 2: salary from??? to??? has yyyy persons Example: if I have 6 numbers I want to break into 2 bins, it will be from bin#1 from 1 to 3 [1,3] and bin#2 from 3 to 6 (3,5]. The results will be Bin 1: from 1 to 3 has 2 populations. Bin 2: from 3 to 5 has 4 populations. Hint: if you are writing something that looks same same and tedious, try to make it shorter using C command such as for-loop. You need to find the pattern in it. Project 3: Statistics Part 2 (appleapple) Copy the code from previous lab to this week folder. We will modify the code to do more thing Print out on the screen to show the following statistics o Old stuffs: Min, Max.. Variance o Median (need to sort array first) o Mode (need to do histogram first, see project 2) Project 4: Salesman Travel (appleappleappleappleappleappleappleappleappleappleappleappleappleappleapple) 1. Competition problem 2. Imagine that you have the location of 10 cities on x-y plan. Each one has 2 numbers representing the location in x and y coordinates. To find the distance from one point to another point it will be d = ( x 1 x 2 ) 2 + ( y 1 y 2 ) 2.

10 10 3. The question is, if you start to travel from the city #0 and want to go to all cities and come back to city #0 again, what will be the good order in term of minimum total distance? To solve this, we can end up with so many possibilities and pick the one the have minimum distance. That will be about 10! = 3 million choices. 4. If the number of cities increase such as becomes 30, you will end up with trillion possibilities, take a year to get the answer. In this assignment, we will try to solve the minimum path for 10 cities. If you start at city#x and back at city#x again, e.g. city#5 and back to city#5 eventually. We will randomly generate sequence. o Start with random one sequence that start with 0, such as o Find the distance between cities and don t forget to add distance of the last one back to city#0 and use this one as the first result of distance and city. o Random the number again but it needs to start with 0 and the rest are 1 to 9 only never repeat. Find the distance + back to 0 of the last one, compare with the minimum that you have so far. o If it is lower, you will copy the data and print out sequence and result on screen. o Do it 3,000,000 random sequences, and the final answer will be somewhat minimum distance path that we try to search. o Print out the result of the minimum path including city sequences and total distance. o Use the following data. Use the graph to check if it makes sense to you. City x y

Lab 11. Simulations. The Concept

Lab 11. Simulations. The Concept Lab 11 Simulations In this lab you ll learn how to create simulations to provide approximate answers to probability questions. We ll make use of a particular kind of structure, called a box model, that

More information

Ready, Set, Go! Math Games for Serious Minds

Ready, Set, Go! Math Games for Serious Minds Math Games with Cards and Dice presented at NAGC November, 2013 Ready, Set, Go! Math Games for Serious Minds Rande McCreight Lincoln Public Schools Lincoln, Nebraska Math Games with Cards Close to 20 -

More information

MA 1125 Lecture 14 - Expected Values. Friday, February 28, 2014. Objectives: Introduce expected values.

MA 1125 Lecture 14 - Expected Values. Friday, February 28, 2014. Objectives: Introduce expected values. MA 5 Lecture 4 - Expected Values Friday, February 2, 24. Objectives: Introduce expected values.. Means, Variances, and Standard Deviations of Probability Distributions Two classes ago, we computed the

More information

Lesson 4 What Is a Plant s Life Cycle? The Seasons of a Tree

Lesson 4 What Is a Plant s Life Cycle? The Seasons of a Tree Lesson 4 What Is a Plant s Life Cycle? The Seasons of a Tree STUDENT SKILLS: predicting, communicating prior observations and knowledge, listening, cooperating, observing, sequencing, communicating, reasoning,

More information

After 3 races the player with the highest winnings has won that day s racing.

After 3 races the player with the highest winnings has won that day s racing. Jockey 2-6 players Ravensburg Games Contents: 1 playing board 54 jockey cards 4 horses 1 pad of betting sheets play money This exciting game conveys all the suspense of the racetrack. In Jockey the players

More information

Dobbin Day - User Guide

Dobbin Day - User Guide Dobbin Day - User Guide Introduction Dobbin Day is an in running performance form analysis tool. A runner s in-running performance is solely based on the price difference between its BSP (Betfair Starting

More information

Week 5: Expected value and Betting systems

Week 5: Expected value and Betting systems Week 5: Expected value and Betting systems Random variable A random variable represents a measurement in a random experiment. We usually denote random variable with capital letter X, Y,. If S is the sample

More information

Memory Management Simulation Interactive Lab

Memory Management Simulation Interactive Lab Memory Management Simulation Interactive Lab The purpose of this lab is to help you to understand deadlock. We will use a MOSS simulator for this. The instructions for this lab are for a computer running

More information

(Refer Slide Time: 2:03)

(Refer Slide Time: 2:03) Control Engineering Prof. Madan Gopal Department of Electrical Engineering Indian Institute of Technology, Delhi Lecture - 11 Models of Industrial Control Devices and Systems (Contd.) Last time we were

More information

There are a number of superb online resources as well that provide excellent blackjack information as well. We recommend the following web sites:

There are a number of superb online resources as well that provide excellent blackjack information as well. We recommend the following web sites: 3. Once you have mastered basic strategy, you are ready to begin learning to count cards. By counting cards and using this information to properly vary your bets and plays, you can get a statistical edge

More information

Ch. 13.2: Mathematical Expectation

Ch. 13.2: Mathematical Expectation Ch. 13.2: Mathematical Expectation Random Variables Very often, we are interested in sample spaces in which the outcomes are distinct real numbers. For example, in the experiment of rolling two dice, we

More information

Analysis of Micromouse Maze Solving Algorithms

Analysis of Micromouse Maze Solving Algorithms 1 Analysis of Micromouse Maze Solving Algorithms David M. Willardson ECE 557: Learning from Data, Spring 2001 Abstract This project involves a simulation of a mouse that is to find its way through a maze.

More information

L OCUTOUR. Get Ready to Spell! MULTIMEDIA COGNITIVE REHABILITATION

L OCUTOUR. Get Ready to Spell! MULTIMEDIA COGNITIVE REHABILITATION L OCUTOUR MULTIMEDIA COGNITIVE REHABILITATION Get Ready to Spell! Get Ready to Spell! Why Use This Program? This program is based on the observation that we learn by repetition. Many of the activities

More information

Math Games For Skills and Concepts

Math Games For Skills and Concepts Math Games p.1 Math Games For Skills and Concepts Original material 2001-2006, John Golden, GVSU permission granted for educational use Other material copyright: Investigations in Number, Data and Space,

More information

Algorithm & Flowchart & Pseudo code. Staff Incharge: S.Sasirekha

Algorithm & Flowchart & Pseudo code. Staff Incharge: S.Sasirekha Algorithm & Flowchart & Pseudo code Staff Incharge: S.Sasirekha Computer Programming and Languages Computers work on a set of instructions called computer program, which clearly specify the ways to carry

More information

CSE 326, Data Structures. Sample Final Exam. Problem Max Points Score 1 14 (2x7) 2 18 (3x6) 3 4 4 7 5 9 6 16 7 8 8 4 9 8 10 4 Total 92.

CSE 326, Data Structures. Sample Final Exam. Problem Max Points Score 1 14 (2x7) 2 18 (3x6) 3 4 4 7 5 9 6 16 7 8 8 4 9 8 10 4 Total 92. Name: Email ID: CSE 326, Data Structures Section: Sample Final Exam Instructions: The exam is closed book, closed notes. Unless otherwise stated, N denotes the number of elements in the data structure

More information

Automatic Bet Tracker!

Automatic Bet Tracker! Russell Hunter Street Smart Roulette Automatic Bet Tracker! Russell Hunter Publishing, Inc. Street Smart Roulette Automatic Bet Tracker 2015 Russell Hunter and Russell Hunter Publishing, Inc. All Rights

More information

How to Make the Most of Excel Spreadsheets

How to Make the Most of Excel Spreadsheets How to Make the Most of Excel Spreadsheets Analyzing data is often easier when it s in an Excel spreadsheet rather than a PDF for example, you can filter to view just a particular grade, sort to view which

More information

AP Computer Science Java Mr. Clausen Program 9A, 9B

AP Computer Science Java Mr. Clausen Program 9A, 9B AP Computer Science Java Mr. Clausen Program 9A, 9B PROGRAM 9A I m_sort_of_searching (20 points now, 60 points when all parts are finished) The purpose of this project is to set up a program that will

More information

4 Other useful features on the course web page. 5 Accessing SAS

4 Other useful features on the course web page. 5 Accessing SAS 1 Using SAS outside of ITCs Statistical Methods and Computing, 22S:30/105 Instructor: Cowles Lab 1 Jan 31, 2014 You can access SAS from off campus by using the ITC Virtual Desktop Go to https://virtualdesktopuiowaedu

More information

1 Description of The Simpletron

1 Description of The Simpletron Simulating The Simpletron Computer 50 points 1 Description of The Simpletron In this assignment you will write a program to simulate a fictional computer that we will call the Simpletron. As its name implies

More information

Year 2 Summer Term Oral and Mental Starter Activity Bank

Year 2 Summer Term Oral and Mental Starter Activity Bank Year 2 Summer Term Oral and Mental Starter Activity Bank Objectives for term Recall x2 table facts and derive division facts. Recognise multiples of 5. Recall facts in x5 table. Recall x10 table and derive

More information

ECON 459 Game Theory. Lecture Notes Auctions. Luca Anderlini Spring 2015

ECON 459 Game Theory. Lecture Notes Auctions. Luca Anderlini Spring 2015 ECON 459 Game Theory Lecture Notes Auctions Luca Anderlini Spring 2015 These notes have been used before. If you can still spot any errors or have any suggestions for improvement, please let me know. 1

More information

Final Exam. Route Computation: One reason why link state routing is preferable to distance vector style routing.

Final Exam. Route Computation: One reason why link state routing is preferable to distance vector style routing. UCSD CSE CS 123 Final Exam Computer Networks Directions: Write your name on the exam. Write something for every question. You will get some points if you attempt a solution but nothing for a blank sheet

More information

Minimax Strategies. Minimax Strategies. Zero Sum Games. Why Zero Sum Games? An Example. An Example

Minimax Strategies. Minimax Strategies. Zero Sum Games. Why Zero Sum Games? An Example. An Example Everyone who has studied a game like poker knows the importance of mixing strategies With a bad hand, you often fold But you must bluff sometimes Lectures in Microeconomics-Charles W Upton Zero Sum Games

More information

Evaluating Trading Systems By John Ehlers and Ric Way

Evaluating Trading Systems By John Ehlers and Ric Way Evaluating Trading Systems By John Ehlers and Ric Way INTRODUCTION What is the best way to evaluate the performance of a trading system? Conventional wisdom holds that the best way is to examine the system

More information

PaperStream Connect. Setup Guide. Version 1.0.0.0. Copyright Fujitsu

PaperStream Connect. Setup Guide. Version 1.0.0.0. Copyright Fujitsu PaperStream Connect Setup Guide Version 1.0.0.0 Copyright Fujitsu 2014 Contents Introduction to PaperStream Connect... 2 Setting up PaperStream Capture to Release to Cloud Services... 3 Selecting a Cloud

More information

5050 Getting Started

5050 Getting Started 5050 Getting Started Getting Started.. The 50/50 system is basically made up of four components, the Software Application, Server, J2 Selling Stations (on tables) and the Handheld Selling Units. This manual

More information

On-line Storage and Backup Services

On-line Storage and Backup Services Google Drive, icloud, Dropbox, Evernote There are many different services available that allow us to store, backup, and even share our files. Tonight we will explore some of these; how to use them and

More information

In the situations that we will encounter, we may generally calculate the probability of an event

In the situations that we will encounter, we may generally calculate the probability of an event What does it mean for something to be random? An event is called random if the process which produces the outcome is sufficiently complicated that we are unable to predict the precise result and are instead

More information

Module 6.3 Client Catcher The Sequence (Already Buying Leads)

Module 6.3 Client Catcher The Sequence (Already Buying Leads) Module 6.3 Client Catcher The Sequence (Already Buying Leads) Welcome to Module 6.3 of the Client Catcher entitled The Sequence. I recently pulled over 300 of the local lead generation explosion members

More information

Bar Graphs and Dot Plots

Bar Graphs and Dot Plots CONDENSED L E S S O N 1.1 Bar Graphs and Dot Plots In this lesson you will interpret and create a variety of graphs find some summary values for a data set draw conclusions about a data set based on graphs

More information

Copyrights PPC Bully (MyAdWise Ltd.) - www.ppcbully.com Page 1 of 13

Copyrights PPC Bully (MyAdWise Ltd.) - www.ppcbully.com Page 1 of 13 Copyrights PPC Bully (MyAdWise Ltd.) - www.ppcbully.com Page 1 of 13 Before we start... Don't forget to register for the PPC Bully Challenge Emil & The PPC Bully Team Will Launch A Campaign In A Niche

More information

Lecture 2 Mathcad Basics

Lecture 2 Mathcad Basics Operators Lecture 2 Mathcad Basics + Addition, - Subtraction, * Multiplication, / Division, ^ Power ( ) Specify evaluation order Order of Operations ( ) ^ highest level, first priority * / next priority

More information

Lab Experience 17. Programming Language Translation

Lab Experience 17. Programming Language Translation Lab Experience 17 Programming Language Translation Objectives Gain insight into the translation process for converting one virtual machine to another See the process by which an assembler translates assembly

More information

WARNING DO NOT UNDER ANY CIRCUMSTANCE RUN MORE THAN ONE VERSION OF THE GREY HORSE BOT ON THE SAME MARKET.

WARNING DO NOT UNDER ANY CIRCUMSTANCE RUN MORE THAN ONE VERSION OF THE GREY HORSE BOT ON THE SAME MARKET. This document and all the contents are. No part of this may be reproduced in any form without prior written consent. Disclaimer Neither Sporting Bots Limited, nor anyone associated with Sporting Bots Limited

More information

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 10

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 10 CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 10 Introduction to Discrete Probability Probability theory has its origins in gambling analyzing card games, dice,

More information

Data exploration with Microsoft Excel: univariate analysis

Data exploration with Microsoft Excel: univariate analysis Data exploration with Microsoft Excel: univariate analysis Contents 1 Introduction... 1 2 Exploring a variable s frequency distribution... 2 3 Calculating measures of central tendency... 16 4 Calculating

More information

CS104: Data Structures and Object-Oriented Design (Fall 2013) October 24, 2013: Priority Queues Scribes: CS 104 Teaching Team

CS104: Data Structures and Object-Oriented Design (Fall 2013) October 24, 2013: Priority Queues Scribes: CS 104 Teaching Team CS104: Data Structures and Object-Oriented Design (Fall 2013) October 24, 2013: Priority Queues Scribes: CS 104 Teaching Team Lecture Summary In this lecture, we learned about the ADT Priority Queue. A

More information

Intro to Simulation (using Excel)

Intro to Simulation (using Excel) Intro to Simulation (using Excel) DSC340 Mike Pangburn Generating random numbers in Excel Excel has a RAND() function for generating random numbers The numbers are really coming from a formula and hence

More information

Thursday, November 13: 6.1 Discrete Random Variables

Thursday, November 13: 6.1 Discrete Random Variables Thursday, November 13: 6.1 Discrete Random Variables Read 347 350 What is a random variable? Give some examples. What is a probability distribution? What is a discrete random variable? Give some examples.

More information

if and if-else: Part 1

if and if-else: Part 1 if and if-else: Part 1 Objectives Write if statements (including blocks) Write if-else statements (including blocks) Write nested if-else statements We will now talk about writing statements that make

More information

Easy Casino Profits. Congratulations!!

Easy Casino Profits. Congratulations!! Easy Casino Profits The Easy Way To Beat The Online Casinos Everytime! www.easycasinoprofits.com Disclaimer The authors of this ebook do not promote illegal, underage gambling or gambling to those living

More information

7 6.2 Windows Vista / Windows 7. 10 8.2 IP Address Syntax. 12 9.2 Mobile Port. 13 10.2 Windows Vista / Windows 7. 17 13.2 Apply Rules To Your Device

7 6.2 Windows Vista / Windows 7. 10 8.2 IP Address Syntax. 12 9.2 Mobile Port. 13 10.2 Windows Vista / Windows 7. 17 13.2 Apply Rules To Your Device TABLE OF CONTENTS ADDRESS CHECKLIST 3 INTRODUCTION 4 WHAT IS PORT FORWARDING? 4 PROCEDURE OVERVIEW 5 PHYSICAL CONNECTION 6 FIND YOUR ROUTER S LOCAL NETWORK IP ADDRESS 7 6.1 Windows XP 7 6.2 Windows Vista

More information

Advanced Excel Charts : Tables : Pivots : Macros

Advanced Excel Charts : Tables : Pivots : Macros Advanced Excel Charts : Tables : Pivots : Macros Charts In Excel, charts are a great way to visualize your data. However, it is always good to remember some charts are not meant to display particular types

More information

Day 1. This is CS50 for MBAs. Harvard Busines School. Spring 2015. Cheng Gong

Day 1. This is CS50 for MBAs. Harvard Busines School. Spring 2015. Cheng Gong This is CS50 for MBAs. Harvard Busines School. Spring 2015. Cheng Gong Table of Contents Gangnam Style... 1 Internet Issues... 2 Course info... 6 Day 0, recap... 7 Peanut butter jelly time... 8 Sorting...

More information

Page 18. Using Software To Make More Money With Surveys. Visit us on the web at: www.takesurveysforcash.com

Page 18. Using Software To Make More Money With Surveys. Visit us on the web at: www.takesurveysforcash.com Page 18 Page 1 Using Software To Make More Money With Surveys by Jason White Page 2 Introduction So you re off and running with making money by taking surveys online, good for you! The problem, as you

More information

HONORS STATISTICS. Mrs. Garrett Block 2 & 3

HONORS STATISTICS. Mrs. Garrett Block 2 & 3 HONORS STATISTICS Mrs. Garrett Block 2 & 3 Tuesday December 4, 2012 1 Daily Agenda 1. Welcome to class 2. Please find folder and take your seat. 3. Review OTL C7#1 4. Notes and practice 7.2 day 1 5. Folders

More information

We { can see that if U = 2, 3, 7, 11, or 12 then the round is decided on the first cast, U = V, and W if U = 7, 11 X = L if U = 2, 3, 12.

We { can see that if U = 2, 3, 7, 11, or 12 then the round is decided on the first cast, U = V, and W if U = 7, 11 X = L if U = 2, 3, 12. How to Play Craps: Craps is a dice game that is played at most casinos. We will describe here the most common rules of the game with the intention of understanding the game well enough to analyze the probability

More information

Q&As: Microsoft Excel 2013: Chapter 2

Q&As: Microsoft Excel 2013: Chapter 2 Q&As: Microsoft Excel 2013: Chapter 2 In Step 5, why did the date that was entered change from 4/5/10 to 4/5/2010? When Excel recognizes that you entered a date in mm/dd/yy format, it automatically formats

More information

LabVIEW Day 6: Saving Files and Making Sub vis

LabVIEW Day 6: Saving Files and Making Sub vis LabVIEW Day 6: Saving Files and Making Sub vis Vern Lindberg You have written various vis that do computations, make 1D and 2D arrays, and plot graphs. In practice we also want to save that data. We will

More information

Figure 1: Graphical example of a mergesort 1.

Figure 1: Graphical example of a mergesort 1. CSE 30321 Computer Architecture I Fall 2011 Lab 02: Procedure Calls in MIPS Assembly Programming and Performance Total Points: 100 points due to its complexity, this lab will weight more heavily in your

More information

DIVISION OF DECIMALS. 1503 9. We then we multiply by the

DIVISION OF DECIMALS. 1503 9. We then we multiply by the Tallahassee Community College 0 DIVISION OF DECIMALS To divide 9, we write these fractions: reciprocal of the divisor 0 9. We then we multiply by the 0 67 67 = = 9 67 67 The decimal equivalent of is. 67.

More information

Decision Theory. 36.1 Rational prospecting

Decision Theory. 36.1 Rational prospecting 36 Decision Theory Decision theory is trivial, apart from computational details (just like playing chess!). You have a choice of various actions, a. The world may be in one of many states x; which one

More information

School account creation guide

School account creation guide School account creation guide Contents Your welcome email Page 2 The CSV file Page 3 Uploading the CSV and creating the accounts Page 5 Retrieving staff usernames and passwords Page 8 Retrieving student

More information

I n t e r a c t i n g G a l a x i e s - Making Ellipticals Te a c h e r N o t e s

I n t e r a c t i n g G a l a x i e s - Making Ellipticals Te a c h e r N o t e s I n t e r a c t i n g G a l a x i e s - Making Ellipticals Te a c h e r N o t e s Author: Sarah Roberts Interacting - Making Ellipticals - Teacher Notes Making Ellipticals Making Ellipticals - Changing

More information

Pseudo code Tutorial and Exercises Teacher s Version

Pseudo code Tutorial and Exercises Teacher s Version Pseudo code Tutorial and Exercises Teacher s Version Pseudo-code is an informal way to express the design of a computer program or an algorithm in 1.45. The aim is to get the idea quickly and also easy

More information

Money Unit $$$$$$$$$$$$$$$$$$$$$$$$ First Grade

Money Unit $$$$$$$$$$$$$$$$$$$$$$$$ First Grade Number Sense: By: Jenny Hazeman & Heather Copiskey Money Unit $$$$$$$$$$$$$$$$$$$$$$$$ First Grade Lesson 1: Introduction to Coins (pennies, nickels, dimes) The Coin Counting Book by Roxanne Williams A

More information

NF5-12 Flexibility with Equivalent Fractions and Pages 110 112

NF5-12 Flexibility with Equivalent Fractions and Pages 110 112 NF5- Flexibility with Equivalent Fractions and Pages 0 Lowest Terms STANDARDS preparation for 5.NF.A., 5.NF.A. Goals Students will equivalent fractions using division and reduce fractions to lowest terms.

More information

WORDS THEIR WAY. Thursday- FREE CHOICE: See the attached page with Free Choice options and assist your child in completing this activity.

WORDS THEIR WAY. Thursday- FREE CHOICE: See the attached page with Free Choice options and assist your child in completing this activity. WORDS THEIR WAY Dear Parents, Your child will be bringing home a collection of spelling words weekly that have been introduced in class. Each night of the week, your child is expected to do a different

More information

SAT Math Facts & Formulas Review Quiz

SAT Math Facts & Formulas Review Quiz Test your knowledge of SAT math facts, formulas, and vocabulary with the following quiz. Some questions are more challenging, just like a few of the questions that you ll encounter on the SAT; these questions

More information

Assessment of robust capacity utilisation in railway networks

Assessment of robust capacity utilisation in railway networks Assessment of robust capacity utilisation in railway networks Lars Wittrup Jensen 2015 Agenda 1) Introduction to WP 3.1 and PhD project 2) Model for measuring capacity consumption in railway networks a)

More information

THE WISDOM OF 14 ACCOUNTING TEXTBOOKS.

THE WISDOM OF 14 ACCOUNTING TEXTBOOKS. THE WISDOM OF 14 ACCOUNTING TEXTBOOKS. ALL IN ONE FUN, INTERACTIVE GAME. Students get a kick out of learning when it s more engaging than a textbook. Sorry, textbooks. We wrapped up all the stuff they

More information

Computation and Economics - Spring 2012 Assignment #3: File Sharing

Computation and Economics - Spring 2012 Assignment #3: File Sharing Computation and Economics - Spring 2012 Assignment #3: File Sharing Professor Sven Seuken Department of Informatics, University of Zurich Out Thursday, March 8, 2012 Due 14:00 sharp: Monday, March 19,

More information

Fruit Machine. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

Fruit Machine. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code Introduction: This is a game that has three sprites that change costume. You have to stop them when they re showing the same picture (like a fruit machine!). Activity Checklist Follow these INSTRUCTIONS

More information

Dynamic Programming Problem Set Partial Solution CMPSC 465

Dynamic Programming Problem Set Partial Solution CMPSC 465 Dynamic Programming Problem Set Partial Solution CMPSC 465 I ve annotated this document with partial solutions to problems written more like a test solution. (I remind you again, though, that a formal

More information

Building Java Programs

Building Java Programs Building Java Programs Chapter 5 Lecture 5-2: Random Numbers reading: 5.1-5.2 self-check: #8-17 exercises: #3-6, 10, 12 videos: Ch. 5 #1-2 1 The Random class A Random object generates pseudo-random* numbers.

More information

CHM 579 Lab 1: Basic Monte Carlo Algorithm

CHM 579 Lab 1: Basic Monte Carlo Algorithm CHM 579 Lab 1: Basic Monte Carlo Algorithm Due 02/12/2014 The goal of this lab is to get familiar with a simple Monte Carlo program and to be able to compile and run it on a Linux server. Lab Procedure:

More information

Suite. How to Use GrandMaster Suite. Exporting with ODBC

Suite. How to Use GrandMaster Suite. Exporting with ODBC Suite How to Use GrandMaster Suite Exporting with ODBC This page intentionally left blank ODBC Export 3 Table of Contents: HOW TO USE GRANDMASTER SUITE - EXPORTING WITH ODBC...4 OVERVIEW...4 WHAT IS ODBC?...

More information

National Championships 2016. Konami Digital Entertainment B.V. (KDE) Yu-Gi-Oh! TRADING CARD GAME 2016 WCQ National Championship FAQ.

National Championships 2016. Konami Digital Entertainment B.V. (KDE) Yu-Gi-Oh! TRADING CARD GAME 2016 WCQ National Championship FAQ. National Championships 2016 Konami Digital Entertainment B.V. (KDE) Yu-Gi-Oh! TRADING CARD GAME 2016 WCQ National Championship FAQ Page 1 Basic Information 4 What are National Championships? 4 Where and

More information

You are to simulate the process by making a record of the balls chosen, in the sequence in which they are chosen. Typical output for a run would be:

You are to simulate the process by making a record of the balls chosen, in the sequence in which they are chosen. Typical output for a run would be: Lecture 7 Picking Balls From an Urn The problem: An urn has n (n = 10) balls numbered from 0 to 9 A ball is selected at random, its' is number noted, it is set aside, and another ball is selected from

More information

Paper 1. Calculator not allowed. Mathematics test. First name. Last name. School. Remember KEY STAGE 3 TIER 6 8

Paper 1. Calculator not allowed. Mathematics test. First name. Last name. School. Remember KEY STAGE 3 TIER 6 8 Ma KEY STAGE 3 Mathematics test TIER 6 8 Paper 1 Calculator not allowed First name Last name School 2009 Remember The test is 1 hour long. You must not use a calculator for any question in this test. You

More information

Learn How to Create and Profit From Your Own Information Products!

Learn How to Create and Profit From Your Own Information Products! How to Setup & Sell Your Digital Products Using JVZoo Learn How to Create and Profit From Your Own Information Products! Introduction to JVZoo What is JVZoo? JVZoo is a digital marketplace where product

More information

The Taxman Game. Robert K. Moniot September 5, 2003

The Taxman Game. Robert K. Moniot September 5, 2003 The Taxman Game Robert K. Moniot September 5, 2003 1 Introduction Want to know how to beat the taxman? Legally, that is? Read on, and we will explore this cute little mathematical game. The taxman game

More information

Crude: The Oil Game 1

Crude: The Oil Game 1 Crude: The Oil Game 1 Contents Game Components... 3 Introduction And Object Of The Game... 4 Setting Up The Game... 4 Pick A Starting Player... 6 The Special Purchase Round... 6 Sequence Of Play... 7 The

More information

CHAPTER 6: ANALYZE MICROSOFT DYNAMICS NAV 5.0 DATA IN MICROSOFT EXCEL

CHAPTER 6: ANALYZE MICROSOFT DYNAMICS NAV 5.0 DATA IN MICROSOFT EXCEL Chapter 6: Analyze Microsoft Dynamics NAV 5.0 Data in Microsoft Excel CHAPTER 6: ANALYZE MICROSOFT DYNAMICS NAV 5.0 DATA IN MICROSOFT EXCEL Objectives The objectives are: Explain the process of exporting

More information

IBM SPSS Direct Marketing 23

IBM SPSS Direct Marketing 23 IBM SPSS Direct Marketing 23 Note Before using this information and the product it supports, read the information in Notices on page 25. Product Information This edition applies to version 23, release

More information

The fairy tale Hansel and Gretel tells the story of a brother and sister who

The fairy tale Hansel and Gretel tells the story of a brother and sister who Piecewise Functions Developing the Graph of a Piecewise Function Learning Goals In this lesson, you will: Develop the graph of a piecewise function from a contet with or without a table of values. Represent

More information

MATHEMATICS Y3 Using and applying mathematics 3810 Solve mathematical puzzles and investigate. Equipment MathSphere www.mathsphere.co.

MATHEMATICS Y3 Using and applying mathematics 3810 Solve mathematical puzzles and investigate. Equipment MathSphere www.mathsphere.co. MATHEMATICS Y3 Using and applying mathematics 3810 Solve mathematical puzzles and investigate. Equipment Paper, pencil, ruler Dice, number cards, buttons/counters, boxes etc MathSphere 3810 Solve mathematical

More information

How to find (and change) facepanel pot priority settings

How to find (and change) facepanel pot priority settings Consoles 173 Emphasis Diagnostics and Recovery How to find (and change) facepanel pot priority settings Finding Facepanel Priorities are very important in Emphasis in determining which physical or virtual

More information

Module 4: Goal Setting and Planning

Module 4: Goal Setting and Planning Module 4: Goal Setting and Planning This module addresses the ways in which goal setting and planning help to promote life satisfaction. Setting goals helps people to look forward to the future and have

More information

IBM SPSS Direct Marketing 22

IBM SPSS Direct Marketing 22 IBM SPSS Direct Marketing 22 Note Before using this information and the product it supports, read the information in Notices on page 25. Product Information This edition applies to version 22, release

More information

CM HOST CM CardTransporter Fuel Communication and Management Software 10.10.06 Software version up to 3.1

CM HOST CM CardTransporter Fuel Communication and Management Software 10.10.06 Software version up to 3.1 CM HOST CM CardTransporter Fuel Communication and Management Software 10.10.06 Software version up to 3.1 CM Host Manual For CardMaster Fuel Control www.cardlockvending.com customers call 888-487-5040

More information

From The Little SAS Book, Fifth Edition. Full book available for purchase here.

From The Little SAS Book, Fifth Edition. Full book available for purchase here. From The Little SAS Book, Fifth Edition. Full book available for purchase here. Acknowledgments ix Introducing SAS Software About This Book xi What s New xiv x Chapter 1 Getting Started Using SAS Software

More information

VB Controls and Events. Introduc)on. Program Planning and Flowcharts Visual Basic Visual basic Interface VB Controls CreaGng a Project

VB Controls and Events. Introduc)on. Program Planning and Flowcharts Visual Basic Visual basic Interface VB Controls CreaGng a Project CE 311 K Introduc/on to Computer Methods VB Controls and Events Daene C. McKinney Introduc)on Program Planning and Flowcharts Visual Basic Visual basic Interface VB Controls CreaGng a Project 1 Why Visual

More information

Logarithmic and Exponential Equations

Logarithmic and Exponential Equations 11.5 Logarithmic and Exponential Equations 11.5 OBJECTIVES 1. Solve a logarithmic equation 2. Solve an exponential equation 3. Solve an application involving an exponential equation Much of the importance

More information

WEEK #22: PDFs and CDFs, Measures of Center and Spread

WEEK #22: PDFs and CDFs, Measures of Center and Spread WEEK #22: PDFs and CDFs, Measures of Center and Spread Goals: Explore the effect of independent events in probability calculations. Present a number of ways to represent probability distributions. Textbook

More information

FACT A computer CANNOT pick numbers completely at random!

FACT A computer CANNOT pick numbers completely at random! 1 THE ROULETTE BIAS SYSTEM Please note that all information is provided as is and no guarantees are given whatsoever as to the amount of profit you will make if you use this system. Neither the seller

More information

- User input includes typing on the keyboard, clicking of a mouse, tapping or swiping a touch screen device, etc.

- User input includes typing on the keyboard, clicking of a mouse, tapping or swiping a touch screen device, etc. Java User Input WHAT IS USER INPUT? - Collecting and acting on user input is important in many types of programs or applications. - User input includes typing on the keyboard, clicking of a mouse, tapping

More information

EVENT REGISTRATION. Introduction. Feature Availability. Requirements. Table of Contents. Version 7/22/2012

EVENT REGISTRATION. Introduction. Feature Availability. Requirements. Table of Contents. Version 7/22/2012 EVENT REGISTRATION Version 7/22/2012 SOAR Scouting Online Affordable & Reliable Introduction This Guide will walk you through the basics of using the SOAR Event Signup feature for event registration. The

More information

Using Your TI-89 in Elementary Statistics

Using Your TI-89 in Elementary Statistics Using Your TI-89 in Elementary Statistics Level of Handout: Target: Intermediate users of the TI-89. If you are a new user, pair up with someone in the class that is a bit familiar with the TI-89. You

More information

APP INVENTOR. Test Review

APP INVENTOR. Test Review APP INVENTOR Test Review Main Concepts App Inventor Lists Creating Random Numbers Variables Searching and Sorting Data Linear Search Binary Search Selection Sort Quick Sort Abstraction Modulus Division

More information

Your Personal Trading Journal

Your Personal Trading Journal Your Personal Trading Journal This guide provides instructions for the setup and helps you getting started with your Edgewonk trading journal. It is recommended that you read it thoroughly to fully leverage

More information

WHAT ELSE CAN YOUR HOME PHONE DO?

WHAT ELSE CAN YOUR HOME PHONE DO? visit a Telstra store 13 2200 telstra.com/home-phone WHAT ELSE CAN YOUR HOME PHONE DO? Everything you need to know about the features that make your home phone more helpful, flexible and useful C020 FEB16

More information

While Loops and Animations

While Loops and Animations C h a p t e r 6 While Loops and Animations In this chapter, you will learn how to use the following AutoLISP functions to World Class standards: 1. The Advantage of Using While Loops and Animation Code

More information

Gaming the Law of Large Numbers

Gaming the Law of Large Numbers Gaming the Law of Large Numbers Thomas Hoffman and Bart Snapp July 3, 2012 Many of us view mathematics as a rich and wonderfully elaborate game. In turn, games can be used to illustrate mathematical ideas.

More information

TEST 2 STUDY GUIDE. 1. Consider the data shown below.

TEST 2 STUDY GUIDE. 1. Consider the data shown below. 2006 by The Arizona Board of Regents for The University of Arizona All rights reserved Business Mathematics I TEST 2 STUDY GUIDE 1 Consider the data shown below (a) Fill in the Frequency and Relative Frequency

More information

TEACHER S GUIDE TO RUSH HOUR

TEACHER S GUIDE TO RUSH HOUR Using Puzzles to Teach Problem Solving TEACHER S GUIDE TO RUSH HOUR Includes Rush Hour 2, 3, 4, Rush Hour Jr., Railroad Rush Hour and Safari Rush Hour BENEFITS Rush Hour is a sliding piece puzzle that

More information

PT AVENUE GUIDE OVERVIEW

PT AVENUE GUIDE OVERVIEW PT AVENUE GUIDE OVERVIEW WSPTA is currently undertaking a database conversion from imis (the previous membership database) to a cloud based service called PT Avenue. The primary reason for this conversion

More information