Question: public class Pizzaproject { public static void main ( String [ ] args ) { Import java.util; import java.util.Scanner; import java.text.DecimalFormat; DecimalFormat cash = new

public class Pizzaproject {
public static void main(String[] args){
Import java.util;
import java.util.Scanner;
import java.text.DecimalFormat;
DecimalFormat cash = new DecimalFormat ("");
Scanner keyboard = new Scanner (System.in);
Pizza = new Pizza ();
String firstName;
Boolean discount = false;
int inches;
Char crustType;
Double price;
Final double TAX_RATE =07;
Double tax;
Char choice;
String input;
String toppings = "Cheese ";
int numberOfToppings =0;
System.out.println ("Welcome to Hack4Pizza Joint");
System.out.print ("Enter your first name: ");
firstName = keyboard.nextLine();
System.out.println ("Pizza Size (inches) Price");
System.out.println ("8300");
System.out.println ("10500");
System.out.println ("12600");
System.out.println ("14700");
System.out.println ("What size pizza would you like?");
System.out.print ("8,10,12, or 14(enter the number only): ");
inches = keyboard.nextInt();
if (inches ==8)
{
order.setSize (8);
order.setPrice (-1);
}
else if (inches ==10)
{
order.setSize (10);
order.setPrice (0);
}
else if (inches ==12)
{
order.setSize (12);
order.setPrice (3);
}
else if (inches ==14)
{
order.setSize (14);
order.setprice (5);
}
else
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!