### (Solved) : Write Program First Gets List Integers Input Input Begins Integer Indicating Number Intege Q35560597

Write a program that first gets a list of integers from input.The input begins with an integer indicating the number of integersthat follow. Then, get the last value from the input, and outputall integers less than or equal to that value.

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, namely50, 60, 140, 200, and 75. The 100 indicates that the program shouldoutput all integers less than or equal to 100, so the programoutputs 50, 60, and 75. For coding simplicity, follow every outputvalue by a space, including the last one.

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

Write your code to define and use two functions:
vector<int> GetUserValues()
void OutputIntsLessThanOrEqualToThreshold(vector<int>userValues, int upperThreshold)

Utilizing functions will help to make main() very clean andintuitive.

Note: This is a lab from a previous chapter that now requiresthe use of functions.

9.10 LAB: Output values below an amount-functions Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow Then, get the last value from the input, and output all integers less than or equal to that value. 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. Write your code to define and use two functions: vector<īnt> Getuservalues() void OutputIntsLessThanorEqualToThreshold(vector<int> Utilizing functions will help to make main0 very clean and intuitive. userValues, int upperThreshold) Note: This is a lab from a previous chapter that now requires the use of functions. ACTIVITY 9.10.1: LAB: Output values below an amount -functions 8/10 Show transcribed image text 9.10 LAB: Output values below an amount-functions Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow Then, get the last value from the input, and output all integers less than or equal to that value. 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. Write your code to define and use two functions: vector Getuservalues() void OutputIntsLessThanorEqualToThreshold(vector Utilizing functions will help to make main0 very clean and intuitive. userValues, int upperThreshold) Note: This is a lab from a previous chapter that now requires the use of functions. ACTIVITY 9.10.1: LAB: Output values below an amount -functions 8/10