Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

#include  using 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

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

Step: 3

blur-text-image

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

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions

Question

What is Payback Analysis? Explain and give sample problem

Answered: 1 week ago