{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ITP109_Lab2 - Another example is a color for an adjective...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ITP 109 Lab 2 Goal In this lab, you will write your own Mad Libs story. You will get comfortable using basic variables and get an understanding of basic input and output systems. Assignment You are to create a Mad Libs style program. For those who have never played with Mad Libs, the idea is to write down different words that fit parts of speech, and then incorporate them into a prewritten story. For an example, please go to http://www.eduplace.com/tales/ . Your program must first read in at least 4 words (String) and 1 number (int). The words need to be different parts of speech such as a noun, verb, adjective, adverb, or preposition. (You can also ask for a special type of the part of speech. An example is asking for a place or name for a noun.
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Another example is a color for an adjective.) • Your program must then be able to print out the story with the user’s words injected into the story. You need to signify to the user what his/her words are in the story such as putting single quotes around the user's words (escape characters). • You create your program using Eclipse. Your project should be named Lab2 , and your Java class should be named MadLibs . • Use the Scanner class to get input from the user, and use System.out to print to the console window. Grading - 30 points total • 10 points: Reading in each individual word • 10 points: Incorporating the words into the story • 10 points: Comments, style, and proper submission...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern