Write a function named dietoss that simulates the tossing


Program: Write a function named dieToss that simulates the tossing of two dice. When you call the function, it should generate two random numbers ranged in 1 to 6 and return the sum of the die's numbers.

In the mail program, ask user how many times the dice should be tossed, and then call the function that number of times. Sample output:

How many times the coin should be tossed: 12

Round 1:  5

Round 2:  3

......

Round 12:  8

Can you prepare the program to dice toss and simulate the tossing of two dice.

 

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a function named dietoss that simulates the tossing
Reference No:- TGS0954041

Expected delivery within 24 Hours