Question: The main method must call the following 3 program defined methods: 1 ) a process non - void method that uses a scanner object in

The main method must call the following 3 program defined methods:
1) a process non-void method that uses a scanner object in a string literal that are initialized in the main method to return an array of the user to find compliments
2) an input non-void method that uses a scanner object in a string literal that are in initialized in the main method, but do not declare any variables within the method to return a random object
3) an output void method that uses the scanner object, a random object in an array that are declared in the main method to display a user to find quantity of random compliments
Avoid using break commands in the loop
Welcome to the Random Complimenter.
How many compliments would you like to add? 3
Please enter compliment #1:
I like your hair
Please enter compliment #2:
You look nice today.
Please enter compliment #3:
It's fun when you smile.
The 3 compliments have been loaded.
Enter a seed for the random number generator (RGN).
33
How many compliments would you like? ('o' to quit)
1
I like your hair
How many compliments would you like? ('0' to quit)
6
I like your hair
It's fun when you smile.
It's fun when you smile.
You look nice today.
You look nice today.
You look nice today.
How many compliments would you like? ('0' to quit) o
Have a great day!
The main method must call the following 3 program

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 Programming Questions!