Basic Java Programming Final
//Import Classes
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
//Class spacifics for making Dollars and Cents
import java.text.NumberFormat;
//Begin the ATM
public class mcd extends JPanel implements ActionListener,ItemListener
{
//Create Global variables and objects
JButton Start,burger1,burger2,burger3, button, next, addorder, paynow, addedit,removeord,ccpay,capay,
coke, sprite, drp, root,orange,ultra,large,medium,small,amex,visa,mc,atm,back,take,insert;
String totalorder, orders,ord1,ord2,ord3, burg1, burg2, burg3, lett, toma, ketc, must, oni, pick, che,ttprice,
coked,sprited,drpd,rootd,oranged,ultrad,larged,mediumd,smalld,ccnum,s,currencyOut,bill,ammtdue;
JTabbedPane tabbedPane;
JScrollPane panel8bta;
JPanel panel8t, panel8b,panel8bb,panel8bt;
JTextArea welcometxt, order,torders, receipt,bye;
JTextField amtdue;
JCheckBox lettuce, tomatos, ketchup, mustard, onions, pickles, cheese;
int c,l,t,k,m,o,p,ordernum, item,ptype,custnum;
double bprice,sprice,stprice,o1p,o2p,o3p,tprice,currency,amtdu,billa,billb;
//Array to hold the check boxes on condiment selection.
int[][] checks;
//Create GUI
public mcd() {
//Make all variables 0 or equivlent.
billa=0;
billb=0;
c= (-1);
l= -1;
t= -1;
k= -1;
m= -1;
o= -1;
p= -1;
burg1="";
burg2="";
burg3="";
lett="";
toma="";
ketc="";
must="";
oni="";
pick="";
che="";
orders="";
ultrad =...
Please login to view the full essay...