Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribedThe 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 about . >> Chose a card: >> ERROR! Please choose a number from 1 to 5! >> Chose a card: >> THE SENTENCE cs115 is all about Real Science. I statements.txt PDF Assignment 1 (2).pdf Show all 1:18 PM O Type here to search A 4x O ENG 2020-01-25 statements - Notepad File Edit Format View Help Cs115 is all about . When I grow up I will work on . Blood, sweat, and . C++ is all about . My instructor could not respond my email because . The marker rejected the project because of . The field of AI is stuck until we understand . is the new electricity. "The development of could spell the end of the human race." --Stephen Hawking Students these days have no respect for . 100% Unix (LF) Ln 1, Col 1 1:19 PM O Type here to search A dx D ENG 2020-01-25

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions