Write a program that prompts the cashier to enter all


Problem

A supermarket wants to reward its best customer of each day, showing the customer's name on a screen in the supermarket. For that purpose, the customer's purchase amount is stored in an Array List and the customer's name is stored in a corresponding Array List. Implement a method public static String name Of Best Customer (Array List sales, Array List 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 array lists, calls the method that you implemented, and displays the result. Use a price of 0 as a sentinel.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program that prompts the cashier to enter all
Reference No:- TGS02628274

Expected delivery within 24 Hours