Write a program that computes and displays the result of


Write a program that computes and displays the result of rolling several 6-sided dice and adding a number. Prompt the user for the number of dice and the number to add. Display values read from the user as shown below: "xD6+y is z.", where x is the number of dice, y is the number being added to the result, and z is the sum. The "D6" will show in all outputs since it indicates the type of die being rolled (a 6 sided one). (Note that since the program uses random numbers, your output will look different from ours.)

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write a program that computes and displays the result of
Reference No:- TGS01574478

Now Priced at $10 (50% Discount)

Recommended (96%)

Rated (4.8/5)