Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 */
}
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions