Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

LabProgram.java int [ ] userValues = new int [ 2 0 ] ; int size = scnr . nextInt ( ) ; for ( int

LabProgram.java
int[] userValues = new int[20];
int size = scnr.nextInt();
for(int i=0;i size; i++
userValues [i]= scnr.nextInt();
}
int threshold = scnr.nextInt();
for(int i=0;i size; i++
if (userValues [i]=threshold){
System. out.print (userValues [i]+",") ;
}
}
}]
}
Develop mode
When done developing your program, press the Submit for grading button below. This will
submit your program for auto-grading.
Coding trail of your work What is this?
1/11 R-0 min:1
Latest submission -11:06 PM PST on 01/11/24
Only show failing tests
Download this submission
1:Compare output
Output is nearly correct, but whitespace differs. See highlights below. Special character legend
Input
5,50,60,140,200,75,100
Your output
Expected output
2:Compare output
Output is nearly correct, but whitespace differs. See highlights below. Special character legend
Your output
Expected output
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions