String inputWord is read from input. Write a while loop that iterates until inputWord is equal to "Stop". In each iteration of the loop:
Read integer furnitureCount from input.
If furnitureCount is less than or equal to 40, output the value of inputWord,
followed by ": low on stock" and a newline.
Otherwise, output the value of inputWord, followed by ": well stocked" and a newline.
Read string inputWord from input.
Click here for example
import java.util.Scanner;
public class PairedDataProcessing {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
String inputWord;
int furnitureCount;
inputWord = scnr.next();
/* Your code goes here */
}
}