Mad Libs are activities that have a person provide various words, which are then used to complete a short story in unexp

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Mad Libs are activities that have a person provide various words, which are then used to complete a short story in unexp

Post by answerhappygod »

Mad Libs are activities that have a person provide variouswords, which are then used to complete a short story in unexpected(and hopefully funny) ways.
Complete the program to read the needed values from input, thatthe existing output statement(s) can use to output a shortstory.
Ex: If the input is:
the output is:
Mad Libs Are Activities That Have A Person Provide Various Words Which Are Then Used To Complete A Short Story In Unexp 1
Mad Libs Are Activities That Have A Person Provide Various Words Which Are Then Used To Complete A Short Story In Unexp 1 (141.44 KiB) Viewed 30 times
2.30 LAB: Mad Lib Mad Libs are activities that have a person provide various words, which are then used to complete a short story in unexpected (and hopefully funny) ways. Complete the program to read the needed values from input, that the existing output statement(s) can use to output a short story. Ex: If the input is: Eric Chipotle 12 cars the output is: Eric went to Chipotle to buy 12 different types of cars. 417856.2527814.qx3zqy7 LAB ACTIVITY 1 import java.util.Scanner; 2 3 public class LabProgram { 5 6 7 8 9 2.30.1: LAB: Mad Lib 10 11 12 13 14 15} public static void main(String[] args) { Scanner scnr = new Scanner(System.in); } String firstName; String genericLocation; Develop mode int wholeNumber; String plural Noun; /* Type your code here. */ System.out.println(firstName + went to + genericLocation + to buy " + wholeNumber + " different Submit mode Run program LabProgram.java Enter program input (optional) If your code requires input values, provide them here. Program output displayed here Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box. Input (from above) - 0/10 Load default template... LabProgram.java (Your program) Output (shown below)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply