The program will accept an amount representing bill items from the user repeatedly until the user says enough. b) The program will then total all the items inputted c) A tax of 8.25% is charged on the total of purchases. java code example

Example: how to find the total of the products added to the shopping cart in java program

public class ItemToPurchase 
{
   public String itemName;
   public int itemPrice;
   public int itemQuantity;

   public ItemToPurchase()
   {
      itemName="none";
      itemPrice=0;
      itemQuantity=0;  
   }

   public void setName(String name)
   {
      itemName = name;   
   }
   public String getName()
   {
      return itemName;
   }

    }