Question

Code a (C++) program that simulates the throwing of a pair of dice (2 die).

Each die has 6 sides, thus a number between 1 and 6 would represent a die.

You want to show what happens when the dice are thrown 5 times.

Print each throw of the dice, i.e the number thrown, the sum of the two die. If seven is thrown print “SEVEN” If doubles are thrown print “DOUBLES”

EXPERT ANSWER

#include