Question
The game consists of completing fill-in-the-blank statements using cards (words or phrases). For this assignment, you will be provided one text file named statements.txt containing
The game consists of completing fill-in-the-blank statements using cards (words or phrases). For this assignment, you will be provided one text file named statements.txt containing fill-in-the-blank statements. All statements have a in them. There is one single statement per line. Create a text file named cards.txt where you should fill in with at least 15 cards of your own choosing.Write a C++ program to model a round of CARDS AGAINST HUMANITY with one player only (you). From cards.txt display the first 5 cards. From statements.txt display the first statement. Then, prompt for a number which should correspond to the order of the cards being displayed. Once correctly chosen, display the statement with the card where was. Keep a log of all completed sentences in an output file called results.txt.. The program should run until it runs out of statements OR the user does not want to play anymore. Every time a card is used, replace it with the next one from cards.txt. Let the 5th card be an option to prompt the user to input a NEW card.Choose the statements and cards to be displayed at random. Do not repeat them.
O Assignment 1 (2).pdf O https://urcourses.uregina.ca/plug x C Problem Solving, Abstraction, An x O Assignment O File C:/Users/12366/Downloads/Assignment%201%20(2).pdf BASE SAMPLE OUTPUT CARDS AGAINST HUMANITY >> YOUR DECK 1 - the Internet 2 - Naruto 3 - Heists 4 - "Let's get Schwifty in here" 5 - Real Science >> STATEMENT Csi15 is all aboutStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started