management system. It allows users to add items to their cart, view their cart, and generate a bill. The system provides a user-friendly interface with a menu-driven approach.
Functions Used in the Project:
Item Class: Represents an individual item with attributes such as name, price, and quantity. Provides getter methods to retrieve the item's details. ShoppingCart Class: Manages the items added to the cart. Provides methods to add items to the cart, calculate the total bill amount, and display the bill. Main Class (ShoppingMallBillSystem): Acts as the entry point of the program. Displays a menu to the user with options to add items to the cart, generate a bill, or exit the system. Interacts with the user based on the chosen option and utilizes the ShoppingCart class to perform necessary actions.