Question: (Sorting and searching) Write a C++ program that reads N social security numbers from a text file (ssn_log.txt) into an integer array SSNs (dynamically allocated)
(Sorting and searching)
Write a C++ program that reads N social security numbers from a text file (ssn_log.txt) into an integer array SSNs (dynamically allocated) and does the following operations:
A: sorts the numbers in non-decreasing order.
B: Checks if there is any duplication in the array. That is, program scans the array and see if there is at least one SSN repeated more than one time.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
