Question: PLEASE CODE IN C + + Objectives: Review and apply software engineering with class and objects. The intention of this program is to review the
PLEASE CODE IN C
Objectives: Review and apply software engineering with class and objects.
The intention of this program is to review the software engineering concept in your previous class. Regardless of your source code is long or short, implementing class and separating source code are required
Write a program to play the game of between a user and computer. The players try to get as close to as possible without going over. The winner is the player with the higher total but not over
Example:
If a user had points, a computer had points user is a winner
If a user had points, a computer had points computer is a winner
The program must have three files.
Specification file for the Die class file name: Die.h
Implementation file for the Die class file name: Die.cpp
Main or driver file to run the program file name: DieMain.cpp
For Java language, there is no header file but the source code must be separated in multiple files, example: Main.java, die.java, roll.java
Sample output:
Let's play a game of
The winner is the player with the higher total but not over
Would you like to roll the dice?
Enter for yes or for no:
You have points.
Computer has points.
Would you like to roll the dice?
Enter Y for yes or N for no: y
You have points.
Computer has points.
Would you like to roll the dice?
Enter for yes or N for no: y
You have points.
Computer has points.
Would you like to roll the dice?
Enter Y for yes or N for no: n
The computer had points.
You had points.
Congratulations! You won!
Game Over
PLEASE CODE IN C
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
