Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Requirements: Your program should, at minimum, do the following: Output a title for the game. Ask if the user would like to play a game.

Requirements:

Your program should, at minimum, do the following:

  • Output a title for the game.
  • Ask if the user would like to play a game.
  • Ask for the players name. Greet the player.
  • Ask the player to choose from TWO story ideas you have created. Use an if statement here to separate the code for each choice.
  • Ask the player to input between 6 to 10 names/words/numbers to fill in spots for your story. Please do not go over 10 inputs because it can get very long to run/test the programs!
  • Create a short story to go along with the gameplay, substituting their inputted words into the story. Each story should be different and ask for different inputs. Do not reuse the same inputs for each story please. Your stories should be at a minimum of 4 sentences.
  • Ask if the user would like to play again (use a loop for this). Validate the user input as being y/n. If they input something that is NOT one of your options, ask the player to try again.
  • Validate the user input for the story selection. If they input something that is NOT one of your options, ask the player to try again.
  • Create counter to record how many stories they have created. Display the counter before asking if they would like to play again.
  • Spend time formatting your output so that it looks nice.

Example Output: (sorry this is so not a funny story!) Welcome to my Mountain Adventure Mad Libs game. Would you like to play (y/n)? y First, what is your name? Dena Hello, Dena! Which story line would you like to play with? a. Going for a Hike b. Building a Campfire What is your choice (a/b)? b Now, let me get some information from you to make this a fun story. 1) What is a food you like? skittles 2) Give me a number from 5 to 10? 8 3) What is the name of a family member or close friend? Logan 4) Give me an adjective: pretty 5) Give me a verb ending in -ing: swimming 6) Give me a type of animal: kitten Dena, here is your story: You and Logan decide to build a pretty campfire. You wander around the forest looking for some dry wood to use to make a campfire to cook your skittles. Eventually, you collect 8 twigs. You hear a noise. You hide behind a tree. All of a sudden you see a large hairy kitten walk by. Logan runs up to you and asks what is taking so long. You tell them that you would rather be swimming. You have created 1 story. Would you like to play again (y/n)? n

Step by Step Solution

3.35 Rating (155 Votes )

There are 3 Steps involved in it

Step: 1

You can actually give it a shot by this program that meets the requirements you provided java import javautilScanner public class MadLibsGame public s... 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

Data Modeling and Database Design

Authors: Narayan S. Umanath, Richard W. Scammel

2nd edition

1285085256, 978-1285085258

More Books

Students also viewed these Algorithms questions

Question

How can positive self-talk help you change a bad habit?

Answered: 1 week ago