TriviaProject

Download Category:

TriviaProject.zip - (692.64 KB)
[
TriviaProject/.objs/
TriviaProject/.objs/Question.o
TriviaProject/.objs/QuestionMain.o
TriviaProject/console.cbp
TriviaProject/console.exe
TriviaProject/console.layout
TriviaProject/Debug/
TriviaProject/Debug/cl.command.1.tlog
TriviaProject/Debug/CL.read.1.tlog
TriviaProject/Debug/CL.write.1.tlog
TriviaProject/Debug/link.3900.read.1.tlog
TriviaProject/Debug/link.3900.write.1.tlog
TriviaProject/Debug/link.3900-cvtres.read.1.tlog
TriviaProject/Debug/link.3900-cvtres.write.1.tlog
TriviaProject/Debug/link.command.1.tlog
TriviaProject/Debug/link.read.1.tlog
TriviaProject/Debug/link.write.1.tlog
TriviaProject/Debug/link-cvtres.read.1.tlog
TriviaProject/Debug/link-cvtres.write.1.tlog
TriviaProject/Debug/mt.command.1.tlog
TriviaProject/Debug/mt.read.1.tlog
TriviaProject/Debug/mt.write.1.tlog
TriviaProject/Debug/Question.obj
TriviaProject/Debug/QuestionMain.obj
TriviaProject/Debug/rc.command.1.tlog
TriviaProject/Debug/rc.read.1.tlog
TriviaProject/Debug/rc.write.1.tlog
TriviaProject/Debug/TriviaProject.exe
TriviaProject/Debug/TriviaProject.exe.embed.manifest
TriviaProject/Debug/TriviaProject.exe.embed.manifest.res
TriviaProject/Debug/TriviaProject.exe.intermediate.manifest
TriviaProject/Debug/TriviaProject.ilk
TriviaProject/Debug/TriviaProject.lastbuildstate
TriviaProject/Debug/TriviaProject.log
TriviaProject/Debug/TriviaProject.pdb
TriviaProject/Debug/TriviaProject.write.1.tlog
TriviaProject/Debug/TriviaProject_manifest.rc
TriviaProject/Debug/vc100.idb
TriviaProject/Debug/vc100.pdb
TriviaProject/inputdata.txt
TriviaProject/Question.cpp
TriviaProject/Question.h
TriviaProject/Question.txt
TriviaProject/QuestionMain.cpp
TriviaProject/Screenshot_1.png
TriviaProject/TriviaProject.sln
TriviaProject/TriviaProject.suo
TriviaProject/TriviaProject.vcxproj
TriviaProject/TriviaProject.vcxproj.filters
TriviaProject/TriviaProject.vcxproj.user
]

Trivia Game
In this programming challenge you will create a simple trivia game for two players. The program will work like this:
Starting with player 1, each player gets a turn answering five trivia questions.(There should be a total of 10 trivia questions) When a question is displayed, four possible answers are also displayed. 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 the player with the highest number of points as the winner.
In this trivia game you will design a Question class to hold the data for a 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 (1,2,3, or4)
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.
Create a data file to load the datafrom for the trivia answers. I need the cpp file and data file for this one

Write a Review

Get a fresh solution of this question. Ask it now to our experts.
doubt

Ask Your Question

We have verified professionals who are ready to answer your question.

time

Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.

download

Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.