Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is in python! Write a program that creates a list of customers and a list of sales associate with them. The program shall run

This is in python!

Write a program that creates a list of customers and a list of sales associate with them.

The program shall run until the user presses enter at the customer name input. Once completed, display the top customer.

For this program, use two separate lists to keep the name of the customer and the associated purchase amount.

Prompt to the user shall be

 What is the name of the customer ? 
 What is the purchase amount (numbers only) ? 

If the entry is not a number, then just ask again.

Important : If the customer already exits, then add the amount of new purchase to the prior total purchase amounts !!!

Sample output assuming Jim was the top customer spending 50 total is

 Jim spent 50 

For simplicity, have the purchase amounts be integer values only.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions