Question: Welcome to the Random Complimenter. Please write java code following the conditions / instructions below : The main method must contain 3 methods 1 )

Welcome to the Random Complimenter.
Please write java code following the conditions/instructions below :
The main method must contain 3 methods
1) a process non-void method that uses a scanner object that is initialized in the main method to return an array of user defined compliments . The method must prompt the user for an intermediate number of times for compliments to load until the user enters an empty string by pressing the enter key
Create a duplicate new array used to store the user to find compliments that is one element larger when the user enters a new string
the process non-void method must duplicate the new array, using the following algorithm, simply create a new array that is one element larger than the previous array copy each complement from the original rate into the new array and add the new complement to the last position of the Shortcuts are not allowed
2)an input non-void method that uses scanner object in string literal representing the prompt for the user defined seed for the random generator that are initialized in the main method, but does not declare any variables within that method to return a random object
3)an output void method that uses a scanner object, a random object, and an array that are declared in initialized in the main method to display a user define quantity of random compliments from the array
Another input non-void method that is not called in the main method, but is called in an input non-void method that is called from the main method has the input method will call another input method
Welcome to the Random Complimenter. Please write

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!