Question: I need you to write a C++ program, such that it should mimic a hand cricket game. HAND CRICKET GAME : In hand cricket game
I need you to write a C++ program, such that it should mimic a hand cricket game.
HAND CRICKET GAME:
In hand cricket game there are two players, One player is called the Bowler and the other one is called the Batsman. The bowler and the batsman at the same time show their hands. Each representing a number from their fingers 1 to 6. The number 6 represented using the thumb pointing in the upper direction. If the bowlers finger number matches the finger number of the batsman then the batsman gets out. In the program let the bowler be computer and the batsman will be the user. You can also watch videos on YouTube regarding hand cricket to understand it better.
How you should make it?
You should make this program using the stack data structure. you should also use filing in C++ to store the scores of all the players who have played this game such that when a player starts the game it should display an option of the highest score that the program will fetch from the File. there are no graphics required, the program should only run on a terminal and it should also use the object oriented programming. You should also use the quick sort algorithm to sort the score in an ascending order before storing it inside the File.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
