Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

in 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 sales are stored in a list and the customers name is stored in a corresponding list. Implement a function:5 pts

DefnameofBestCustomer(Sales, Customers)

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

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

Loop

Enter customer:

Enter Sales:

Store these in 2 lists

Call function nameofBestCustomer

Print the name of the best customer

Your code with comments

A screenshot of the execution

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

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions

Question

Types of cultural maps ?

Answered: 1 week ago

Question

Discuss the various types of leasing.

Answered: 1 week ago

Question

Define the term "Leasing"

Answered: 1 week ago

Question

What do you mean by Dividend ?

Answered: 1 week ago

Question

LO10.3 Explain how demand is seen by a purely competitive seller.

Answered: 1 week ago