Question: Using c++ . An int data field named faceValue that stores the face value of the die. A default constructor (set the default value to
. An int data field named faceValue that stores the face value of the die. A default constructor (set the default value to a random number between 1-6) A constructor with parameter that creates a die object with the specified value in the parameter The getter and setter methods for all data field . A method roll) that "rolls" the die. Hint. This means the face value changes to another random number 1-6 An output method that displays This die has face value: "+X (where x is the face value) To generate random numbers include the following libraries at top of file "include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
