Question: c++ Write a program that first gets 5 strings from input. Then, get the last value input will be a threshold. Output all string that
c++

Write a program that first gets 5 strings from input. Then, get the last value input will be a threshold. Output all string that are alphabetically less than the threshold value. Ex: If the input is: kiwi banana lemon orange apple grape the output is: apple, banana, For coding simplicity, follow every output value by a comma, including the last one. Such functionality is common on sites like Amazon, where a user can filter results. 447684.2976562.q3zqy7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
