Create a C++ program that rolls two dice, ten million times, and count outcomes. Then show...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a C++ program that rolls two dice, ten million times, and count outcomes. Then show the number of outcomes, and a histogram (See the example below). Your grade will be deducted if your program does not meet these eriteria. Please Submit: 1. A flowchart of your program. 2. Your C++ program with a heading comment, also appropriate spacing and indentation in the program body. 3. Copy of a sereenshot after your program is executed. (4 points) (4 points) (2 points) ELEN 1301 Programming Assignment #9. : Your name. : Your atudent ID . Name Student ID Due date Purpose of the program : Creating a program that counta outcomes of two dice rolls, then ahow a histogram of the outcomes. Section I: Simulate ten million times rolls of two dice, while counting outcomes. (Hint: Use an array of aize 13.) Section 2 : Show the outcome, the numbers of outcomes, and the histogram (one designates 20000) . Your output munt align properly. // Write your own program. Output example: Mooft Vil Se Deg Ce 2: 278041 3: 556324 4: 833889 1 SI 1110480: 6: 1389418 7: 1666591 : B: 1387592 : 1112182 1e: 833513: 11 : 554458 12 277512 C:\UsersLUEE\source\repos \PAB1\DebugPAB1.exe (process 1e86e) exited with code e. Press any key to close this window. .. Create a C++ program that rolls two dice, ten million times, and count outcomes. Then show the number of outcomes, and a histogram (See the example below). Your grade will be deducted if your program does not meet these eriteria. Please Submit: 1. A flowchart of your program. 2. Your C++ program with a heading comment, also appropriate spacing and indentation in the program body. 3. Copy of a sereenshot after your program is executed. (4 points) (4 points) (2 points) ELEN 1301 Programming Assignment #9. : Your name. : Your atudent ID . Name Student ID Due date Purpose of the program : Creating a program that counta outcomes of two dice rolls, then ahow a histogram of the outcomes. Section I: Simulate ten million times rolls of two dice, while counting outcomes. (Hint: Use an array of aize 13.) Section 2 : Show the outcome, the numbers of outcomes, and the histogram (one designates 20000) . Your output munt align properly. // Write your own program. Output example: Mooft Vil Se Deg Ce 2: 278041 3: 556324 4: 833889 1 SI 1110480: 6: 1389418 7: 1666591 : B: 1387592 : 1112182 1e: 833513: 11 : 554458 12 277512 C:\UsersLUEE\source\repos \PAB1\DebugPAB1.exe (process 1e86e) exited with code e. Press any key to close this window. ..
Expert Answer:
Related Book For
Introduction to Probability
ISBN: 978-0716771098
1st edition
Authors: Mark Daniel Ward, Ellen Gundlach
Posted Date:
Students also viewed these accounting questions
-
The data in the following table show the number of shares selling (millions) and the expected price (average of projected low price and projected high price) for 10 selected initial public stock...
-
The following data show the number of defects in 100,000 lines of code in a particular type of software program made in the United States and Japan. Is there enough evidence to claim that there is a...
-
The following figures show the number of defective components supplied each day by a factory. Does this data follow a binomialdistribution? Number of defects 0 23 4 5 Number of days 8 22 33 29 15 3
-
Write a program Tree that takes a command-line argument n and produces the following recursive patterns for n equal to 1, 2, 3, 4, and 8. So b b b h l 4 3 2 1
-
In June 2008, the PCAOB issued its report on the 2007 inspection report on Pricewaterhouse-Coopers LLP (see PCAOB Release No. 104-2008-125). For one of PricewaterhouseCoopers' clients (referred to as...
-
At Rumseys Old Fashion Roast Beef, cola drinks are filled by an automatic machine whose operation is based on the weight of the drink. When the process is in control, the machine fills each cup so...
-
The following information is taken from the annual report of the Couche Corporation. Calculate the ratio of the allowance for uncollectible accounts divided by gross accounts receivable. Did this...
-
Health-Temp Company is a placement agency for temporary nurses. It serves hospitals and clinics throughout the metropolitan area. Health-Temp Company believes it will place temporary nurses for a...
-
List, define and give an example for each of the 10 critical operations management decisions
-
Dino Dog Collars uses activity-based costing. Dinos system has the following features: Each collar has four parts, direct materials cost is $ 9.00 per collar, and direct labor cost is $ 4.00 per...
-
There are 6 contractors and 5 different tasks. Each contractor charges differently for each task. Contractor 1 Contractor 2 Contractor 3 Contractor 4 Contractor 5 Contractor 6 Task 1 50 40 45 60 35...
-
You'd like to buy a 20-year, noncallable bond with an annual coupon rate of 8.4% paid semi-annually. The bond has a par value of $1,000. If you require an 8.25% nominal yield to maturity on this...
-
1. What does the term "period" mean in circular motion? 2. For a person swinging a ball on a string, is there any speed at which the string would be horizontal? If so, what is that speed? 3. How does...
-
Assume the partnership income-sharing agreement calls for income to be divided with a salary of $38,000 to Coburn and $33,000 to Webb, interest of 11% on beginning capital, and the remainder divided...
-
As shown in the diagram, three large, thin, uniformly charged plates are arranged so that there are two adjacent regions of uniform electric field. The origin is at the center of the central plate....
-
A Consider the de servomotor shown in Figure Qla. Assume that the input of the system is the applied armature voltage ea and the output is the load shaft position 0. Obtain the transfer function...
-
Advantages and disadvantages of debt financing? Explain each Advantages and disadvantages of equity financing? Explain each
-
6. (Potential Energy and Conservation of Energy) What should be the spring constant k of a spring designed to bring a 1200-kg car to rest from a speed of 95 km/h so that the occupants undergo a...
-
Suppose that the mass of X is PX (1) = 0.12 PX (3) = 0.37 PX (27) = 0.42 PX (31) = 0.09 a. Find E(X). b. Find E(X2). c. Find Vary(X). d. Find E(X2 - 4X).
-
Let X, Y, Z be independent and uniformly distributed on the interval [0, 10]. Find the probability that Y is the middle value, i.e., find P(X < Y < Z or Z < Y < X).
-
A cereal company puts a Star Wars toy watch in each of its boxes as a sales promotion. Twenty percent of the cereal boxes contain a watch with Obi Wan Kenobi on it. You are a huge Obi Wan fan, so you...
-
Ruby Company received a four month, five percent note receivable for \($40,000\) on October 1, 2019. How much interest income should be accrued on December 31, 2019?
-
Nafooz Company pays a two percent credit card fee on all credit sales, and receives a cash deposit immediately following each credit card transaction. If credit sales for the company total...
-
Kelly Company purchased manufacturing equipment for \($20,000\) cash. In addition to the \($20,000\) purchase price, Kelly paid sales tax of \($1,600\), freight costs of \($400\), installation costs...
Study smarter with the SolutionInn App