[SOLVED] CS211 Assignment 2 -Objective To implement Merge sort

30.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)

Assignment no. 2
Objective To implement Merge sort
Command-line argument:
Your program should receive a file (input file) as a command line argument.
Input file
The input file will be a text file where each line contains a non-negative integer.
Task
Implement Merge sort to sort the integers in the input file in ascending order. The output must be a file named ‘mergesort.txt’. Every line should contain exactly one integer (the first line contains a smallest integer, and so on).
Submission
● The program you submit should output mergesort.txt when run.
● Follow some coding style uniformly. Provide proper comments in your code.
Evaluation

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.