this is data structures with C++ language, please do \"#1 &a\" separately and please send me copyable file
1. Write a program that allows the user to enter the last namesof the candidates in a local election and the votes received byeach candidate. The program should then output each candidate'sname, votes received by that candidate, and the percentage of thetotal votes received by the candidate. Assume a user enters acandidate's name only once and assume that no two candidatesreceive the same number of votes. Your program should output thewinner of the election.
a. Modify your work, above question solution as follows:
replace the int array with a double vector
the winner gets at most 20% of the loser's assets
the loser withdraws from the game if its assets are less than1.00. In this case the winner gets all of the loser's assets.