Introduction - If you have any usage issues, please Google them yourself
Write a programme that reads in the name (Given name+ space+ family name) of 5
persons and writes them to a disk file. Each name in the disk file always starts on a new line.
Note that you need consider the case where a person has three or more name parts (e.g., Given,
Middle and Family) in order to get full marks (you also need check/change the first letter of the
names into upper case.)
Part of the code is given on this page. Read the code first and make sure you understand each
line. What you need to do then is to write a C++ function which
i). Displays a message on the screen such as “This function is called xx times” where xx should
be the value of the counter in the for loop of the main function.
ii). reads in a name from the keyboard (full name) and returns it to the main function.