Create a trivia game for two players

Assignment Help Basic Computer Science
Reference no: EM131267453

Create a trivia game for two players. The program will work like this:

Starting with player 1, each player gets a turn at answering five trivia questions. (There are a total of 10 questions) WHen a question is displayed , four possible answers are also dislayed. Only one of the answers is correct, and if the player selects the correct answer he or she earns a point.

After answers have been selected for all of the questions, the program displays the number of points earned by each player and declares theplayer with the highest number of points the winner.

In this program you will design the Question class to hold the data for the trivia question. The Question class should have member variables for the following data:

A trivia question

Possible answer#1

Possible answer#2

Possible answer#3

Possible answer#4

The number of the correct answer (either 1, 2, 3, or 4)

The Question class should have appropriate constructor(s), accessor, and mutator functions. The program should create an array of 10 Question objects, one for each trivia question. Make up your own trivia questions on the subject or subjects of your choice for the objects.

Reference no: EM131267453

Questions Cloud

What cultural challenges are posed by disney : What cultural challenges are posed by Disney's expansion into Asia? How are these different from those in Europe? How do cultural variables influence the location choice of theme parks around the world
Determine the security and networking issues associated : Take a position on the idea of IPv6 being hailed as the next generation of the Internet. Support your response with evidence or examples. Critique the adoption and deployment of IPv6, and determine the security and networking issues associated with..
What role do parents and teachers have in placement : What are the indicators of exceptionality a classroom teacher should look for when a student also has a language barrier - How can informal as well as formal assessment results factor into placement?
Record the price and the volume of each brand : Before going any further, rank the brands according to which you think is the highest ? Record the price and the volume of each brand.
Create a trivia game for two players : Starting with player 1, each player gets a turn at answering five trivia questions. (There are a total of 10 questions) WHen a question is displayed , four possible answers are also dislayed. Only one of the answers is correct, and if the player s..
Design and develop a database using professional principles : Design and develop a database using professional principles and standards. Provide a logical and physical design of the database. Use relational database software application to develop database.
Find the error probability for an fh spread spectrum signal : Repeat Problem 12.19 when fast frequency hopping is performed with L hops per coded bit and the decoder is a hard-decision Viterbi decoder. The L chips per coded bit are square-law-detected and combined prior to the hard decision.
Compare and contrast distance-vector and link state routing : Routing and Switching Selection Criteria. Please respond to the following: Compare and contrast distance-vector and link state routing, and analyze the limitations that would prevent the usage of each.
How the definition of strategy fits : Define strategy and examine how the definition of strategy fits your chosen company and its situation. Support your response - Summarize the main strategies that your chosen company's management took leading up to this company's recent development.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd