Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Java Programming (Class Assignment)

julesxdujour
julesxdujour 


Mama Mia Pizzaria program as shown in the notes. Turn in the following files: PizzaOrder.java - this is your main program. PizzaOrderGUI.java - this sets up the panels on the window. TitlePanel.java - this is the title of the program. InfoPanel.java - this contains the price information. SizePanel.java - this contains the size radio buttons, and ToppingsPanel.java - this contains the toppings check boxes. Your program should work like the Brandi’s Bagel House application on page 426 of your textbook using the notes that I provided in this lesson. Your program must have the following: Six Java source code files as listed above. The program must start up centered on the screen. All message dialogs must pop-up centered on the program. If the user does not select a pizza size, an error message dialog must pop-up to tell the user. Read and follow my notes. Turn in the Java source code (.java) files for the programming assignment using the PPC 7 link below. There will be six files for this link. NEVER TURN IN THE BYTECODE FILE I can only grade Java source code (.java) files. I cannot grade bytecode (.class) files Full Assignment is Attached Attachments Tags Clarifications

Answers

Mama Mia Pizzaria - Java

dickersonka
dickersonka 



Attached is the eclipse project with source code and lots of comments... Attachments
Pizzaria.zip (12 K) Download










Preview
setBorder(BorderFactory.createEmptyBorder(5,10,10,5)); //Add the labels for pizza prices add(new JLabel("Small:")); add(new JLabel("$4.99")); add(new JLabel("Medium:")); add(new JLabel("$6.99"));

Preview
entry point for the program * Starts the pizza order gui */ public static void main(String[] args) {

Preview
+ tax; //Get message to display String message = getFormattedMessage(subTotal, tax, total); //Show total dialog JOptionPane.showMessageDialog(PizzaOrderGUI.this, message); } } //Helper method for formatting the output to the message box private String getFormattedMessage(double subTotal, double tax, double total){ //formats

Preview
pizza size selection */ public class SizePanel extends JPanel { //Radio buttons private JRadioButton rdoSmall; private JRadioButton rdoMedium; private JRadioButton rdoLarge; //Constants private static final double SMALLPRICE = 4.99; private static final double MEDPRICE = 6.99; private static final double

Preview
/** * Panel for title of the pizza shop */ public class TitlePanel extends JPanel{

Preview
*/ public double getToppingsCost(){ double total = 0.00; //Adds total for checkboxes if( cbPepperoni.isSelected()){ total += TOPPING_COST; } if( cbSausage.isSelected()){ total += TOPPING_COST; } if( cbPineapple.isSelected()){ total += TOPPING_COST; } if( cbExtraCheese.isSelected()){

Screenshots
Purchase Answer