Pizza - /* / Pizza.java Authors: Lewis and Loftus / /...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // Pizza.java Authors: Lewis and Loftus // // Solution to Programming Project 9.11 //******************************************************************** import java.util.ArrayList; import java.text.NumberFormat; //******************************************************************** // Defines constants used in the PizzaOrderPortal. Encapsulates the // pizza data type. //******************************************************************** public class Pizza { int size; int crust; int sauce; ArrayList cheeses; ArrayList meatToppings; ArrayList veggieToppings; static final float BASE_PRICE = 5.00f; static final float SIZE_PRICE_INCREMENT = 1.0f; static final float PRICE_PER_TOPPING = 0.50f; static final float PRICE_PER_CHEESE = 1.00f; static final String[] SIZES = { "Single Serving", "Small", "Medium", "Large" }; static final String[] CRUST_TYPES = { "New York-style", "Chicago-style", "Neapolitan-style", "Honey Whole Wheat",
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Page1 / 2

Pizza - /* / Pizza.java Authors: Lewis and Loftus / /...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online