CIS22A - Fall 2019 - Lab Exercise 5

due Wednesday, 10/23 8:30 am

Lab exercises are not accepted late.

Put your name, Lab Exercise 5, and compiler and the operating system used in a comment at the top of your program. Email only your source code. Your source code should be sent as an attachment (with the name ex5.cpp).  Use "Ex5" as the subject of your email submission

Program Requirements

Write a program that simulates the rolling of 2 dice, 10 times.  Your program should contain a loop and generate 10 random rolls.   The output should look like output below, except your random numbers may be different.  Make sure you match the output format.

Roll #1: 6 and 6 = 12
Roll #2: 5 and 5 = 10
Roll #3: 6 and 5 = 11
Roll #4: 1 and 1 = 2
Roll #5: 5 and 3 = 8
Roll #6: 6 and 6 = 12
Roll #7: 2 and 4 = 6
Roll #8: 2 and 6 = 8
Roll #9: 2 and 3 = 5
Roll #10: 4 and 1 = 5