Chapter 11: Problem 9
[Super Market Application] Supermarket sells many items every day. For each item sold, item code, quantity sold out and date of sales are represented in a class Sales with the following details: \- int itemCode, int quantity, Date sdate; Create a class SuperMarket with the members \- ArrayList \(<\) Sales \(>\) sales; \- public void sales(Date d) displays total sales on this date \- public void sales(int item) displays total sales based on itemCode \- public void sales() displays sorted list of all sales items based on sdate Design a public class that will create few sales details for this supermarket. Read a date from user and get the total sales on this particular date. Also, display total sales for the given itemCode. Finally, display complete sales details sorted datewise.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.