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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!