Problem

Write a program that plays a game where a player is asked to fill in various words of a mo...

Write a program that plays a game where a player is asked to fill in various words of a mostly complete story without being able to see the rest. Then the user is shown his/her story, which is often funny. The input for your program is a set of story files, each of which contains “placeholder” tokens surrounded by, such as:

One of the most  characters in fiction is named"Tarzan of the  ." Tarzan was raised by a/an and lives in the  jungle in theheart of darkest .

The user is prompted to fill in each of the placeholders in the story, and then a resulting output file is created with the placeholders filled in. For example:

Input file name? story1.txtPlease enter an adjective: sillyPlease enter a plural noun: socksPlease enter a noun: treePlease enter an adjective: tinyPlease enter a place: Canada

The resulting output story would be:

One of the most silly characters in fiction is named"Tarzan of the socks ." Tarzan was raised by a/antree and lives in the tiny jungle in theheart of darkest Canada .

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 6
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT