Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objectives: Provide a game solution using C++ language. It is important that we can use a set of C++ features to solve problem. Develop solutions

image text in transcribed

image text in transcribed

Objectives: Provide a game solution using C++ language. It is important that we can use a set of C++ features to solve problem. Develop solutions that use class features for C++. Create".h" files and "*.cpp" files for classes. 1. Part 1 - Required Assignment: create a reference and a pointer a. Create a better dice game from the game of Lab Assignment 3. In this version each player (user or computer) has 2 dices. And you are required to use 1 reference variable and 1 pointer variable. You need to indicate where you use these in your code. b. The winning rule is as follows:if 2 dices of a player have the same value as a pair of 6 and the other player does not have a pair of value then a pair of value will win. So, 5&5 will beat 6& 4 because 5&5 is a pair. If both players have pairs, (user and computer), the higher pair will win. For example, 6&6 will beat any pair. If both players do not have pair, then higher total points will win. C. The output of the program may be like the following Welcome to the dice ware game. You have 100 in your game purse. Enter a bet amount to play (O means exit the program): 10 You have 5 & 5 computer has is 3 & 4 You won 10 dollars! Your game purse now has 110 dollars Enter a bet amount to play (O means exit the program): You have 6 & 4 computer has is 1 & 1 You lost 5 Your game purse now has 105 dollars Enter a bet amount to play (O means exit the program): You have 1 & 2 computer has is 3 & 4 You lost 10 Your game purse now has 95 dollars Enter a bet amount Enter a bet amount to play (O means exit the program): You choose to exit the program. Thank you and goodbye

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions