Question
Write a program called namesort. namesort takes two arguments. The first argument is the name of a file that consists of lines with names in
Write a program called "namesort". "namesort" takes two arguments. The first argument is the name of a file that consists of lines with names in the format "first-name last-name" with a single space as separator. The second argument is the name of a file to contain the namesort's output.
Namesor's job is to output just the last-name in sorted order. No duplicate suprpression is done. The program should use the system sort program to do the actual sorting using as few processes as possible.
Your code should not test extensively for error conditions or include header files, but do use enough comments to make the program understandable
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started