[solved] – Question 77721
A supermarket wants to reward its best customer of each day, showing the customer’s name on a screen in the supermarket. For that purpose, the customer’s purchase amount is stored in a vector<double> and the customer’s name is stored in a corresponding vector<string>.
Implement a function
string name_of_best_customer(vector<double> sales,
vector<string> customers)
that returns the name of the customer with the largest sale.
Expert Answer
OR

