1- Input five names from text file and use strcomp and strcopy functions to sort 5 names (use
cstring libtrary)
Where strcmp and strcpy are the followings:
strcomp(s1,s2): return 0 if s1 == s2
return positive number if s1>s2
return negative number if s1<s2
strcpy(s1,s2): s1=s2
2- Input five names from text file and use if (s1>s2) then swap to sort 5 names (use string
libtrary)
3- Write a program to input a character, then find and locate the position of this character in a
text. Output the number of times this character occurs
4- Replace the word \"even\" with \"only\", then erase the initial word \"But\" and \"don't\" in the
following string \"But I have heard it works, even if you don't believe in it\"
5- Write a program that reads a person's name in the following format: first name, last name
and birth - year. The program then outputs the password as the following format:
Last_Name, two letters from the initial and the most two right digits of birth -year