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 mainString args
Import java.util;
import java.util.Scanner;
import java.text.DecimalFormat;
DecimalFormat cash new DecimalFormat ;
Scanner keyboard new Scanner Systemin;
Pizza new Pizza ;
String firstName;
Boolean discount false;
int inches;
Char crustType;
Double price;
Final double TAXRATE ;
Double tax;
Char choice;
String input;
String toppings "Cheese ;
int numberOfToppings ;
System.out.println Welcome to HackPizza Joint";
System.out.print Enter your first name: ;
firstName keyboard.nextLine;
System.out.println Pizza Size inches Price";
System.out.println ;
System.out.println ;
System.out.println ;
System.out.println ;
System.out.println What size pizza would you like?";
System.out.print or enter the number only: ;
inches keyboard.nextInt;
if inches
order.setSize ;
order.setPrice ;
else if inches
order.setSize ;
order.setPrice ;
else if inches
order.setSize ;
order.setPrice ;
else if inches
order.setSize ;
order.setprice ;
else
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
