Please help with this study Java program. A fishing store, BestBuoy wants to rew
ID: 3731232 • Letter: P
Question
Please help with this study Java program.
A fishing store, BestBuoy wants to reward its best customers of each day, showing the customers' names on a screen in the store. On Mondays, the store is pretty slow, so they only want to display the top three customers. On Saturdays, when the store is very busy, they want to be able to display the top ten customers. Write a program that will read in the names and purchase amount from a file and populate two ArrayLists, one with names and one with purchase amount (alternatively, you may use a HashMap).
Write a method that will read in from a CSV FILE, the names of the customers as well as their purchase amount and load your ArrayLists.
Write a method topNumberBestCustomer that accepts the two ArrayLists as arguments as well as a number, topN, that represents how many top sales customers to display, and returns the names of the customer with the topN largest sales.
Write a displayNames method that will display the topN customers' names.
I provided a pic of the file I am using if needed. Thank you for your help.
- top_customers (1).csv A1 Q fx Jesse Pinkman 1 Jesse Pink 2 Rick Grimes244.56 3 Scarlett Joh 4 Luke Skywal229.35 5 Tony Stark 6 Walter Whit 7 John Wick 8 Saul Goodm 9 Morgan Fre 10 Phil Coulsor 11 Tom Hanks 12 Dexter Mor 13 Steve Rodge 14 Peter Quil 15 Bruce Wayn 16 Daryl Dixon 17 Jax Teller 18 Han Solo 19 Jim Carrey 20 Negan 21 143.99 84.77 102.65 150.56 249.92 128.54 92.58 114.12 112.12 9.97 105.65 108.69 99.99 239.99 92.58 202.45 86.78 116.57 23 24 25 26