subject

Write a program that gets a list of integers from a user. First, the user should be asked to enter the number of integers to be stored in a list. Then your program should ask for these integers and store them in the list. Finally, the program should ask the user to enter a sentinel value that will be used to search through the integers in the list which are greater than the sentinel value. For example: If the input is: 7 50 60 140 200 75 100 172 70 the output is: 140 200 75 100 172 The 7 indicates that there are seven integers in the list, namely 50 60 140 200 75 100 172. The 70 indicates that the program should output all integers greater than 70, so the program outputs 140 200 75 100 172. You should use methods in addition to the main method. getListValues to get and store the values from the user to print the values found to be greater than the sentinel value.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 07:00, sudotoxic
Into what form does the barcode reader convert individual bar patterns?
Answers: 1
image
Computers and Technology, 24.06.2019 21:50, TamB01
Maddie is traveling to india and would like to document her trip for friends and family to access online. what tool would be best? app blog listserver web page
Answers: 1
image
Computers and Technology, 24.06.2019 23:00, alyssa337
What is a current gdp and what is a real gdp?
Answers: 1
image
Computers and Technology, 25.06.2019 08:10, hinacat87
Why should the technician watch for signs of contamination in the oil when recovering refrigerant from a system
Answers: 3
You know the right answer?
Write a program that gets a list of integers from a user. First, the user should be asked to enter t...

Questions in other subjects:

Konu
Mathematics, 14.12.2021 01:20
Konu
Mathematics, 14.12.2021 01:20
Konu
Mathematics, 14.12.2021 01:20
Konu
Mathematics, 14.12.2021 01:20