Hey there, I'm trying to write a program that includes the decisions.
in this program I writing, I have to do a review of concert dates. what I'm currently working on now is that - when the person order tickets by typing in their account number, this account number will be checked against a series of a known accounts.
I need think I need to a separate method that prints a receipt confirming the seats booked.
this what I have currently.
how do I make the accounts and also how do I print receipts in another method?
public static void main (String param)
public static void concert()
ordertickets = JOptionPane.showInputDialog("Order tickets now.\nType in the number of a band\n\n 1. The xx \n 2. Muse \n 3. Radiohead");
tickets = Integer.parseInteger(ordertickets);
case 1: JOptionPane.showMessageDialog(null, "10 pounds - General Admission");
case 2: JOptionPane.showMessageDialog(null, "8 pounds - General Admission");
case 3: JOptionPane.showMessageDialog(null, "6 pounds - General Admission");
default: JOptionPane.showMessageDialog(null, " Error. Please type in the number of group listed.");
hate to be a pain in the **** but what have you actually tried buddy?
How are the existing accounts stores? A file? A database? Input from User?