In Java
Write a program that does the following:
Ask the user to enter how many dice will constitute one roll.(This is based on the idea that different games require differentnumbers of rolls for a “turn”. For example, in Yahtzee, you roll 5dice. In craps, you roll 2 dice. Etc.)
Ask the user to enter how many rolls they would like toperform
Create and use an array to keep track of how many times eachpossible dice sum appears. (Essentially, you need a bunch ofcounters, but how many will depend on how many dice are rolled per”turn”. For example, 2 dice can come up with
PayPal Gateway not configured
PayPal Gateway not configured