Prog 1: Dice

Changes made 8/30 shown in blue.

Write a C++ program to implement a dice game, where each player chooses one of Red, Green and Blue dice and rolls them to see who wins.  

What You Need to Know

Notes

Steps

Work on your program one step at a time as described below.  For this program you may assume the user provides perfect input.

Grading Rubric

Inside your program itself you must include the following grading rubric, just below your header documentation, as shown below.  We will use this when grading your program as a place to annotate and list any deductions taken off within each category for program style.  Note that this is in your code but is within a comment block so should not appear on the screen when you run your program.  

/* prog1.cpp  *    Play the dice game, where each user chooses the Red, Green or Blue die.  *   * Class: CS 141  * Author: Dale Reed  * Lab: Tues 5am  * System:  C++ online in codio.com  *  *   45 Programming Style Rubric points (Given only if program runs substantially correctly)  *        10 Variable names are meaningful and use camel-case (e.g. totalCount)  *        10 Comments: Has header.  Comments on each significant block of code  *        15 Appropriate data and control structures  *        10 Code Layout: Appropriate indentation and blank lines  */

The 45 points for program style will be allocated as described below. (While your personal style may disagree with the standards shown, it is important that be able to follow a coding standard that is given to you.)

Turning in your Program

Use the project called "Program 1 Dice to Submit", copying into it any work done in the old project.  Within this project as you write your code for each of the four steps, you can test it and see the results of running each stage of your program.  After the last step, you must press the button "Mark as Completed", after which you will no longer be able to edit your project, but will retain read access to it.  Once you have marked it as complete, then we can grade it.