C++ Programming HW14 Speaker : Ching-Chen Chang Date: 2008/05/23.

Slides:



Advertisements
Similar presentations
1. Probability of an Outcome 2. Experimental Probability 3. Fundamental Properties of Probabilities 4. Addition Principle 5. Inclusion-Exclusion Principle.
Advertisements

1. Frequency Distribution & Relative Frequency Distribution 2. Histogram of Probability Distribution 3. Probability of an Event in Histogram 4. Random.
Describing Probability
Modeling and Simulation Monte carlo simulation 1 Arwa Ibrahim Ahmed Princess Nora University.
1 1 PRESENTED BY E. G. GASCON Introduction to Probability Section 7.3, 7.4, 7.5.
Section 5.1 Constructing Models of Random Behavior.
Chapter 4 Probability The description of sample data is only a preliminary part of a statistical analysis. A major goal is to make generalizations or inferences.
Discrete Random Variables and Probability Distributions
Microsoft Office © Copyright William Rowan Objective By the end of this you will have being given a brief introduction to: Microsoft Word Microsoft.
Associative Property Day 2 Click the link to play some fun math games!
Time-history seismic analysis with SAP2000 A step-by-step guide for BEng/MEng/MSc students familiarizing with this piece of software.
Unit 1 – Improving Productivity Connor Mckeever Instructions ~ 100 words per box.
Demo is in SP 2013, this was originally created in SP So it works in both versions.
Simple Mathematical Facts for Lecture 1. Conditional Probabilities Given an event has occurred, the conditional probability that another event occurs.
*** CONFIDENTIAL *** © Toshiba Corporation 2008 Confidential Scheduling Reports.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
SEMS allows you to create reports based on your files. This guide will give you the steps to create a report on the SEMS site using the Question Wizards.
Curriculum Portal Navigation and Uploading. Logging on to the Curriculum Portal Curriculum Portal Navigation and Posting 1. Open up the portal at
STEP 1: Accessing the Random Number function -Open your spreadsheet with the universe of facilities (If your list is in word, just cut and paste the list.
1 Week 3: Introduction to Microsoft Excel Spreadsheet READING: Glade Manual Ch. 1.
C++ Programming Homework 11 Speaker: Ching-Chen Chang Date: 2008/05/02.
Random Variable. Random variable A random variable χ is a function (rule) that assigns a number to each outcome of a chance experiment. A function χ acts.
Lesson 01: Introduction to Database Software. At the end of this lesson, students should be able to: State the usage of database software. Start a database.
The parts of a Computer Window
The two way frequency table The  2 statistic Techniques for examining dependence amongst two categorical variables.
Attachments are files that you can open with your for e.g. when you send an you could attach a link or a picture a word document or a spreadsheet.
Submitting and Assignment Click on the assignment link in your course The folder with the paper sticking out of the top is the symbol for an assignment.
© 2010 Pearson Prentice Hall. All rights reserved Chapter The Normal Probability Distribution © 2010 Pearson Prentice Hall. All rights reserved 3 7.
5.1 Randomness  The Language of Probability  Thinking about Randomness  The Uses of Probability 1.
CS1101X: Programming Methodology Recitation 6 Arrays I.
Probability Theory Modelling random phenomena. Permutations the number of ways that you can order n objects is: n! = n(n-1)(n-2)(n-3)…(3)(2)(1) Definition:
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 2 The.
METHODS OF ASSIGNING PROBABILITY. The Uniform Probability Model.
11.7 Continued Probability. Independent Events ► Two events are independent if the occurrence of one has no effect on the occurrence of the other ► Probability.
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
Chapter 4 Probability Concepts Events and Probability Three Helpful Concepts in Understanding Probability: Experiment Sample Space Event Experiment.
Homework 1 (due:April 10th) Deadline : April 10th 11:59pm Where to submit? eClass 과제방 ( How to submit? Create a folder. The name.
Chapter 3 Graphs and Charts. Agenda Chart Object linking and embedding.
Homework 1 (due:April 8th) Deadline : April 8th 11:59pm Where to submit? eClass “ 과제방 ” ( How to submit? Create a folder. The name.
Circular Buffer Audio Generation Using the Karplus-Strong String Synthesis Algorithm.
Spring 2016 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University.
OCC/RAPS Creating Folders Commonwealth of Pennsylvania Department of Revenue Office of Chief Counsel Revision Date: 05/05/2010.
Random Numbers Random numbers are numbers generated whose sequence have no pattern Most calculators are able to generate random integers via a command.
Chapter 8 Probability Section 1 Sample Spaces, Events, and Probability.
Basic Probabilities Starting Unit 6 Today!. Definitions  Experiment – any process that generates one or more observable outcomes  Sample Space – set.
Counting and Probability. Imagine tossing two coins and observing whether 0, 1, or 2 heads are obtained. Below are the results after 50 tosses Tossing.
Homework 1 (due:April 13th) Deadline : April 13th 11:59pm Where to submit? eClass 과제방 ( How to submit? Create a folder. The name.
Introduction to Programming
APPENDIX A: A REVIEW OF SOME STATISTICAL CONCEPTS
Monday 26th May Java Lecture 10 Overview
Umm Al-Qura University
Homework 3 (due:May 27th) Deadline : May 27th 11:59pm
Beginning of Class (On lined paper)
Meaning of Probability
Homework 3 (due:June 5th)
106 Data Structure Homework 1
CREATING AND USING FILE FOLDERS
Section 1 Sample Spaces, Events, and Probability
Programming in JavaScript
ETI 4448 Applied Project Management
CONDITIONAL PROBABILITY
Introduction to Programming
Provider Portal Document Library Instructions for Transmission Forms
Suppose I want to add all the even integers from 1 to 100 (inclusive)
Lecture 23 Section Mon, Oct 25, 2004
Uniform Distributions and Random Variables
Programming in JavaScript
Introduction to Programming
Homework 2 (due:May 5th) Deadline : May 5th 11:59pm
Programming in JavaScript
Presentation transcript:

C++ Programming HW14 Speaker : Ching-Chen Chang Date: 2008/05/23

Assignment 1 Write an SDI application which draws rectangles with different hatching styles as follows. You should use a for-loop to draw the rectangles.

Assignment 1 (Cont.)

In WinDGI.h /* Hatch Styles */ #define HS_HORIZONTAL 0 /* */ #define HS_VERTICAL 1 /* ||||| */ #define HS_FDIAGONAL 2 /* \\\\\ */ #define HS_BDIAGONAL 3 /* ///// */ #define HS_CROSS 4 /* */ #define HS_DIAGCROSS 5 /* xxxxx */

Assignment 2 Each dice has face values 1, 2, 3, 4, 5, 6 and the probability that face with value 1 will be on top is 1/6. Assume the probability of each value to be on top is the same. When you throw two dices, the summation of the top two faces will be within the range (inclusive) But their probability is not equally likely or 1/12. The probability that the sum will be two is 1/36, but the probability that some will be three is 2/36 and so on.

Assignment 2 (Cont.) Let N denote the number of throws. Write an SDI application to simulate the occurrence of each value within the range when N = 100. Store the occurrence of all values in an integer array, and draw a bar chart showing their heights which is proportional to the number of their occurrence. The usage of random number generator was introduced in HW 9 in last semester.HW 9 A sample output is shown as below. You may click the "New Document" button in the toolbar to generate new simulation.

Assignment 2 (Cont.)

Note Deadline:2008/5/23 10:00 AM Upload to the following link  Project Name  e.g. HW14_ Compress the folder to a ZIP or RAR file

Demo , , , , , , , , , , , Demonstrate their programs to Prof. Wu.