What's new

Help how to add items ?

Status
Not open for further replies.

cloudfiers

Addict
Joined
Mar 21, 2012
Posts
264
Reaction
34
Points
122
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;
 
Dear cloudfiers,

Since 2 years have passed since the last reply in this thread, I am locking it to prevent necroposting. Feel free to start a new thread or contact any forum staff if you want this to be reopened.

Thread closed.
 
Status
Not open for further replies.
Back
Top