Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ code that simulates trivia game results. It has two classes one for Game and one for Counting. The Game classes has three integers between

C++ code that simulates trivia game results. It has two classes one for Game and one for Counting.

The Game classes has three integers between 0-1 for no or yes answer for the trivia game questions. Each int can contain a 0 or 1 respectively. It uses a function for setting and getting the question results. Then the second class Counting maintains the number of players. It has six ints for the total # of yes's or no's for each question. So if I ask "Is the ocean bigger than a sea" the player would answer either 0 for no or 1 for yes. The class has a function to add one of the integers to each game results. A constructor to initialize the six integers. Class Counting would also call class game for each game result. Class counting then displays the results to the screen. Then in the main program, declaring class Counting it asks the users to input how many people are playing and then their answers to the questions in Games class.

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

Current Trends In Database Technology Edbt 2004 Workshops Edbt 2004 Workshops Phd Datax Pim P2panddb And Clustweb Heraklion Crete Greece March 2004 Revised Selected Papers Lncs 3268

Authors: Wolfgang Lindner ,Marco Mesiti ,Can Turker ,Yannis Tzitzikas ,Athena Vakali

2005th Edition

3540233059, 978-3540233053

More Books

Students also viewed these Databases questions

Question

4. What is the purpose of having a party with work colleagues?

Answered: 1 week ago

Question

2. Describe how technology can impact intercultural interaction.

Answered: 1 week ago