1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Nadusha1986 [10]
3 years ago
13

Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integer

s that follow. Then, get the last value from the input, which indicates a threshold. Output all integers less than or equal to that last threshold value. Assume that the list will always contain fewer than 20 integers.
Computers and Technology
1 answer:
lapo4ka [179]3 years ago
7 0

Answer:

Ex: If the input is:

5 50 60 140 200 75 100

the output is:

50 60 75

The 5 indicates that there are five integers in the list, namely 50, 60, 140, 200, and 75. The 100 indicates that the program should output all integers less than or equal to 100, so the program outputs 50, 60, and 75.

For coding simplicity, follow every output value by a space, including the last one.

Such functionality is common on sites like Amazon, where a user can filter results.

#include <iostream>

#include <vector>

using namespace std;

int main() {

/* Type your code here. */

return 0;

}

You might be interested in
A thin red border indicates the active cell. (True or False)
sergij07 [2.7K]
<span>It is false that a thin red border indicates the active cell. As a matter of fact, an active cell is indicated by a thin green border. That means that you have clicked that particular cell, and that it is activated, so that you can use it and write whatever you want there. Usually, even in the real world, green means that something is active, and red that it is inactive.</span>
3 0
3 years ago
Any part of the computer that you plug into the CPU like a phone, tablet, headphones etc. are called
gtnhenbr [62]

Answer:

usb

Explanation:

8 0
3 years ago
All of the following are forms of verbal communication except
Radda [10]
B. hand gestures
these are not verbal.
4 0
3 years ago
Read 2 more answers
Which of the following statements are true about the Internet?
Arlecino [84]
1, 2, and 3 are true
6 0
3 years ago
Describe the difference between the circumscribed and inscribed options when using the AutoCAD Polygon command
marysya [2.9K]

Answer: Describe the difference between circumscribed and inscribed options when using the autocad polygon tool. Circumscribed draws the object around the circle while inscribed draws the object inside the circle. The Length is equal to 5.3151 and the Angle is equal to 41 degrees.

Explanation:

3 0
3 years ago
Other questions:
  • Background Susan finished work on system architecture issues, and her system design specification was approved. Now she is ready
    15·1 answer
  • In number theory, a perfect number is a positive integer that is equal to the sum of its proper positive divisors, that is, the
    12·1 answer
  • When programming in Scratch, to make our Sprite walk across the background, in which category would we find the programming bloc
    7·1 answer
  • In a distributed database system, the data placement alternative with the highest reliability and availability is Group of answe
    9·1 answer
  • "What is the difference between dialogue and debate?
    7·1 answer
  • How Can I add a image in an HTML program?​ please tell
    6·1 answer
  • An integrated file is one that includes information created in _____ Office application(s).
    15·1 answer
  • Anyone know how to delete that I need ASAP
    13·1 answer
  • How do cyber criminals target user’s end devices?
    11·2 answers
  • What is the output for the following program?
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!