Question: Create a C++ program that rolls two dice, ten million times, and count outcomes. Then show the number of outcomes, and a histogram (See
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 epos \PAB1\DebugPAB1.exe (process 1e86e) exited with code e. Press any key to close this window. ..
Step by Step Solution
3.36 Rating (168 Votes )
There are 3 Steps involved in it
The program code is Outp... View full answer
Get step-by-step solutions from verified subject matter experts
