Data Comparison

Programming Exercise 22 prompted the user to input the number of times the dice were to be rolled and the desired sum, and the program output the number of times the desired sum occurred. Modify Programming Exercise 22 as follows: Suppose you roll 4 dice 1000 times. Store the sum of the numbers rolled in each roll into an array, and then use this array to print a bar graph (similar to the bar graph in the Programming Example Data Comparison, Chapter 6). Test run your program using 4, 5, and 6 dice and the number of rolls 2500, 3000, and 5000. What type of curve does the shape of your bar graph resemble?

WhatsApp
Hello! Need help with your assignments?

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X