Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Python!!! Create the Supermarket Application. A supermarket wants to reward its best customer of each day, showing the customers name on a screen in

In Python!!!

Create the Supermarket Application. 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.

The application prompts the cashier to enter all prices and names, adds them to the two lists, and then displays the name of the customer with the largest sale. Use a price of -1 as a sentinel.

Enter the sale amount: 1000

Enter the customer's name: Maria

Enter the sale amount: 400 Enter the customer's name: John

Enter the sale amount: 500 Enter the customer's name: Tom

Enter the sale amount: -1 The best customer was: Maria

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

More Books

Students also viewed these Databases questions

Question

Identify numeric characteristics of each scale of measurement?

Answered: 1 week ago

Question

Types of Interpersonal Relationships?

Answered: 1 week ago

Question

Self-Disclosure and Interpersonal Relationships?

Answered: 1 week ago