Question: Write a program that would read an input file and outputs will be the contents of the file sorted in an ascending order. For example,
Write a program that would read an input file and outputs will be the contents of the file sorted in an ascending order. For example, given following input file data.txt.:

Problem statements: 1. Write a program that would read an input file and outputs will be the contents of the file sorted in an ascending order. For example, given following input file data.txt. a quick fox lazy dog jump over a Your program will print a quick fox jump over a lazy dog Every line of the file is considered one string. Use std::sort to sort them. Choose any container of your choice. Test well with lots of input data by modifying the input file (or using different input files). Make sure you have a main() to test your code. Submission Please upload.cpp files for hw7 in Camino under Assignments Homework 7. Use the discussion board to post your queries. Please make sure you write your name, hw#, and (for example, Sukanya Manna, HW7, CSC160). You should use "two spaces" for indenting your code instead of tab. For most of your code, you should write comments, so that the grader knows what you are trying to accomplish. Rubric Extra penalty: 1. 1 point will be deducted for code with no comments. 2. 1 point will be deducted if the code is not properly indented. For each C++ code: 3. If your code does not compile 50% will be deducted straight 4. If your code compiles but does not run 25% will be deducted straight For every error we would linearly deduct points additionally 5. If your code compiles but it does not print the results accurately + 15% will be deducted straight For each error we would linearly deduct points additionally O o
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
