import java.util.Scanner; public class LuigisPizzaProgram { public static void main(String[] args) { System.out.println("Luigi's Pizza "); System.out.println("-------------------------------------------"); System.out.println(" S(SML) M(MED) L(LRG)"); System.out.println("1. Cheese 5.00 7.50 10.00 "); System.out.println("2. Pepperoni 5.75 8.63 11.50 "); System.out.println("3. Combination 6.50 9.75 13.00 "); System.out.println("4. Vegetarian 7.25 10.88 14.50 "); System.out.println("5. Meat Lovers 8.00 12.00 16.00 "); Scanner keyboard = new Scanner(System.in); System.out.println("What kind of pizza do you want (1-5) ?"); int kind = keyboard.nextInt(); System.out.println("What size of pizza do you want (S, M, L) ?"); char size = keyboard.next().charAt(0); float cost = 4.25f + (kind * 0.75f); if (size == 'M') cost *= 1.5f; else if (size == 'L') cost *= 2; System.out.println("The cost of the pizza is: $" + cost); System.out.println("The price with tax is: $" + cost*1.13); } }