A supermarket wants to reward its best customer of each day….

$25.00

Category: You will Instantly receive a download link for .zip solution file upon Payment || To Order Original Work Click Custom Order?

Description

5/5 - (5 votes)

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 and the customer’s name is stored in a corresponding vector.

Implement a function

string name_of_best_customer(vector sales,

vector customers)

that returns the name of the customer with the largest sale.