logo

Pizza Order System : Project

11 Pages1011 Words95 Views
   

Added on  2020-07-23

Pizza Order System : Project

   Added on 2020-07-23

ShareRelated Documents
JAVA COURSEWORK
Pizza Order System : Project_1
TABLE OF CONTENTSPizza Order System.....................................................................................................................................2Code........................................................................................................................................................2
Pizza Order System : Project_2
Pizza Order SystemThe following code covers all the basic requirements that are needed as the users who want to order a pizza should ensure that the overall size for pizza choices is restricted to 6 whereas the user is freeto choose either zero, one or two toppings. As per the instructions, the toppings that can be used in this project are either pineapple or anchovy. The base and crust of pizza can also be classified in three types. So, all the required factors have been involved in the following code. Codeimport java.util.Scanner;public class Pizza{ String firstname = "xx"; char crusttype; String crust; String sauce; String base1 = "small"; String base2 = "medium"; String base3 = "large"; int inches = 0; double cost = 0.0; final double taxrate=0.00; double tax; double total; double Ltotal; int numberoftoppings =6; String Firsttopping = "pineapple"; String Secondtopping = "anchovy"; /** * Constructor for objects of class Pizza */ public Pizza() {
Pizza Order System : Project_3
// initScanner keyboard = new Scanner(System.in); }public static void main (String[] args) { Scanner keyboard = new Scanner(System.in); String firstname = "xx"; char crusttype; String crust; String sauce; String base1 = "small"; String base2 = "medium"; String base3 = "large"; int inches = 0; double cost = 0.0; final double taxrate=0.00; double tax; double total; double Ltotal; int numberoftoppings =6; String Firsttopping = "pineapple"; String Secondtopping = "anchovy"; System.out.println ("Enter the name :"); double distance = 0; System.out.println ("What size will you prefer???");inches = keyboard.nextInt(); if (inches == 10) { System.out.println("base1");} if (inches == 12) {
Pizza Order System : Project_4

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Java Program to Draw Shapes - Desklib
|10
|1283
|284