Question: Make an application that: Opens the input file called log . txt , reads it and stores the data in a vector. Sorts the

Make an application that:
Opens the input file called log.txt ", reads it and stores the data in a vector.
Sorts the information by date / time to perform searches.
You CANNOT use the vector sort, you must implement the Sorting algorithm.
Ask the user for the start and end dates of the information search. (first receives an integer representing the month, from 1 to 12, then another integer representing the day)
Displays the records corresponding to those dates. (to standard output in ascending order (by date))
Stores the result of the sorting in a file. (the output file must be called sorted.txt, respecting the order of the columns)
The input file "log.txt" must be included in the same path where your "main.cpp" file is located.
The output file "sorted.txt" must be generated in the same path where the "main.cpp" file is located and executed. "main.cpp".
To obtain 100% of the points for this activity, it is divided into:
- Correctly fulfill the functionality required by the activity:
- Reading data from the corresponding file.
- Sorts the data correctly.
- Correctly performs the information search..
- The program must compile and run WITHOUT using libraries in a Linux environment (g++ main.cpp ./a.out)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!