Menu

Java Program Request Three Inputs Adjective Noun Past Tense Verb Prompt Read Inputs Store Q43896861

*This java program will request three inputs: an adjective, anoun, and a past-tense verb. Prompt for and read inputs and storethem in three different String variables. Then, you’ll output thefollowing sentence with the three inputs inserted.
ie. “The adjective noun verb over the lazy brown dog.”

Here’s 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.

Expert Answer


Answer to *This java program will request three inputs: an adjective, a noun, and a past-tense verb. Prompt for and read inputs an…

OR