Question: Please do the following. Use the JOptionPane class to acquire a minimum of six words from the user to include in the Mad Lib. Ask

 Please do the following. Use the JOptionPane class to acquire a

Please do the following.

Use the JOptionPane class to acquire a minimum of six words from the user to include in the Mad Lib. Ask the user if they would like to play the game again with a Confirm Dialog box using the JOptionPane.YES_NO_OPTION. If yes, ask the user for new words and redisplay the new Mad Lib using them. Save the file as MadLib.java.

: Mad Libs is a children's game in which they provide a few words that are then incorporated into a silly story. The game helps children understand different parts of speech because they are asked to provide specific types of words. For example, you might ask a child for a noun, another noun, an adjective, and a past-tense verb. The child might reply with such answers as table, book, silly, and studied. The newly created Mad Lib might be: Mary had a little table Its book was silly as snow And everywhere that Mary studied The table was sure to go

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 Databases Questions!