subject

A health club chain allows its members to visit any of its many health club locations an unlimited number of times per day. The only constraining rule is, a customer can only visit one health club location per day, even though he or she may return to that location an unlimited number of times for the rest of that day. Although the honor system has always worked quite well, the club wants to run some tests to see how many people really follow the rules. You are to write a program that takes the entrance log files from three different clubs (all logging the same day) and return a sorted list of the people who are not honest and went to more than one health club location in the same day.
The log files are represented as vector's where each element is the member name of a customer who entered that day. For example, if a customer showed up three times to one of the club locations that day, the member's name would appear three times in the corresponding vector.
Notes
club1, club2, and club3 may contain a different number of elements.
The same member name can appear multiple times in a single log file.
The elements of the returned vector should be distinct and sorted in lexicographic order (the order they would appear in a dictionary).
Assume that two people with the same name are in fact the same person.
Constraints
club1, club2, and club3 each have between 1 and 50 elements, inclusive.
Each element of club1, club2, and club3 contains between 1 and 50 characters, inclusive.
Each element of club1, club2, and club3 consists only of uppercase letters ('A'-'Z').
Examples
{"JOHN","JOHN","FRED","PEG"}
{"PEG","GEORGE"}
{"GEORGE","DAVID"}
Returns: { "GEORGE", "PEG" }
"PEG" went to club1 and club2, and "GEORGE" went to club2 and club3.
{"DOUG","DOUG","DOUG","DOUG","DOUG" }
{"BOBBY","BOBBY"}
{"JAMES"}
Returns: { }
Here, no one went to more than one club location.
{"BOBBY"}
{"BOB","BOBBY"}
{"BOB"}
Returns: { "BOB", "BOBBY" }
Note that "BOB" is sorted before "BOBBY"
{"BOBBY","HUGH","LIZ","GEORGE"}
{"ELIZABETH","WILL"}
{"BOB","BOBBY","BOBBY","PAM","LIZ", "BOBBY","BOBBY","WILL"}
Returns: { "BOBBY", "LIZ", "WILL" }
{"JAMES","HUGH","HUGH","GEORGE","EL IZABETH","ELIZABETH","HUGH",
"DAVID","ROBERT","DAVID","BOB","BOB BY","PAM","JAMES","JAMES"}
{"BOBBY","ROBERT","GEORGE","JAMES", "PEG","JAMES","DAVID","JOHN","LIZ",
"SANDRA","GEORGE","JOHN","GEORGE"," ELIZABETH","LIZ","JAMES"}
{"ROBERT","ROBERT","ROBERT","SANDRA ","PAM","BOB","LIZ","GEORGE"}
Returns: { "BOB","BOBBY","DAVID","ELIZABETH"," GEORGE","JAMES","LIZ","PAM","ROBERT ", "SANDRA" }
{"LIZ","WILL","JAMES"}
{"JOHN","ROBERT","GEORGE","LIZ","PE G","HUGH","BOB","BOBBY","ROBERT","E LIZABETH","DAVID"}
{"PAM","DAVID","SANDRA","GEORGE","J OHN","ROBERT","SANDRA","GEORGE"}
Returns: { "DAVID", "GEORGE", "JOHN", "LIZ", "ROBERT" }
{"PEG","ROBERT","PAM","JOHN","DAVID ","JOHN","ROBERT",
"GEORGE","HUGH","WILL","JAMES","JAM ES","BOBBY","BOBBY","SANDRA"}
{"SANDRA","BOB","PAM","JAMES","WILL ","DAVID","BOBBY","GEORGE",
"WILL","LIZ","BOBBY","ROBERT","WILL ","BOB","BOBBY","ELIZABETH","HUGH"}
{"WILL","PEG","ELIZABETH","DAVID"," HUGH","BOBBY","JOHN","SANDRA","ELIZ ABETH",
"ELIZABETH","SANDRA","GEORGE","PAM" ,"ELIZABETH","BOBBY","DAVID","PAM"}
Returns:
{ "BOBBY",
"DAVID",
"ELIZABETH",
"GEORGE",
"HUGH",
"JAMES",
"JOHN",
"PAM",
"PEG",
"ROBERT",
"SANDRA",
"WILL" }
{"AHHOZY","AHHAPLL","ASNV"}
{"AHDLTOE","AHUKPJ","AHDENCTPP","AH DENCJ","AHDLNZC","AHDLTOGG","AHHAPM BG",
"ALE","AHBHA","AHUKP","AHDQMILLP"," AHDENEDY","AHDENEE","AHHOHVCX","AHI SK",
"AHW","AQDB","AHUP","AQDBNPU","AGWZ UV","AHHOSUW","AHXS","AHDENCP","AHD QM",
"AHDLTURV","AHBHVV","AHDQMILL","AHD QMD","AHH","AHDLTU","AHISFNO","AHUR F",
"AH","AHHAPNQ","AQPL","AHDXL","AHDL TUGX","AHDLT","AHUKRC","AHDLTUGX",< br /> "AQDTXYX","AGWZS"}
{"AHHAPMFF","AHURA","AHHOZ","AHISKH ","AHUPR","AHHAPM","AHUKRHIN","AHHA P",
"AHDLTMO","AHDLTUJ","AHDQY","AHUK", "AHDENEDY","AHWK","AHHOZGJJ","AHXS" ,
"AHDLTUREL","AHHOZQNL","AHHOSUWOS"}
Returns: { "AHDENEDY", "AHXS" }
Given Function
#include
#include
vector whos_dishonest(vector &club1,
vector &club2,
vector &club3) {
cout << "[LIZ]" << endl;
// you write code here
}
Complete the Given Function to solve the problem statement. Please follow the given notes and constraints. Please code this problem in C++.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:00
An excel which cell contains =b2 is copied to row below, the same column. what will be the new cell's content
Answers: 2
question
Computers and Technology, 22.06.2019 00:20
The pyraminx is a rubik's cube-type toy in the shape of a tetrahedron (not a pyramid). the pyraminx shown below has edges 15\,\text{cm}15cm15, space, c, m long and vertical height h=12.2\,\text{cm}h=12.2cmh, equals, 12, point, 2, space, c, m. the triangle drawn with dashed lines is a right triangle. what is the distance rrr? round your answer to the nearest tenth.
Answers: 1
question
Computers and Technology, 23.06.2019 00:50
Representa os dados de um banco de dados como uma coleç? o de tabelas constituídas por um conjunto de atributos, que definem as propriedades ou características relevantes da entidade que representam. marque a alternativa que representa o modelo descrito no enunciado. escolha uma:
Answers: 3
question
Computers and Technology, 23.06.2019 18:30
The computers in the sales department did not have enough data storage capacity to contain all the information the department needed to store, and it was taking a long time for team members to access the data they needed. to fix the problem, the technician installed new, larger hard drives on all the computers.
Answers: 1
You know the right answer?
A health club chain allows its members to visit any of its many health club locations an unlimited n...
Questions
question
Advanced Placement (AP), 25.12.2020 16:20
Questions on the website: 13722360