ISP-Java Write a program that gets a list of integers from the input value and outputs all integers less than or equal to the threshold value. The first input begins with an integer indicating the number of integers that the list (array) will hold. Based on the first input value, the user will then input integers into the list. Then, the last input integer will indicate the threshold. Output all integers less than or equal to that last threshold value. Assume that the list will always contain fewer than 20 integers. Ex: The following is an example of the input and output: Enter the number of integers that list will hold: 4 Enter integers for the list: 12 26 88 1999 Enter threshold integer: 28 Below are the integers that are <= to the threshold integer: 12 26
ISP-Java
Write a program that gets a list of integers from the input value and outputs all integers less than or
equal to the threshold value. The first input begins with an integer indicating the number of integers
that the list (array) will hold. Based on the first input value, the user will then input integers into the list.
Then, the last input integer will indicate the threshold. Output all integers less than or equal to that last
threshold value. Assume that the list will always contain fewer than 20 integers.
Ex: The following is an example of the input and output:
Enter the number of integers that list will hold:
4
Enter integers for the list:
12
26
88
1999
Enter threshold integer:
28
Below are the integers that are <= to the threshold integer:
12 26
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images