Using Slides Lect15pptx Create Class Called Die Header File H Similar Exactly Like One Sli Q37085547

Using the slides from lect15.pptx create a class called Die witha header file (.h)
similar to, if not exactly like the one on slide 15. Also, createthe associated .cpp file
called Die.cpp. After testing that you Die class works thenimplement the
RandomCoin class with a header file (.h) similar to, if not exactlylike on slide
22. Also, implement the RandomCoin.cpp. Be sure to use inlinefunctions in the
.h file for any getters or setters. Use default arguments wherethey make sense.
Lastly, create a main.cpp that shows that your classes workproperly. Your main
block might look like the code below:
//
// Name
//
#include “RandomCoin.h”
#include
#include
using namespace std;
int main()
{
// initialize random seed:
srand

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.