Write a c++ code


a. Write a header file that defines a function that takes your full name as a parameter and returns the modified name with the abbreviation of the middle name only, as follows:

input: Rami Yusuf Daraghma

return: Rami Y. Daraghma

b. Important notes to be considered in your solution:

1. do not use string library functions such as (strlen,strcpy,.., etc)

2. use char s[] to define the full name

3. do not use string class data type.

4. you can use gets_s() or getline to read the full name

c. Write a test program that uses the function above on your full name and then repeat the function call on your friend's full name.   


Ask Yours
Post Yours
Write your answer