Question: Scenario: Write a class named GameShow that contains one data attribute name and its appropriate methods / functions . Next, create a derived class named

Scenario: Write a class named GameShow that contains one data attribute name and its appropriate methods/functions. Next, create a derived class named FamilyFeud that contains one data attribute points and its appropriate methods/functions.
Functionality: In an effort to imitate the functionality of the actual gameshow Family Feud, you will need to create a test class that consists of four rounds. The user will receive a question at random (using the rand()) for each of the four rounds (there are 10 questions that will need to be selected at random, these questions should be clustered into their assigned round see the Corresponding Question doc for further details). Based on the question the user is given, your program should read in the corresponding text file that contains a list of answers and their respective points (you can retrieve and view all 10 text files in Canvas). Refer to Corresponding Questions.txt for clarity regarding what question should be assigned to a designated text file. Also, make sure you pay close attention to the assigned rounds for each text file, respectively. A round is completed if: 1) the user successfully guesses all of the answers listed in the text file or 2) the user receives 3 strikes due to 3 instances of providing an incorrect answer (as seen on the actual gameshow). After all four rounds are concluded, your program should tally up the total points acquired by the user (also note for Rounds 3 and 4 the points are doubled and tripled, respectively). Finally, your program should determine whether or not the users final score is >=500, if so then the user will proceed to the Fast Money round, otherwise the game ends. For this program, do NOT worry about developing any code to reflect the Fast Money round.
Corresponding Questions:
ROUND 1:
bodyache.txt: Name a part of your body that you might say has an "ache".
fruit.txt: Name a fruit you might eat in the morning.
house.txt: Other than wood, name a material that might be used when building a house.
ROUND 2:
candy_bar.txt: Name a common candy bar ingredient.
state.txt: Name a state with a lot of mountains.
weekly.txt: Tell me something many people do or go to just once a week.
ROUND 3- DOUBLE THE VALUE:
breakdown.txt: Name something that breaks down.
two_am.txt: Name a reason you would wake up at 2AM in the morning.
ROUND 4- TRIPLE THE VALUE:
bear.txt: Name a type of bear.
sports.txt: Name a sport some mothers hope their child never plays.
Bear :....
GRIZZLY 27
POLAR 22
PANDA 21
TEDDY 10
BROWN 4
BLACK 3
Bodyache:....
HEAD 34
STOMACH 33
BACK 11
TOOTH 7
MUSCLE 6
KNEE 3
EAR 2
Breakdown :
CAR 44
BODY 22
COMPUTER 17
COMMUNICATION 7
PEOPLE 2
TV 2
Candy bar :...
CHOCOLATE 36
PEANUTS 22
CARAMEL 15
ALMONDS 12
NOUGAT 10
COCONUT 6
Fruit :...
BANANA 25
GRAPEFRUIT 22
STRAWBERRY 19
APPLE 15
ORANGE 12
MELON 3
PEACH 2
House:.....
BRICK 33
GLASS 20
NAILS 20
CONCRETE 17
STEEL 8
PLASTIC 4
INSULATION 3
VINYL 2
sports:.....
HOCKEY 36
FOOTBALL 34
BASEBALL 13
SOCCER 7
RUGBY 5
BASKETBALL 3
State:.....
COLORADO 33
ALASKA 20
MONTANA 9
WYOMING 9
IDAHO 8
CALIFORNIA 7
UTAH 5
two_am:....
BATHROOM 24
BABY 19
CHILD 19
NIGHTMARE 16
NOISE 13
Weekly:....
CHURCH 35
GROCERIES 24
SHOPPING 24
LAUNDRY 12
HOUSECLEANING 6
SLEEP 5
RESTAURANT 4
C++ is the desired programming language( i use Terminal on mac)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!