Write a complete program that : (1)Read in 12 names starting with J from an inpu
ID: 3609221 • Letter: W
Question
Write a complete program that :(1)Read in 12 names starting with J from an input file and printsnames. (2)Print the length of each name using functioncall String Length, strlen(s). (3)Put names in Alphabetical order using functioncall String Compare, strcmp(s1, s2). 4)Print the First and Last names (of alphabet order names)using function call String Copy, strcpy(s1, s2) Basically use the functions strlen(s), strcmp(s1, s2),strcpy(s1, s2) with the header file <cstring> Write a complete program that :
(1)Read in 12 names starting with J from an input file and printsnames. (2)Print the length of each name using functioncall String Length, strlen(s). (3)Put names in Alphabetical order using functioncall String Compare, strcmp(s1, s2). 4)Print the First and Last names (of alphabet order names)using function call String Copy, strcpy(s1, s2) Basically use the functions strlen(s), strcmp(s1, s2),strcpy(s1, s2) with the header file <cstring>