Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4. Question 4 saved 20 points possible Reset to Starter Code You will write a program named MadLibs.java. (This question will be graded manually. So
4. Question 4 saved 20 points possible Reset to Starter Code You will write a program named MadLibs.java. (This question will be graded manually. So please make sure to check your IDEA to confirm the output) --> (20 Points) In your program, you should ask questions as below. Then, you should make the user input values based on each question. Then, once all answers are entered, each value should be inserted in the sentence. Then, you will run your program. Then, the output will be a complete mad libs paragraph. I will provide the original Madlib game so you can work on completing this game. *** check data type *** Sample run Enter an adjective: beautiful Enter another adjective: powerful Type of a bird in one word: chicken Type a name of a room in a house: kitchen Enter a past tense verb: went Enter a present tense verb: live Enter a relative's name: aunt Enter a noun: watch Enter name of a liquid: juice Enter a verb ending in -ing: living Enter one of the following word: hand, nose, foot, head, ear, eyes, or mouth: head Enter a plural noun: dolls Enter a verb ending in -ing: printed Enter another noun: mouse Enter an integer number of this year: 2021 What is your birth month? (enter an integer): 1 What is your favorite decimal number? (e.g. 3.14): 4.5 It was a beautiful, cold November day. I woke up to the powerful smell of chicken roasting in the kitchen downstairs. I went down the stairs to see if I could help live the dinner. My mom said. "See if aunt needs a fresh watch". So carried a try of glasses full of juice into Q1 4. Question 4 20 points possible Reset to Starter Code Saved Q2 Q3 carried a try of glasses full of juice into the printed room. When I got there, couldn't believe my head! There were dolls printed on the mouse! Year: 2021, Month: 1, Decimal Value: 4.5 Q4 1 It was a cold November day. I adjective woke up to the smell of adjective type of bird roasting in the downstairs. I room in a house down the stairs to see if I could verb (past tense) help the dinner. My mom said, verb "See if needs a fresh ." So I relative's name carried a tray of glasses full of into a liquid the room. When I got there, I verb ending in-ing couldn't believe my ! There were part of the body (plural) noun on the plural noun verb ending in-ing noun > Q1 4. Question 4 20 points possible Reset to Starter Code Saved Q2 . Exit Full Screen Q3 Q4 MadLibs.java # New 1 2- public class Madlibs { 3 public static void main(String[] args) { 4 java.util.Scanner input = new java.util.Scanner(System.in); 5 System.out.print("Enter an adjective: "); 6 String adj input.next(); 7 //COMPLETE REST OF QUESTIONS AND INPUT PARTS 8 9 10 System.out.println("It was a + adj + ", cold November day. I "); 11 //COMPLETE REST OF STORY LINE, 12 13 } 14 } 15 Run Tests NOT RUN NOT RUN > 4. Question 4 saved 20 points possible Reset to Starter Code You will write a program named MadLibs.java. (This question will be graded manually. So please make sure to check your IDEA to confirm the output) --> (20 Points) In your program, you should ask questions as below. Then, you should make the user input values based on each question. Then, once all answers are entered, each value should be inserted in the sentence. Then, you will run your program. Then, the output will be a complete mad libs paragraph. I will provide the original Madlib game so you can work on completing this game. *** check data type *** Sample run Enter an adjective: beautiful Enter another adjective: powerful Type of a bird in one word: chicken Type a name of a room in a house: kitchen Enter a past tense verb: went Enter a present tense verb: live Enter a relative's name: aunt Enter a noun: watch Enter name of a liquid: juice Enter a verb ending in -ing: living Enter one of the following word: hand, nose, foot, head, ear, eyes, or mouth: head Enter a plural noun: dolls Enter a verb ending in -ing: printed Enter another noun: mouse Enter an integer number of this year: 2021 What is your birth month? (enter an integer): 1 What is your favorite decimal number? (e.g. 3.14): 4.5 It was a beautiful, cold November day. I woke up to the powerful smell of chicken roasting in the kitchen downstairs. I went down the stairs to see if I could help live the dinner. My mom said. "See if aunt needs a fresh watch". So carried a try of glasses full of juice into Q1 4. Question 4 20 points possible Reset to Starter Code Saved Q2 Q3 carried a try of glasses full of juice into the printed room. When I got there, couldn't believe my head! There were dolls printed on the mouse! Year: 2021, Month: 1, Decimal Value: 4.5 Q4 1 It was a cold November day. I adjective woke up to the smell of adjective type of bird roasting in the downstairs. I room in a house down the stairs to see if I could verb (past tense) help the dinner. My mom said, verb "See if needs a fresh ." So I relative's name carried a tray of glasses full of into a liquid the room. When I got there, I verb ending in-ing couldn't believe my ! There were part of the body (plural) noun on the plural noun verb ending in-ing noun > Q1 4. Question 4 20 points possible Reset to Starter Code Saved Q2 . Exit Full Screen Q3 Q4 MadLibs.java # New 1 2- public class Madlibs { 3 public static void main(String[] args) { 4 java.util.Scanner input = new java.util.Scanner(System.in); 5 System.out.print("Enter an adjective: "); 6 String adj input.next(); 7 //COMPLETE REST OF QUESTIONS AND INPUT PARTS 8 9 10 System.out.println("It was a + adj + ", cold November day. I "); 11 //COMPLETE REST OF STORY LINE, 12 13 } 14 } 15 Run Tests NOT RUN NOT RUN >
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started