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 program defined methods:
a process nonvoid 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
an input nonvoid 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
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?
Please enter compliment #:
I like your hair
Please enter compliment #:
You look nice today.
Please enter compliment #:
It's fun when you smile.
The compliments have been loaded.
Enter a seed for the random number generator RGN
How many compliments would you like? o to quit
I like your hair
How many compliments would you like? to quit
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? to quit o
Have a great day!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
