Question: For PYTHON A supermarket wants to reward its best customer of each day,showing the customers name on a screen in the supermarket. For that purpose,

For PYTHON

A supermarket wants to reward its best customer of each day,showing the customers name on a screen in the supermarket. For that purpose, the customers purchase amount is stored in a list and the customers name is stored in a corresponding list.

Implement a function

def nameOfBestCustomer(sales, customers)

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

Write a program that prompts the cashier to enter all prices and names, adds them to two lists, calls the function that you implemented, and displays the result. Use a price of 0 as a sentinel.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!