/**
 * CS1101 Lab 1 Ex 2: SimpleCart.java
 * <Replace this line with your discussion group number>
 *
 * This program computes the total amount of some
 * shopping items.
 **/

import java.util.*;

public class SimpleCart
{
   public static void main(String[] args)
   {
      Scanner stdIn = new Scanner(System.in);

      String itemName1, itemName2, itemName3;
      int itemCost1, itemCost2, itemCost3;
      int itemQty1, itemQty2, itemQty3;
      int totalCost = 0;

      /* -- Modify your code below this line to read input here -- */

      // Read in input
      System.out.print("Enter item name: ");

      /*
      itemName1 = ...
      System.out.print("Enter... ");
      itemCost1 = ...
      System.out.print("Enter... ");
      itemQty1 = ...
      */

      // Check if user wants to add another item
      System.out.print("Do you wish to add more items? (y/n): ");
      String yesOrNo = stdIn.next();

      // We need to clear the newline character which is still in the input buffer
      // See John Dean Textbook Pg 94
      stdIn.nextLine();

      /*
        Here check if the user wants to add more items, if he wants to add 
        another item, then again request him to key in the item name and quantity.

        Otherwise print the output.
      */

   }
}


