Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello. I need help putting the below into PYTHON coding language: A supermarket wants to reward its best customer of each day, showing the customers

Hello. I need help putting the below into PYTHON coding language:

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 nameOfBestCustomers(Sales, customers, topN)

That returns the name of the customer with the largest sale and displays the top customers, that is the topN customer with the largest sales, where topN is a value that the user of the program supplies. The program prompts the cashier to enter all the prices and names, adds them to two lists, calls the function that you implemented, and displays the results. Use a price of 0 as a sentinel.

If there were fewer than topN customers, include all of them.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions

Question

Lo6 Identify several management development methods.

Answered: 1 week ago

Question

LO4 List options for development needs analyses.

Answered: 1 week ago