Online Shopping Cart

Design a ShoppingCart class to represent a user's shopping cart in an online store. Implement methods to add items, remove items, and calculate the total cost.
        
       Input:-add laptop 1 1000.00
       Input Description: The input will consist of a string representing the "add" operation, followed by the item name, quantity, and price. 
       Output: 1000.0
       Output Description: The output will be a float value representing the total price for the specified quantity. 
       Constraints: Maximum quantity for item will be 100.
       Explanation: 

Loading...