Hi, I am in an Intro to Programming Class and am working on an assignment. We must have three classes, Main, Order, and GUI. I need help with the set and get methods etc to operate this program.
this is my code for one of my classes. i am not asking for you to do the rest for me, i just need help starting on my other two classes and how to put it all together, or if anyone knows any examples of this type of program that I could use for reference? I attached the program requirements. any help/guidance will be GREATLY appreciated.
thank you.
CODE
import javax.swing.JOptionPane;
public class LS4309clsMain
{
public static void main (String args[])
{
String strInput;
String strCustomerID;
String strCustomerOrderID;
String strProductCategory;
String strQuantitySold;
String strUnitPrice;
String strOutput;
strCustomerID = JOptionPane.showInputDialog ("Enter the Customer ID");
strCustomerOrderID = JOptionPane.showInputDialog ("Enter the Customer Order ID");
strProductCategory = JOptionPane.showInputDialog ("Enter the Product Category\n1 = Beverages 2 = Condiments 3 = Confections\n4 = Diary 5 = Grains 6 = Meat/Poultry\n7 = Produce 8 = Seafood");
strQuantitySold = JOptionPane.showInputDialog ("Enter the Quantity Sold");
strUnitPrice = JOptionPane.showInputDialog ("Enter the Unit Price");
strOutput = "Customer ID: " + strCustomerID + "\nOrder Number: " + strCustomerOrderID + "\n" + strQuantitySold + " " + strProductCategory + " sold at " + strUnitPrice;
JOptionPane.showMessageDialog(null, strOutput, "LS4309clsMain", JOptionPane.INFORMATION_MESSAGE);
} // End Method - main
} // End Class LS4309clsMain