Question: Project 1 Madlib Objectives Student should be able to .Define variables of various datatypes and assign values Utilize user input in a program (Scanneridialog boxes)

Project 1 Madlib Objectives Student should be able to .Define variables of various datatypes and assign values Utilize user input in a program (Scanneridialog boxes) Use print statements in a program Introduction This lab vill focus on some Java basics like user input/output and variables by way of a MadLib. Your program needs to prompt a user for information, (a thing, a name, a verb, an adjective.). After each prompt store he users input in a variable. After all information is collected, print out the complete story (with the user input) Instructions 1. Create a new Netbeans Project named Project1_XXXXX where XXXXX is your student ID 2. Create a class named Madlib 3. In your main method, create variables to store the following infomation. Be sure to use the correct data type .ADJECTIVE1 .ADJECTIVE2 . THING1 DECIMAL NUMBER WHOLE NUMBER1 .BODY PART . NAME .ADJECTIVE3 THING2 . WHOLE NUMBER2 LETTER (this must be a character, not a String 4. Using print statements to prompt a user for input and store the response in the appropriate variable. Use a scanner to gather the input 1. If you scan a number and then want to scan a String, you must first clear the newline left behind by the number using a nextLine before scanning the string 5. When all data is collected print the following story, replacing the uppercase words with user input Film Noir Madlib It was a ADJECTIVE1 and ADJECTIVE2 night. I needed a drink and I needed a client. What I had was a coat, a hat, a THING1, and SDECIMALNUMBER in my pocket. It was WHOLENUMBER minutes to midnight when he ambled into my office. I didn't like his BODY PART. When he said he was called NAME, I didn't like his name either. This guy was ADJEC TIVE3, as ADJECTIVE3 as a THING2. He needed me to deliver a package to WHOLENUMBER LETTER Elm street. I told him there was a post office around the corner but he needed someone with special talents, talents that come at a price 6. Include comments and documentation as detailed in the Style Guide and Documentation Requirements
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
