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

  Design a class named clock that contains private data fields

Design a class named Clock that contains private data fields for startTime and endTime, no argument constructor that initializes the startTime to the current time, a method named start() that resets the startTime to the given time, a stop() me..

  What are mental models

What are mental models? are they independent thinking, systems thinking, open mindedness, and personal mastery. the question that i am trying to answer is "describe the two different mental models represented in this story."

  Engineering and engineering technology

Explain the differences between engineering and engineering technology? What aspects of engineering technology inspired you to choose this field? (write at least 2 paragraphs)

  Analyse a packet capture dump file

This assignment question requires that you analyse a packet capture dump file and provide comments explaining each packet. See assignment 1 page of the course website. This pcap file contains a SMTP transaction between a client and server. Your ..

  Describe a case that would benefit from saas

Questions: 1. In cloud computing describe a case that would benefit from SaaS. (I am looking for as specific an answer as possible) 2. Based on what you read describe a case that would benefit from PaaS. (I am looking for as specific an answer as pos..

  What can data mining do to help tej electronics

What can data mining do to help Tej Electronics? From the example in the case, do you think Tej be more likely to use rool up or drill down navigation? Why?

  A consistent pattern or does it have peaks and valleys

How many requests from users does ESPN receive each second? Do you think this is a consistent pattern or does it have peaks and valleys? When does it peak?

  Write command to determine users on active directory from xp

Write down the command to determine all users on Active Directory from XP. Write down the query to look up a user on Active Directoy and see the user's property.

  Compress into jpeg format and decompress

How far off are the resultant bytes at the default quality setting? How would you describe the inaccuracies introduced, visually? What quality setting is sufficient to recover the file exactly?

  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

  What is the total efficiency of the protocol

Consider two nodes A and B uses the slotted ALOHA protocol to contend for a channel. Suppose node pA and pB are A and B's retransmission probabilities. Provide a formula for node A's average throughput. What is the total efficiency of the protocol..

  Create an account class

Create an account class with following given UML Diagram:  UML DIAGRAM Account Class:

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