Question: *This java program will request three inputs: an adjective, a noun, and a past-tense verb. Prompt for and read inputs and store them in three
*This java program will request three inputs: an adjective, a noun, and a past-tense verb. Prompt for and read inputs and store them in three different String variables. Then, youll output the following sentence with the three inputs inserted. ie. The adjective noun verb over the lazy brown dog.
Heres what the output should look like:
Please enter an adjective:
What is given to me
import java.util.Scanner; public class MadLib { public static void main(String[] args) { String adjective, noun, verb; Scanner input = new Scanner(System.in);
// Prompt for and read in 3 inputs System.out.println("Please enter an adjective:"); /* Output the sentence with the inputs inserted */ } }
smart Please enter a noun: teacher Please enter a verb ending in -ed: sneezed The smart teacher sneezed over the lazy brown dog.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
