This tutorial will teach you how to make a Cake Shop Inventory Management System in Java step by step. This system will helpful you to learn Inventory Management System.
int sum = 0; if(chkCho.isSelected()) { String cho = "Chocolate cake"; int price = 1000; int qty = Integer.parseInt(txtCqty.getText()); int tot = price * qty; model = (DefaultTableModel)jTable1.getModel(); model.addRow(new Object[] { cho, price, qty, tot } ); } if(chkRed.isSelected()) { String crispy = "Red velvet cake"; int price = 1200; int qty = Integer.parseInt(txtRqty.getText()); int tot = price * qty; model = (DefaultTableModel)jTable1.getModel(); model.addRow(new Object[] { crispy, price, qty, tot } ); } if(chkCup.isSelected()) { String hotdeal = "Cupcake"; int price = 500; int qty = Integer.parseInt(txtCupqty.getText()); int tot = price * qty; model = (DefaultTableModel)jTable1.getModel(); model.addRow(new Object[] { hotdeal, price, qty, tot } ); } for(int i=0; i<jTable1.getRowCount(); i++) { sum = sum + Integer.parseInt(jTable1.getValueAt(i, 3).toString()); } txtbill.setText(Integer.toString(sum));
Initialize the employee number, Hourswork,and Hoursrate to calculate a grosswage use the following condition. if…
Act as a Java developer to create a program that calculates the gross wage for…
Initialize the employee number, Hourswork,and Hoursrate to calculate a grosswage use the following condition. if…
In this tutorial, we will teach you how to create a simple school management system…
I have design the Admin Basic templete using React MUI Design Admin Dashboard and Login.Here…
In this tutorial ,i am to going teach the Laravel Breeze.Laravel Breeze provides a simple…