1. Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as:

    All that and more! Registration is quick, simple and absolutely free. Join our community today!

Help how to add items ?

Discussion in 'Coding, Programming' started by cloudfiers, Jan 27, 2015.

  1. help po mga sir papano po ba magdagdag nang items hanggang 10 items po yung ibaba po bali po ganito
    flow ng gagawin ko
    first pipili ako kung anong gusto ko halimbawa 1 pinili ko using case statement tapos ilalabas niya yung pinili ko at
    ilalagay ko yung amount nang pera ko halimbawa 52 yung amaount nang pera ko bali ang change ko nalang ay 2 pesos at kung kulang naman ang pera binigay sasabihin niya ay insuficient money at saka niya ioutput overall bali ganito iyon yung name nang product, price , amount nang pera mo at ang change mo.. sana may makatulong sa akin maraming salamat po...



    int userQty1 = Integer.parseInt(JOptionPane.showInputDialog(
    "Product ID Product Name Product Quantity Product Price"
    +prodID1 + " " +prodName1 + " " + prodQty1 + " " +prodPrice1 "\n"
    + and so on until prod5));

    switch(prodID)
    case '1':
    prodName = "Nido";
    prodQty = 100;
    prodPrice = 50.50;
    break;

    case '2':
    prodName = "Milo";
    prodQty = 150;
    prodPrice = 60.80;
    break;
     
    ghuy likes this.
  2. Anung language yan?
     
  3. fazz12

    fazz12 Addict Established

    ghuyghuy - java po iyan sir for sure.
    cloudfierscloudfiers - need mo pa po ba din ng help dito hanggang ngayon? or nasolve mo na?
     
  4. ok na po salamat po..maraming salamat malamg po :)
     
Tags / Keywords: