#include &lt;iostream&gt;    #include &lt;cmath&gt;    #include &lt;list&gt;    using namespace std;    bool same_integral_part &#40;double first, double second&#41;    &#123;          return &#40; int&#40;first&#41; == int&#40;second&#41; &#41;;     &#125;    struct is_near     &#123;        bool operator&#40;&#41; &#40;double first, double second&#41;        &#123;             return &#40;fabs&#40;first - second&#41; &lt; 5.0&#41;;         &#125;    &#125;;    int main &#40;&#41;    &#123;        double mydoubles&#91;&#93; = &#123; 12.15,  2.72, 73.0,  12.77,  3.14, 12.77, 73.35, 72.25, 15.3,  72.25 &#125;;        list&lt;double&gt; mylist &#40;mydoubles, mydoubles + 10&#41;;        mylist.sort&#40;&#41;;        mylist.unique&#40;&#41;;        mylist.unique &#40;same_integral_part&#41;;        mylist.unique &#40;is_near&#40;&#41;&#41;;        for &#40;list&lt;double&gt; :: iterator it = mylist.begin&#40;&#41;; it != mylist.end&#40;&#41;; ++it&#41;            cout &lt;&lt; ' ' &lt;&lt; *it;        cout &lt;&lt; '\n';        return 0;    &#125;
A. 2.72 12.15 72.25
B. 12.15 73.0 12.77
C. 73.35
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;    #include &lt;cmath&gt;    #include &lt;list&gt;    using namespace std;    bool same_integral_part &#40;double first, double second&#41;    &#123;          return &#40; int&#40;first&#41; == int&#40;second&#41; &#41;;     &#125;    struct is_near     &#123;        bool operator&#40;&#41; &#40;double first, double second&#41;        &#123;             return &#40;fabs&#40;first - second&#41; &lt; 5.0&#41;;         &#125;    &#125;;    int main &#40;&#41;    &#123;        double mydoubles&#91;&#93; = &#123; 12.15,  2.72, 73.0,  12.77,  3.14, 12.77, 73.35, 72.25, 15.3,  72.25 &#125;;        list&lt;double&gt; mylist &#40;mydoubles, mydoubles + 10&#41;;        mylist.sort&#40;&#41;;        mylist.unique&#40;&#41;;        mylist.unique &#40;same_integral_part&#41;;        mylist.unique &#40;is_near&#40;&#41;&#41;;        for &#40;list&lt;double&gt; :: iterator it = mylist.begin&#40;&#41;; it != mylist.end&#40;&#41;; ++it&#41;            cout &lt;&lt; ' ' &lt;&lt; *it;        cout &lt;&lt; '\n';        return 0;    &#125;
A. 2.72 12.15 72.25 B. 12.15 73.0 12.77 C. 73.35 D. None of the mentioned
Explanation:In this program, We are eliminating the values by using the unique operation in the list.