Write a cpp code that ask the user for eight first names


Problem

In C++, you are to ask the user for 8 first names and store them in an array of size 8.

You should then randomize the elements in the array in a function called myswap. This function is going to select two random array elements and swap the contents. You doing this a few times, up to you, and the elements should all be randomized!

Once they are random, store them in a file called players.txt.

Your program should get two names from the file, give them a random number each and then the winner moves on to the next file. This should be in a function called round1 as well as the file where the winners go will be named round1.txt.

Now that your round1 file has the 4 winning players, you are going to run the second function called round2. The winners of this round will to go the round2.txt file.

We will finally call the winner function which will determine the winner from the round2 file and store the winner in the winner.txt file.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a cpp code that ask the user for eight first names
Reference No:- TGS03222329

Expected delivery within 24 Hours