Question
C++ program Please ensure that the following criteria are satisfied: There are three functions: Main function A Cyclical Menu function, where the user selects options
C++ program
Please ensure that the following criteria are satisfied:
-
There are three functions:
-
Main function
-
A Cyclical Menu function, where the user selects options that include:
-
Instructions
-
Playing the game
-
Quitting
-
-
Game function: a playable game of 20Qs is made, where the user can choose from at least 7 possible candidates of a theme.
-
The player should be presented with the theme of the game and the available options to choose from (Ex: Candy Bars; Snickers, Butter Fingers, etc)
-
The player is then asked a series of Yes/No questions to help the program classify which option the player secretly picked.
-
After traversing the decision tree, the player is told what option they selected.
-
-
Please make the code as simple as possible, preferably under 100 lines.
Please use the following template to complete the code:
#includeusing namespace std; /* Summary: Reasoning: Input: Output: */ void menu() { } /* Summary: Reasoning: Input: Output: */ void game(){ } /* Summary: Reasoning: Input: Output: */ int main() {
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started