Question: CHALLENGE ACTIVITY 3 . 4 . 5 : Working with ranges. Start When the given integer variable numFolders is: less than or equal to 3

CHALLENGE
ACTIVITY
3.4.5: Working with ranges.
Start
When the given integer variable numFolders is:
less than or equal to 30, output "Mid-sized file cabinet"
between 30 exclusive and 138 exclusive, output "Full-sized file cabinet"
greater than or equal to 138, output "Too many files"
End with a newline.
Ex: If the input is 29, then the output is:
Mid-sized file cabinet
1 import java.util.Scanner;
public class FolderData { I
public static void main(String[] args){ Scanner scnr = new Scanner(System in) ;
int numFolders;
numFolders =scnr* nextInt ();
I* Your code goes here */
}
 CHALLENGE ACTIVITY 3.4.5: Working with ranges. Start When the given integer

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 Databases Questions!