Results 1 to 2 of 2
  1. #1
    recklessdrama is offline Member
    Join Date
    Nov 2012
    Posts
    1
    Rep Power
    0

    Default Simple POS System...

    import java.util.Scanner;
    public class Project {
    static String POS[][] = new String [10] [3];
    static String Product[] [] = new String [100] [4];
    static Scanner write = new Scanner(System.in);

    public static void main(String[]args){
    productdata();
    Header();
    LogInForm();


    }


    //Header
    public static void Header(){

    System.out.print("----------------------------------------------------------------------------");
    System.out.print("\n POST SYSTEM");
    System.out.print("\n METRO MARKET! MARKET! HYPERMART");
    System.out.print("\n Mabini Street , Global City");
    System.out.print("\n Fort Bonifacio , Taguig");
    System.out.print("\n Metro Manila");
    System.out.print("\n----------------------------------------------------------------------------\n");
    }//endheader
    // start of log in form
    public static void LogInForm(){


    String securitycode = "32427";
    char TryAgain= 'y';
    int x ;


    System.out.print("\n----------------------------------------------------------------------------");

    System.out.print("\nWhat Do you want To Log In?");
    System.out.print("\n\n[a] Administrator");
    System.out.print("\n[b] Casher");
    System.out.print("\n[x] Close");


    System.out.print("\n\nLog in : ");
    String logIn = write.next();
    System.out.print("----------------------------------------------------------------------------");
    if (logIn.length() == 1){
    char logInChar = logIn.charAt(0);
    // AdminAcount
    if (logInChar == 'a' ||logInChar == 'A'){

    do{
    System.out.print("\nEnter Security code : ");
    String security= write.next();
    System.out.print("----------------------------------------------------------------------------");
    if (security.equals(securitycode)){
    Admin();
    }
    else{
    System.out.print("\nIncorrect security code");
    }


    do{

    System.out.print("\n\nTry Again? (y/n): ");
    String TryAgainString = write.next();
    if(TryAgainString.length()== 1){

    TryAgain = TryAgainString.charAt(0);

    if(TryAgain == 'y' || TryAgain == 'Y' || TryAgain == 'n'|| TryAgain== 'N'){

    x= 1;

    }

    else{
    System.out.print("Invalid Input....\n");
    System.out.print("Try Again? (y/n): ");
    TryAgainString =write.next();
    x=0;

    }


    }
    else {
    System.out.print("Invalid Input....\n");
    System.out.print("Try Again? (y/n): ");
    TryAgainString =write.next();
    x=0;
    }





    }while(x==0);

    if (TryAgain == 'n' || TryAgain =='N'){
    LogInForm();
    }



    }while (TryAgain == 'y' || TryAgain == 'Y');



    } //EndOfAdmin
    //Casher
    else if(logInChar=='b' || logInChar=='B'){

    Casher();

    }//EndOfCasher
    //CloseProgram
    else if(logInChar=='x' || logInChar=='X'){

    System.out.print("\nEnd of Program.....");
    System.exit(0);
    }
    // invalid letter
    else{ System.out.print("\nInvalid Letter");
    LogInForm();

    }
    //invalid string
    }
    else{
    System.out.print("\nInvalid You Input String");
    LogInForm();

    }


    } // end of method loginform

    //start of admin form
    public static void Admin(){

    char TryAgain= 'y';
    int x ;

    System.out.print("\n----------------------------------------------------------------------------");
    System.out.print("\nWELCOME ADMINISTRATOR. . . .");
    System.out.print("\n----------------------------------------------------------------------------");

    System.out.print("\n\nWhat Trasaction do you want to do?");
    System.out.print("\n[a]\tRegister New Product");
    System.out.print("\n[b]\tAdd items");
    System.out.print("\n[c]\tDelete Products");
    System.out.print("\n[x]\tLog Out");

    System.out.print("\n\nEnter Choice :");
    String AdminTrans = write.next();

    if(AdminTrans.length()==1 ){
    char AdminTransChar = AdminTrans.charAt(0);
    System.out.print("----------------------------------------------------------------------------");
    if (AdminTransChar == 'a' || AdminTransChar=='A'){
    System.out.print("\nEnter Product name : ");
    String productname= write.next();

    stop1:
    for(int row = 0 ;row <Product.length; row++) {
    for (int col = 0 ; col <4 ; col++){
    if(Product[row][col].equalsIgnoreCase(productname)){

    System.out.print("Product Already Exist");
    Admin();
    }




    if (Product[row][col].equals("")){



    if (col==0){

    Product[row][col] = productname;





    }
    else if (col==1){
    System.out.print("Enter Product price : ");
    String productprice= write.next();
    Product[row][col] = productprice;
    }
    else if (col==2){
    System.out.print("Enter Product description : ");
    String productdes= write.next();
    Product[row][col] = productdes;
    }
    else if (col==3){
    System.out.print("Enter Product quantity : ");
    String productquan= write.next();
    Product[row][col] = productquan;
    break stop1;

    }

    }




    }

    } // stop loot of register
    System.out.print("\nSuccessfully registered");
    System.out.print("\n----------------------------------------------------------------------------");
    Admin();



    }
    else if (AdminTransChar == 'b' || AdminTransChar=='B'){


    System.out.print("\nLIST OF PRODUCT");
    System.out.print("\nADD QUANTITY\n");
    for(int row = 0 ;row <Product.length; row++) {
    for (int col = 0 ; col <4 ; col++){
    if(Product[row][col].equals("")){
    }
    else{
    System.out.print(Product[row][col]+"\t");
    }
    }
    if(!Product[row][0].equals("")) {
    System.out.println();
    }
    }
    System.out.print("\n----------------------------------------------------------------------------");
    // add quantity


    do{
    System.out.print("\nEnter Product Name : ");
    String productsearch= write.next();
    stop3:
    for(int row = 0 ;row <Product.length; row++) {

    if (Product[row][0].equalsIgnoreCase(productsearch)){

    int quantity = Integer.parseInt(Product[row][3]);
    System.out.print("\nHow many Items Do you want to add ? : ");
    int productadd= write.nextInt();
    quantity = quantity +productadd;
    Product[row][3] = String.format("%d",quantity);
    System.out.print("\nSuccessfully added:");
    Admin();
    }
    else{
    if(row == Product.length-1){
    System.out.print("\nUnknown Product\n");
    break stop3;
    }
    }
    }






    System.out.print("Try Again? (y/n): ");
    String TryAgainString = write.next();

    do{


    if(TryAgainString.length()== 1){

    TryAgain = TryAgainString.charAt(0);

    if(TryAgain == 'y' || TryAgain == 'Y' || TryAgain == 'n'|| TryAgain== 'N'){

    x= 1;

    }

    else{
    System.out.print("Invalid Input....\n");
    System.out.print("Try Again? (y/n): ");
    TryAgainString =write.next();
    x=0;

    }


    }
    else {
    System.out.print("Invalid Input....\n");
    System.out.print("Try Again? (y/n): ");
    TryAgainString =write.next();
    x=0;
    }

    }while(x==0);
    if (TryAgain=='n' || TryAgain=='N'){
    Admin();
    }

    }while (TryAgain == 'y' || TryAgain == 'Y');




    }
    else if (AdminTransChar == 'c' || AdminTransChar=='C'){
    //delete

    do{

    System.out.print("\nLIST OF PRODUCT");
    System.out.print("\nDELETE PRODUCT\n");
    for(int row = 0 ;row <Product.length; row++) {
    for (int col = 0 ; col <4 ; col++){
    if(Product[row][col].equals("")){
    }
    else{
    System.out.print(Product[row][col]+"\t");
    }
    }
    if(!Product[row][0].equals("")) {
    System.out.println();
    }
    }
    System.out.print("\n----------------------------------------------------------------------------");
    System.out.print("\nEnter Product Name : ");
    String productdelete= write.next();

    stop7:
    for(int row = 0 ;row <Product.length; row++) {

    if (Product[row][0].equalsIgnoreCase(productdelete)){

    Product[row][0] = "";
    Product[row][1] = "";
    Product[row][2] = "";
    Product[row][3] = "";
    System.out.print("\nSuccessfully deleted\n");
    break stop7;
    }
    else{
    if(row == Product.length-1){
    System.out.print("\nUnknown Product\n");
    break stop7;
    }
    }


    }









    System.out.print("Try Again? (y/n): ");
    String TryAgainString = write.next();

    do{


    if(TryAgainString.length()== 1){

    TryAgain = TryAgainString.charAt(0);

    if(TryAgain == 'y' || TryAgain == 'Y' || TryAgain == 'n'|| TryAgain== 'N'){

    x= 1;

    }

    else{
    System.out.print("Invalid Input....\n");
    System.out.print("Try Again? (y/n): ");
    TryAgainString =write.next();
    x=0;

    }


    }
    else {
    System.out.print("Invalid Input....\n");
    System.out.print("Try Again? (y/n): ");
    TryAgainString =write.next();
    x=0;
    }

    }while(x==0);
    if (TryAgain=='n' || TryAgain=='N'){
    Admin();
    }

    }while (TryAgain == 'y' || TryAgain == 'Y');
    }

    else if (AdminTransChar == 'x' || AdminTransChar=='X'){
    LogInForm();

    }

    else{
    System.out.print("\nInvalid Choice");
    Admin();

    }
    }

    else{
    System.out.print("\nInvalid You Input String\n");
    Admin();


    }
















    } // end of admin form


    public static void Casher(){
    char TryAgain= 'y';
    int x ;
    System.out.print("\n\t\t\tCASHER");

    System.out.print("\n\nWhat Do You want To do?");;

    System.out.print("\n\n[a] Purchase Items");;
    System.out.print("\n[x] LogOut");

    System.out.print("\nEnter Choice :");
    String CasherTrans = write.next();
    System.out.print("\n----------------------------------------------------------------------------");
    if(CasherTrans.length()==1 ){
    char CasherTransChar = CasherTrans.charAt(0);
    if (CasherTransChar == 'a' || CasherTransChar == 'A'){
    double TOTAL= 0;
    do{

    do{
    System.out.print("\nLIST OF PRODUCT");
    System.out.print("\nPURCHASE PRODUCT\n");
    for(int row = 0 ;row <Product.length; row++) {
    for (int col = 0 ; col <4 ; col++){
    if(Product[row][col].equals("")){
    }
    else{
    System.out.print(Product[row][col]+"\t");
    }
    }
    if(!Product[row][0].equals("")) {
    System.out.println();
    }
    }
    System.out.print("\n----------------------------------------------------------------------------");
    System.out.print("\nEnter Product name : ");
    String productname = write.next();



    stop3:
    for(int row = 0 ;row <Product.length; row++) {
    if (Product[row][0].equalsIgnoreCase(productname)){


    for(int row2 = 0 ;row2 <POS.length; row2++) {


    if (POS[row2][1].equals(productname)){
    int quantity = Integer.parseInt(Product[row][3]);
    System.out.print("Enter Product Quantity : ");
    int getprod= write.nextInt();
    int totalquantity = quantity - getprod;
    Product[row][3] = String.format("%d",totalquantity);
    int sumquan = Integer.parseInt(POS[row2][0]);
    Double price = Double.parseDouble(Product[row][1]);
    sumquan = sumquan+getprod;
    Double sumprice = sumquan * price;
    POS [row2][0] = String.format("%d",sumquan);
    POS [row2][1] = productname;
    POS [row2][2] = String.format("%.2f",sumprice);
    break stop3;
    }
    else if (POS[row2][0].equals("0")){
    int quantity = Integer.parseInt(Product[row][3]);
    System.out.print("Enter Product Quantity : ");
    int getprod= write.nextInt();
    int totalquantity = quantity - getprod;
    Product[row][3] = String.format("%d",totalquantity);
    int sumquan = Integer.parseInt(POS[row2][0]);
    Double price = Double.parseDouble(Product[row][1]);
    sumquan = sumquan+getprod;
    Double sumprice = sumquan * price;
    POS [row2][0] = String.format("%d",sumquan);
    POS [row2][1] = productname;
    POS [row2][2] = String.format("%.2f",sumprice);
    break stop3;
    }
    else{

    if(row2 == POS.length-1){
    System.out.print("You cannot Buy more than 10 product");
    break stop3;
    }
    }

    }



    }
    else{
    if(row == Product.length-1){
    System.out.print("\nUnknown Product\n");
    break stop3;
    }
    }



    }


    System.out.print("\nDo you want to buy more? (y/n): ");
    String TryAgainString = write.next();

    do{
    if(TryAgainString.length()== 1){
    TryAgain = TryAgainString.charAt(0);
    if(TryAgain == 'y' || TryAgain == 'Y' || TryAgain == 'n'|| TryAgain== 'N'){
    x= 1;
    }
    else{
    System.out.print("\nInvalid Input....\n");
    System.out.print("Try Again? (y/n): ");

    TryAgainString =write.next();
    x=0;
    }
    }
    else {
    System.out.print("\nInvalid Input....\n");
    System.out.print("Try Again? (y/n): ");
    TryAgainString =write.next();
    x=0;
    }
    }while(x==0);
    }while (TryAgain == 'y' || TryAgain == 'Y');






    System.out.print("\n----------------------------------------------------------------------------");

    if (TryAgain =='n' || TryAgain =='N'){
    System.out.print("\n======================");
    System.out.print("\nPRODUCT PURCHASED\n\n");
    stop4:
    for(int row = 0;row<POS.length;row++){
    for(int col = 0;col<3;col++){


    if((POS[row][col].equals("0")) || (POS[row][col].equals(""))){
    break stop4;
    }
    else{
    System.out.print(POS[row][col]+"\t");

    }

    }
    System.out.println();
    Double totalprice = Double.parseDouble(POS[row][2]);
    TOTAL = totalprice + TOTAL;




    }
    System.out.print("\n======================");

    Double percent = TOTAL * 0.12;
    Double withvat = TOTAL + percent;
    System.out.printf("\nTOTAL PRICE : %.2f" , withvat);

    System.out.print("\nEnter You Cash : ");
    Double Cash = write.nextDouble();
    System.out.printf("\nNonVatable : %.2f", TOTAL);
    System.out.printf("\nVAT : %.2f", percent);
    Double Change = Cash - withvat;
    System.out.printf("\nChange : %.2f",Change);


    System.out.print("\n======================");
    }

    System.out.print("\nAnother Transaction? (y/n): ");
    String TryAgainString = write.next();

    do{
    if(TryAgainString.length()== 1){
    TryAgain = TryAgainString.charAt(0);
    if(TryAgain == 'y' || TryAgain == 'Y' || TryAgain == 'n'|| TryAgain== 'N'){
    x= 1;
    }
    else{
    System.out.print("\nInvalid Input....\n");
    System.out.print("Try Again? (y/n): ");
    TryAgainString =write.next();
    x=0;
    }
    }
    else {
    System.out.print("\nInvalid Input....\n");
    System.out.print("Try Again? (y/n): ");
    TryAgainString =write.next();
    x=0;
    }
    }while(x==0);
    TOTAL = 0;
    for(int row = 0 ;row <POS.length; row++) {
    for (int col = 0 ; col <3 ; col++){
    if(col==0){
    POS[row][col] = "0";
    }
    else{
    POS[row][col] = "";
    }
    }
    }
    }while (TryAgain == 'y' || TryAgain == 'Y');
    if (TryAgain =='n' || TryAgain =='N'){
    Casher();
    }
    }

    else if (CasherTransChar == 'x' || CasherTransChar=='X'){
    LogInForm();
    }
    else{
    System.out.print("\nInvalid Letter");
    Casher();
    }
    }
    else{
    System.out.print("\nInvalid You Input String");
    Casher();
    }

    }




    public static void productdata(){

    for(int row = 0 ;row <Product.length; row++) {
    for (int col = 0 ; col <4 ; col++){
    Product[row][col] = "";

    }
    }

    for(int row = 0 ;row <POS.length; row++) {
    for (int col = 0 ; col <3 ; col++){
    if(col==0){
    POS[row][col] = "0";
    }
    else{
    POS[row][col] = "";
    }
    }
    }
    Product [0] [0] = "PeeWeeBq";
    Product[0] [1] = "7";
    Product[0] [2] = "Barbeque";
    Product [0] [3] = "20";

    Product [1] [0] = "PeeWeeChez";
    Product [1] [1] = "8";
    Product [1] [2] = "Cheese";
    Product [1] [3] = "20";

    Product [2] [0] = "PiattosC";
    Product [2] [1] = "13";
    Product [2] [2] = "Cheese";
    Product [2] [3] = "20";

    Product [3] [0] = "Vcut";
    Product [3] [1] = "7";
    Product [3] [2] = "garlic";
    Product [3] [3] = "20";

    Product [4] [0] = "NovaChez";
    Product [4] [1] = "14";
    Product [4] [2] = "cheese";
    Product [4] [3] = "20";

    Product [5] [0] = "NovaP";
    Product [5] [1] = "14";
    Product [5] [2] = "Pizza";
    Product [5] [3] = "20";

    Product [6] [0] = "NovaG";
    Product [6] [1] = "14";
    Product [6] [2] = "Garlic";
    Product [6] [3] = "20";

    Product [7] [0] = "TobleroneB";
    Product [7] [1] = "35";
    Product [7] [2] = "big";
    Product [7] [3] = "20";

    Product [8] [0] = "TobleroneS";
    Product [8] [1] = "20";
    Product [8] [2] = "Small";
    Product [8] [3] = "20";

    Product [9] [0] = "Hersheys";
    Product [9] [1] = "65";
    Product [9] [2] = "Chocolate";
    Product [9] [3] = "20";

    Product [10] [0] = "LoadedC";
    Product [10] [1] = "6";
    Product [10] [2] = "Chocolate";
    Product [10] [3] = "20";

    Product [11] [0] = "LoadedM";
    Product [11] [1] = "6";
    Product [11] [2] = "Milk";
    Product [11] [3] = "20";

    Product [12] [0] = "LoadedM";
    Product [12] [1] = "6";
    Product [12] [2] = "Mocha";
    Product [12] [3] = "20";

    Product [13] [0] = "LoadedCM";
    Product [13] [1] = "6";
    Product [13] [2] = "Caramel";
    Product [13] [3] = "20";

    Product [14] [0] = "PillowsC";
    Product [14] [1] = "6";
    Product [14] [2] = "Chocolate";
    Product [14] [3] = "20";

    Product [15] [0] = "HappyR";
    Product [15] [1] = "20";
    Product [15] [2] = "red";
    Product [15] [3] = "20";

    Product [16] [0] = "HappyG";
    Product [16] [1] = "20";
    Product [16] [2] = "Green";
    Product [16] [3] = "20";

    Product [17] [0] = "HappyB";
    Product [17] [1] = "20";
    Product [17] [2] = "Blue";
    Product [17] [3] = "20";

    Product [18] [0] = "HappyW";
    Product [18] [1] = "20";
    Product [18] [2] = "White";
    Product [18] [3] = "20";

    Product [19] [0] = "HiHoBS";
    Product [19] [1] = "20";
    Product [19] [2] = "brown";
    Product [19] [3] = "20";

    Product [19] [0] = "HiHoBB";
    Product [19] [1] = "24";
    Product [19] [2] = "brown";
    Product [19] [3] = "20";

    Product [20] [0] = "HiHoB";
    Product [20] [1] = "26";
    Product [20] [2] = "black";
    Product [20] [3] = "20";

    Product [21] [0] = "EcoWashBlue";
    Product [21] [1] = "95";
    Product [21] [2] = "blue";
    Product [21] [3] = "20";

    Product [22] [0] = "RoralRed";
    Product [22] [1] = "50";
    Product [22] [2] = "red";
    Product [22] [3] = "20";

    Product [23] [0] = "Anisso";
    Product [23] [1] = "50";
    Product [23] [2] = "red";
    Product [23] [3] = "20";

    Product [24] [0] = "TideB";
    Product [24] [1] = "51";
    Product [24] [2] = "Blue";
    Product [24] [3] = "20";

    Product [25] [0] = "ArielG";
    Product [25] [1] = "26";
    Product [25] [2] = "Green";
    Product [25] [3] = "20";

    Product [26] [0] = "ChampionG";
    Product [26] [1] = "25";
    Product [26] [2] = "Green";
    Product [26] [3] = "20";

    Product [27] [0] = "ChampionB";
    Product [27] [1] = "25";
    Product [27] [2] = "Blue";
    Product [27] [3] = "20";

    Product [28] [0] = "BonuxY";
    Product [28] [1] = "7";
    Product [28] [2] = "DetergentPowerder";
    Product [28] [3] = "20";

    Product [29] [0] = "CleanAndCare";
    Product [29] [1] = "9";
    Product [29] [2] = "red";
    Product [29] [3] = "20";

    Product [30] [0] = "MAMApowderB";
    Product [30] [1] = "20";
    Product [30] [2] = "blue";
    Product [30] [3] = "20";

    Product [31] [0] = "MAMApowderY";
    Product [31] [1] = "20";
    Product [31] [2] = "yellow";
    Product [31] [3] = "20";

    Product [32] [0] = "BulkPowder";
    Product [32] [1] = "13";
    Product [32] [2] = "W/Soap";
    Product [32] [3] = "20";

    Product [33] [0] = "DownyF";
    Product [33] [1] = "7";
    Product [33] [2] = "Fragrance";
    Product [33] [3] = "20";

    Product [34] [0] = "DownyB";
    Product [34] [1] = "8";
    Product [34] [2] = "1Banlaw";
    Product [34] [3] = "20";


    Product [35] [0] = "Lix";
    Product [35] [1] = "20";
    Product [35] [2] = "MakeClothesWhite";
    Product [35] [3] = "20";


    Product [36] [0] = "AlaskaC";
    Product [36] [1] = "24";
    Product [36] [2] = "Condensada";
    Product [36] [3] = "20";

    Product [37] [0] = "AlaskaE";
    Product [37] [1] = "32";
    Product [37] [2] = "Evaporada";
    Product [37] [3] = "20";

    Product [38] [0] = "Alpine";
    Product [38] [1] = "25";
    Product [38] [2] = "FreshMilk";
    Product [38] [3] = "20";

    Product [39] [0] = "Ajinomoto";
    Product [39] [1] = "20";
    Product [39] [2] = "Seasoning";
    Product [39] [3] = "20";

    Product [40] [0] = "AjiGinisa";
    Product [40] [1] = "18";
    Product [40] [2] = "Seasoning";
    Product [40] [3] = "20";

    Product [41] [0] = "KnorrP";
    Product [41] [1] = "8";
    Product [41] [2] = "Pork";
    Product [41] [3] = "20";

    Product [42] [0] = "KnorrC";
    Product [42] [1] = "10";
    Product [42] [2] = "Chicken";
    Product [42] [3] = "20";

    Product [43] [0] = "KnorrB";
    Product [43] [1] = "13";
    Product [43] [2] = "Beef";
    Product [43] [3] = "20";

    Product [44] [0] = "Tomi";
    Product [44] [1] = "19";
    Product [44] [2] = "SweetCorn";
    Product [44] [3] = "20";

    Product [45] [0] = "AlmondBreezeV";
    Product [45] [1] = "29";
    Product [45] [2] = "Vanilla";
    Product [45] [3] = "20";

    Product [46] [0] = "AlmondBreezeM";
    Product [46] [1] = "29";
    Product [46] [2] = "Milk";
    Product [46] [3] = "20";

    Product [47] [0] = "AlmondBreezeC";
    Product [47] [1] = "29";
    Product [47] [2] = "chocolate";
    Product [47] [3] = "20";

    Product [48] [0] = "AlmondBreezeCm";
    Product [48] [1] = "29";
    Product [48] [2] = "Caramel";
    Product [48] [3] = "20";

    Product [49] [0] = "AlmondBreezeS";
    Product [49] [1] = "29";
    Product [49] [2] = "Strawberry";
    Product [49] [3] = "20";

    Product [50] [0] = "ZestoA";
    Product [50] [1] = "7";
    Product [50] [2] = "Apple";
    Product [50] [3] = "20";

    Product [51] [0] = "ZestoO";
    Product [51] [1] = "7";
    Product [51] [2] = "Orange";
    Product [51] [3] = "20";

    Product [52] [0] = "ZestoD";
    Product [52] [1] = "7";
    Product [52] [2] = "Dalandan";
    Product [52] [3] = "20";

    Product [52] [0] = "ZestoM";
    Product [52] [1] = "7";
    Product [52] [2] = "Mango";
    Product [52] [3] = "20";

    Product [53] [0] = "ZestoS";
    Product [53] [1] = "7";
    Product [53] [2] = "Strawberry";
    Product [53] [3] = "20";

    Product [54] [0] = "IceCreamL";
    Product [54] [1] = "90";
    Product [54] [2] = "Langka";
    Product [54] [3] = "20";

    Product [55] [0] = "IceCreamM";
    Product [55] [1] = "126";
    Product [55] [2] = "mangga";
    Product [55] [3] = "20";

    Product [56] [0] = "IceCreamU";
    Product [56] [1] = "120";
    Product [56] [2] = "ube";
    Product [56] [3] = "20";

    Product [57] [0] = "IceCreamChez";
    Product [57] [1] = "126";
    Product [57] [2] = "cheese";
    Product [57] [3] = "20";

    Product [58] [0] = "IceCreamC";
    Product [58] [1] = "115";
    Product [58] [2] = "chocolate";
    Product [58] [3] = "20";

    Product [59] [0] = "CreamM";
    Product [59] [1] = "108";
    Product [59] [2] = "mocha";
    Product [59] [3] = "20";

    Product [60] [0] = "Selecta3in1";
    Product [60] [1] = "308";
    Product [60] [2] = "3in1";
    Product [60] [3] = "20";

    Product [61] [0] = "SelectaC";
    Product [61] [1] = "25";
    Product [61] [2] = "Cornetto";
    Product [61] [3] = "20";

    Product [62] [0] = "SelectaP";
    Product [62] [1] = "35";
    Product [62] [2] = "Pinipig";
    Product [62] [3] = "20";

    Product [63] [0] = "Magnolia2in1";
    Product [63] [1] = "130";
    Product [63] [2] = "2in1";
    Product [63] [3] = "20";

    Product [64] [0] = "SelectaM";
    Product [64] [1] = "55";
    Product [64] [2] = "magnum";
    Product [64] [3] = "20";

    Product [65] [0] = "MagnoliaCV";
    Product [65] [1] = "450";
    Product [65] [2] = "CoffeeVienna";
    Product [65] [3] = "20";

    Product [66] [0] = "MagnoliaCC";
    Product [66] [1] = "387";
    Product [66] [2] = "CookiesAndCream";
    Product [66] [3] = "20";

    Product [67] [0] = "MagnoliaDDL";
    Product [67] [1] = "350";
    Product [67] [2] = "DulceDeLetche";
    Product [67] [3] = "20";

    Product [68] [0] = "MagnoliaM";
    Product [68] [1] = "325";
    Product [68] [2] = "Macapuno";
    Product [68] [3] = "20";

    Product [69] [0] = "MagnoliaP";
    Product [69] [1] = "390";
    Product [69] [2] = "Pastillas";
    Product [69] [3] = "20";

    Product [70] [0] = "LadysChoice";
    Product [70] [1] = "40";
    Product [70] [2] = "IodizedSalt";
    Product [70] [3] = "20";

    Product [71] [0] = "DatuPutiP";
    Product [71] [1] = "15";
    Product [71] [2] = "Patis";
    Product [71] [3] = "20";

    Product [72] [0] = "DatuPutiS";
    Product [72] [1] = "15";
    Product [72] [2] = "toyo";
    Product [72] [3] = "20";

    Product [73] [0] = "DatuPutiV";
    Product [73] [1] = "16";
    Product [73] [2] = "Suka";
    Product [73] [3] = "20";

    Product [74] [0] = "AngelE";
    Product [74] [1] = "25";
    Product [74] [2] = "EvaporatedMilk";
    Product [74] [3] = "20";

    Product [75] [0] = "Ivory";
    Product [75] [1] = "10";
    Product [75] [2] = "ToiletSoap";
    Product [75] [3] = "20";

    Product [76] [0] = "GreatTasteCR";
    Product [76] [1] = "26";
    Product [76] [2] = "CoffeeRefill";
    Product [76] [3] = "20";

    Product [77] [0] = "CDOLm";
    Product [77] [1] = "45";
    Product [77] [2] = "LuncheonMeat";
    Product [77] [3] = "20";

    Product [78] [0] = "Eveready";
    Product [78] [1] = "20";
    Product [78] [2] = "Battery";
    Product [78] [3] = "20";

    Product [79] [0] = "Tiger";
    Product [79] [1] = "16";
    Product [79] [2] = "Brown";
    Product [79] [3] = "20";

    Product [80] [0] = "Phillips";
    Product [80] [1] = "21";
    Product [80] [2] = "SmallBattery";
    Product [80] [3] = "20";

    Product [81] [0] = "LoafBread";
    Product [81] [1] = "28";
    Product [81] [2] = "Bread";
    Product [81] [3] = "20";

    Product [82] [0] = "Nescafe";
    Product [82] [1] = "7";
    Product [82] [2] = "Classic";
    Product [82] [3] = "20";

    Product [83] [0] = "GreatTasteP";
    Product [83] [1] = "7";
    Product [83] [2] = "Premium";
    Product [83] [3] = "20";

    Product [84] [0] = "SwiftJuicy";
    Product [84] [1] = "29";
    Product [84] [2] = "hotdog";
    Product [84] [3] = "20";

    Product [85] [0] = "ElRancho";
    Product [85] [1] = "29";
    Product [85] [2] = "footlong";
    Product [85] [3] = "20";

    Product [86] [0] = "Cococrunch";
    Product [86] [1] = "79";
    Product [86] [2] = "brown";
    Product [86] [3] = "20";

    Product [87] [0] = "Funtastyk";
    Product [87] [1] = "45";
    Product [87] [2] = "tocino";
    Product [87] [3] = "20";

    Product [88] [0] = "CDOML";
    Product [88] [1] = "35";
    Product [88] [2] = "MeatLoaf";
    Product [88] [3] = "20";

    Product [89] [0] = "Hans";
    Product [89] [1] = "45";
    Product [89] [2] = "PorkAndBeans";
    Product [89] [3] = "20";

    Product [90] [0] = "EthylAlcohol";
    Product [90] [1] = "26";
    Product [90] [2] = "green";
    Product [90] [3] = "20";
    }



    } // end of class

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default Re: Simple POS System...

    1. How is this related to JCreator?

    2. Did you have a question?

    3. Look around the site and discover how to use the code tags.

    4. Don't post to old dead threads -- the other post you made has been removed and the thread locked.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 3
    Last Post: 04-04-2012, 12:38 AM
  2. system.out.printf versus system.out.format
    By bigsonny in forum New To Java
    Replies: 10
    Last Post: 06-21-2011, 10:40 PM
  3. Simple client and server chat system
    By danborgir in forum New To Java
    Replies: 1
    Last Post: 04-26-2011, 01:34 PM
  4. Best way forward for simple CRM System?
    By eb_dev in forum Advanced Java
    Replies: 0
    Last Post: 03-15-2011, 10:47 AM
  5. Simple POS System in Java
    By amsroxy1125 in forum New To Java
    Replies: 5
    Last Post: 12-08-2009, 10:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •