Write a method printShampooInstructions(), with int parameter numCycles, and voi
ID: 3904761 • Letter: W
Question
Write a method printShampooInstructions(), with int parameter numCycles, and void return type. If numCycles is less than 1, print "Too few.". If more than 4, print "Too many.". Else, print "N: Lather and rinse." numCycles times, where N is the cycle number, followed by "Done.". End with a newline. Example output for numCycles = 2:
import java.util.Scanner;
public class ShampooMethod {
/* Your solution goes here */
public static void main (String [] args) {
printShampooInstructions(2);
}
}