Question: Integer visitorCount is read from input. If visitorCount is 9 or more, then output Lots of visitors. Otherwise, output A fine number of visitors. End
Integer visitorCount is read from input. If visitorCount is or more, then output "Lots of visitors". Otherwise, output "A fine number of visitors". End with a newline. import java.util.Scanner;
public class VisitorInfo
public static void mainString args
Scanner scnr new ScannerSystemin;
int visitorCount;
visitorCount scnrnextInt;
Your code goes here
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
