Name: Ayman Eathysham: Chocolate Room Billing System

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 45

Name: Ayman Eathysham

Although Java is usually associated with the World Wide Web (WWW), its
origin predates the Web. Java was primarily developed not for the internet,
but as a cross-platform technology for consumer electronic devices and
communication with remote devices. Until the late 80s, C++ was a popular
language to write object oriented programs. However, C++ was not platform
independent. A team at Sun Microsystems further enhanced Java to make it
platform-independent. Initially named as Oak in 1995, Java was officially
delivered to the world as a fully fledged platform-independent language.
The members of the Green Project, which included Patrick Naughton, Mike
Sheridan and James Gosling formed a group in 1991 to create products for the
slick electronics market, and developed the programming language Oak. Oak
was later renamed to Java because of patent conflicts.
The following are features of Java:
1. Robust: Java has the strong memory allocation and automatic garbage
collection mechanism. It provides the powerful exception handling and
type checking mechanism as compare to other programming languages.
Compiler checks the program whether there any error and interpreter
checks any run time error and makes the system secure from crash. All of
the above features make the java language robust.
2. Distributed: The widely used protocols like HTTP and FTP are developed
in java. Internet programmers can call functions on these protocols and
can get access the files from any remote machine on the internet rather
than writing codes on their local system.
3. Portable: The feature Write-once-run-anywhere makes the java language
portable provided that the system must have interpreter for the JVM.
Java also have the standard data size irrespective of operating system or
the processor. These features make java a portable language.
4. Dynamic: While executing the java program the user can get the required
files dynamically from a local drive or from a computer thousands of
miles away from the user just by connecting with the Internet.
5. Secure: Java does not use memory pointers explicitly. All the programs in
java are run under an area known as the sand box. Security manager
determines the accessibility options of a class like reading and writing a
file to the local disk. Java uses the public key encryption system to allow
the java applications to transmit over the internet in the secure
encrypted form. The bytecode Verifier checks the classes after loading.

Page 1 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

6. Performance: Java uses native code usage, and lightweight process


called threads. In the beginning interpretation of bytecode resulted the
performance slow but the advance version of JVM uses the adaptive and
just in time compilation technique that improves the performance.
7. Multithreaded: Java is also a Multithreaded programming language.
Multithreading means a single program having different threads
executing independently at the same time. Multiple threads execute
instructions according to the program code in a process or a program.
Multithreading works the similar way as multiple processes run on one
computer.
8. Interpreted: The interpreter program reads the source code and
translates it on the fly into computations. Thus, Java as an interpreted
language depends on an interpreter program.
Another advantage of Java as an interpreted language is its error
debugging quality. Due to this any error occurring in the program gets
traced. This is how it is different to work with Java.
9. Architecture Neutral: The compiler generates an architecture-neutral
object file format to enable a Java application to execute anywhere on
the network and then the compiled code is executed on many processors,
given the presence of the Java runtime system. Hence Java was designed
to support applications on network. This feature of Java has thrived the
programming language.

Java is an Object Oriented Programming Language(OOP). The following are


features of OOPs:
1. Abstraction: Abstraction is a process of identifying the relevant qualities
and behaviors an object should possess. In object-oriented software,
complexity is managed by using abstraction. Abstraction is a process that
involves identifying the critical behavior of an object and eliminating
irrelevant and complex details. A well thought-out abstraction is usually
simple, and easy to use in the perspective of the user, the person who is
using your object.
2. Encapsulation: Encapsulation is a method for protecting data from
unwanted access or alteration by packaging it in an object where it is
only accessible through the object's interface. Encapsulation are often
referred to as information hiding. But both are different.
Infact information hiding is actually the result of Encapsulation.
Encapsulation makes it possible to separate an object's implementation
from its orgiinal behavior - to restrict access of its internal data. This

Page 2 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

restriction facilitate certains details of an object;s behavior to be hidden.


This allows to protect an object's interal state from corruption by its
user.
It is the mechanism by which Abstraction is implemented. In other words
you can say that it is the result of the Encapsulation. For example, the
Laptop is an object that encapsulates many technologies/hardwares that
might not be understood clearly by most people who use it.

3. Polymorphism and Overloading: Poly refers many. So Polymorphism as


the name suggests is a certain item appearing in different forms or ways.
That is making a function or operator to act in different forms depending
on the place they are present is called Polymorphism. Overloading is a
kind of polymorphism.
4. Inheritance: Inheritance as the name suggests is the concept of
inheriting or deriving properties of an existing class to get new class or
classes. In other words we may have common features or characteristics
that may be needed by number of classes. So those features can be
placed in a common tree class called base class and the other classes
which have these characteristics can take the tree class and define only
the new things that they have on their own in their classes. These classes
are called derived class. The main advantage of using this concept of
inheritance in Object oriented programming is it helps in reducing the
code size since the common characteristic is placed separately called as
base class and it is just referred in the derived class. This provide the
users the important usage of terminology called as reusability

Page 3 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

The chocolate room India Pvt. Ltd. started operating since October 2007.
It is an Australian master franchisee. It is committed to building a unified
family, consistently serving the highest quality hot chocolate & coffee and
providing outstanding personalized service in a vibrant store atmosphere.
Through a Java Program in this project, the billing system of Chocolate
Room is highlighted where, you, as a customer can display the menu card,
order your meals (as per your choice) and also have the bill displayed for your
order. Various Methods (Functions) have been used and made private so that
one and only one main function is called by the User, which in turn calls the
various methods. Each of the data members have been so used with the
comments so that it becomes easier for the user to understand the various
purposes the data members have been used for.

Page 4 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

When the WelcomeMenu() is called, the “Welcome to Chocolate Room” screen appears and the
user is asked:
----Enter Your Choice----
1. Display the Menu Card
2. Place Your Order
3. Display the Bill
4. Exit
What do you choose?

If 1 is entered, the user is asked the following and the menu is displayed accordingly(as to what the
user enters):
Enter 1 for Veg Menu and Enter 2 for Non-Veg Menu:

After the Menu has been displayed, User is again asked if he wishes the main menu to be displayed
again:
Do you want the main menu to be displayed again?
(Enter Yes if you want to display the menu again)

If he enters “yes”, the main menu along with the welcome screen is displayed. This time the user
may see the menu again( if he wishes to) or he may place the order by pressing 2.

Once again the user is asked if he wants to order Veg Menu or Non-Veg Menu and the categories
under each are displayed accordingly.
Do you want to order Veg or Non-Veg?
Enter 1 for Veg and 2 for Non-Veg

If 1 is entered the categories under Vegetarian Menu are displayed and if 2 is entered, categories
under Non-Vegetarian Menu are displayed. By entering the serial number, the various items under
that particular category are displayed. The user may now order by entering the item number he
wishes to order. On entering the item number, the user will be asked the quantity he wishes to order
and the amount is displayed accordingly.
Enter the item number you want to order:
Enter the Quantity you want to order:
Amount to be paid:

After this when the User is asked if he wishes to display the main menu again, he may order more or
directly demand display of bill.
Amount exclusive of tax=Rs
Amount inclusive of tax=Rs
Thank You. We hope you were satisfied with our service

The bill is calculated along with the amount and the tax charged which is 14.5% of the total amount
and the “Visit Again” screen is displyed. The bill is calculated, both inclusive and exclusive of all
taxes, and displayed.
Since the job is over, the User may enter “no” when he/she is asked to display the main menu again.
Do you want the main menu to be displayed again?
(Enter Yes if you want to display the menu again)
No
This way, the program comes to an end.

Page 5 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

//Billing System of Chocolate Room


import java.io.*;
class ChocolateRoom
{
InputStreamReader ir=new InputStreamReader(System.in);
BufferedReader br=new BufferedReader(ir);
//Initialising all the arrays
String HotChocolate[]={"Classic ","Mint
","Hazelnut ","Tiramisu
","Caramel ","White
","Belgian\n\tChocolate ","Meringue
","Coffee Mocha "};
double p1[]={150,175,125,100,150,150,120,100,175};
String Choctails[]={"Classic granita ","Mint Split Latte ","Hazelnut
Granita ","Vanilla Latte ","Torroncino Shake ","Coconut
Frappe ","Coffee nirvana ","Caramel frappe "};
double p2[]={50,60,75,65,100,90,90,60};
String ChocoShakes[]={"KitKat Shake ","Toblerone Shake
","Oreo Cookie Shake ","Sniker Bar Shake ","Creme Shake
","Dutch Truffle Shake ","TimTam Shake ","MarsBar Shake
","M&M Shake ","Brownie Shake ","FerroroRocher Shake
"};
double p3[]={75,75,75,75,50,60,60,75,65,85,70};
String HotCoffee[]={"Cappucino ","Cafe Latte ","Long Black
","Macchiato ","Mocha Latte ","Cafe Mocha "};
double p4[]={65,65,60,55,50,60};
String FrozenCoffee[]={"Iced coffee ","diet iced coffee ","iced
cappuccino ","Irish Coffee ","Almond Coffee ","Tripple Sec
Coffee "};
double p5[]={55,60,55,55,50,65};
String HotTea[]={"English Breakfast ","Masala Tea ","Green
Tea ","Earl Grey ","Vanilla ","Peppermint "};
double p6[]={65,65,60,55,50,60};
String IcedTea[]={"Lemon Iced Tea ","Litchi Iced Tea
","Strawberry Iced Tea ","Peach Iced Tea "};
double p7[]={70,60,65,75};
String Chillers[]={"Mint Bomb ","Double chocochip
Frappuccino","Choco Crunch Mocha ","Choco Loco ","Java
chocochip Frappucino","Coffee Frappe ","Cream Brulee "};
double p8[]={65,60,70,70,65,60,70};

Page 6 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

String Coolers[]={"Tropical Smoothie ","Black Current ","Pinky


Lemonade ","Country Lemonade ","Maimi Summer ","Fruit
Spitzer ","Pinky Cooler ","Cindrella "};
double p9[]={75,75,70,80,65,90,85,80};
String Mocktails_Granites[]={"Cranberry Slush ","Bloody Orange
Slush ","Blue Sluch "};
double p10[]={150,125,175};
String Mocktails_Cremosinas[]={"Candied Apple ","Litchi
","Strawberry ","Tangy Orane "};
double p11[]={100,150,120,125};
String VegSandwiches[]={"Cheese Tomato Chilli ","Choco Chilli
","Tandoori Paneer ","Coleslaw "};
double p12[]={100,110,120,125};
String VegMexicanBells[]={"CheeseBean Burrito ","Bean Burrito
"};
double p13[]={150,125};
String VegSaladCollection[]={"Garden Salad ","Greek Salad
","Tandoori Paneer Salad ","Classic Caeser Salad "};
double p14[]={30,50,50,45};
String Pancakes[]={"Chock O Block ","Death By Chocolate
","Bananarama ","Bavarian Pancake ","Devonshire Pancake
","Jaffa Orange ","Mangola Waffle ","Testing Plate
","Sugar Rush Waffle "};
double p15[]={125,125,120,150,140,135,150,165,120};
String ChocolatePizza[]={"Choco Date Pizza ","Hi-Fibre Pizza
","Tropical Pizza ","Rocky Road Pizza ","Chilli Hot Chocolate
Pizza "};
double p16[]={150,200,200,175,200};
String Paninos[]={"Country Road Chicken Panino ","Chicken Salami
Panino ","Openhouse Chicken Panino "};
double p17[]={125,125,150};
String Baguettes[]={"Traditional Italian Baguette ","Hot Dog Baguette
"};
double p18[]={200, 250};
String Wraps[]={"Lebanese Chicken Wrap ","Non-Veg club wrap
","Teriyaki Chicken Wrap "};
double p19[]={ 120, 120, 130};
String Crepes[]={"TandooriChicken Crepes ","Maritain Chicken
Crepes ","Mexican Crepes "};
double p20[]={90,90, 75};
String NonVegSandwiches[]={"Country Road Sandwich ","Roasted
Chicken Sandwich ","Tandoori Chicken Sandwich "};

Page 7 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

double p21[]={ 100,120,125};


String NonVegSalads[]={"Morroccan Chicken Salad ","Tandoori
Chicken Salad "};
double p22[]={ 50, 60};
String NonVegMexicanBells[]={"Cheesy Bean Burrito ","Chicken
Burritp ","Original Taco ","Taco Supreme
","Nachos ","Nachos Bellgrande "};

double p23[]={ 120, 100, 125, 140, 135, 100};


//Declaring and initialising the data members
int ch;//To accept User's choice
String yes;//To accept if the user wants to display the main menu again
int n;//To store the serial number
int qty;//To store the quantity
int tax=0;//To store the amount of tax
double amt=0;//To store the bill amount
int item;//To accept the item number
private void Welcome()//To display the Welcome Message
{
System.out.println(" *** *** ************ *** ***********
*********** *** *** ************");
System.out.println(" *** *** ************ *** *********** ****
**** ***** ***** ************");
System.out.println(" *** ** *** ** **** *** **** *** ***
*********** ** ****");
System.out.println(" *** ** *** ** **** *** **** *** ***
*********** ** ****");
System.out.println(" ************ ************ ***********
*********** **** **** *** *** ************");
System.out.println(" ***** ****** ************ *********** ***********
*********** *** *** ************");
System.out.println("");
System.out.println("");
System.out.println(" *********** *********** ");
System.out.println(" *********** **** ****"
);
System.out.println(" *** *** ***" );
System.out.println(" *** *** ***" );
System.out.println(" *** **** ****" );
System.out.println(" *** ***********" );
System.out.println("");
System.out.println("");
Page 8 of 45 Chocolate Room Billing System
Name: Ayman Eathysham

System.out.println("*********** **** **** *********** ***********


*********** *** ********* *********** ************");
System.out.println("*********** **** **** **** **** *********** ****
**** *** *** *** *********** ************");
System.out.println("**** ************ *** *** **** *** ***
*** ** ** *** ** ****");
System.out.println("**** ************ *** *** **** *** ***
*** ********* *** ** ****");
System.out.println("*********** **** **** **** **** *********** ****
**** *********** *** *** *** ************");
System.out.println("*********** **** **** *********** ***********
*********** *********** *** *** *** ************");
System.out.println("");
System.out.println("");
System.out.println(" ******** *********** *********** ***
***");
System.out.println(" **** ** **** **** **** **** ***** *****");
System.out.println(" **** *** *** *** *** *** ***********");
System.out.println(" ******* *** *** *** *** ***********");
System.out.println(" **** *** **** **** **** **** *** ***");
System.out.println(" **** ***** *********** *********** ***
***");
}
public void WelcomeMenu()throws IOException//To show the billing process of
Chocolate Room.
{ Welcome();
do
{
System.out.println("----Enter Your Choice----");
System.out.println("1. Display the Menu Card");
System.out.println("2. Place Your Order");
System.out.println("3. Display the Bill");
System.out.println("4. Exit");
System.out.println("What do you choose?");
ch=Integer.parseInt(br.readLine());
}while(ch>4);
switch(ch)
{
case 1:
Menu();
break;
case 2:

Page 9 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

PlaceOrder();
break;
case 3:
DisplayBill();
break;
case 4:
System.out.println("Exiting");
break;
default:
System.out.println("Invalid Choice");
}
System.out.println("Do you want the main menu to be displayed
again?");
System.out.println("(Enter Yes if you want to display the menu
again)");
yes=br.readLine();
if(yes.equalsIgnoreCase("Yes"))
WelcomeMenu();
}
private void Menu()throws IOException//To display the Menu(Veg and Non-Veg)
{
System.out.print("Enter 1 for Veg Menu and Enter 2 for Non-Veg Menu:
");
int menu=Integer.parseInt(br.readLine());
if(menu==1)
Menu_Veg();
else if(menu==2)
Menu_NonVeg();
else
System.out.println("Invalid Menu Option");
}
private void Menu_Veg()//Vegetarian Menu Card
{
System.out.println("----Vegetarian----");
System.out.println("S.No.\tName\t\t\t\t\t\tPrice");
System.out.println("\n1. Hot Chocolate");
System.out.println("************************");
for(int i=0;i<HotChocolate.length;i++)
System.out.println((i+1)+".\t"+HotChocolate[i]+"\t"+p1[i]);
System.out.println("\n2. Choctails");
System.out.println("************************");
for(int i=0;i<Choctails.length;i++)

Page 10 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

System.out.println((i+1)+".\t"+Choctails[i]+"\t\t\t\t"+p2[i]);
System.out.println("\n3. Choco Shakes");
System.out.println("************************");
for(int i=0;i<ChocoShakes.length;i++)
System.out.println((i+1)+".\t"+ChocoShakes[i]+"\t\t\t\t"+p3[i]);
System.out.println("\n4. Tea and Coffee");
System.out.println("************************");
System.out.println("\nHot Coffee");
for(int i=0;i<HotCoffee.length;i++)
System.out.println((i+1)+".\t"+HotCoffee[i]+"\t\t\t\t"+p4[i]);
System.out.println("\nFrozen Coffee");
for(int i=0;i<FrozenCoffee.length;i++)
System.out.println((i+1)+".\t"+FrozenCoffee[i]+"\t\t\t\t"+p5[i]);
System.out.println("\nHot Tea");
for(int i=0;i<HotTea.length;i++)
System.out.println((i+1)+".\t"+HotTea[i]+"\t\t\t\t"+p6[i]);
System.out.println("\nIced Tea");
for(int i=0;i<IcedTea.length;i++)
System.out.println((i+1)+".\t"+IcedTea[i]+"\t\t\t\t"+p7[i]);

System.out.println("\n5. Chillers");
System.out.println("************************");
for(int i=0;i<Chillers.length;i++)
System.out.println((i+1)+".\t"+Chillers[i]+"\t\t\t\t"+p8[i]);
System.out.println("\n6. Coolers");
System.out.println("************************");
for(int i=0;i<Coolers.length;i++)
System.out.println((i+1)+".\t"+Coolers[i]+"\t\t\t\t"+p9[i]);
System.out.println("\n7. Mocktails");
System.out.println("************************");
System.out.println("\nGranites");
for(int i=0;i<Mocktails_Granites.length;i++)

System.out.println((i+1)+".\t"+Mocktails_Granites[i]+"\t\t\t\t"+p10[i]);
System.out.println("\nCremosinas");
for(int i=0;i<Mocktails_Cremosinas.length;i++)

System.out.println((i+1)+".\t"+Mocktails_Cremosinas[i]+"\t\t\t\t"+p11[i])
;

System.out.println("\n8. Sandwiches");
System.out.println("************************");

Page 11 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

for(int i=0;i<VegSandwiches.length;i++)

System.out.println((i+1)+".\t"+VegSandwiches[i]+"\t\t\t\t"+p12[i]);
System.out.println("\n9. Mexican Bells");
System.out.println("************************");
for(int i=0;i<VegMexicanBells.length;i++)

System.out.println((i+1)+".\t"+VegMexicanBells[i]+"\t\t\t\t"+p13[i]);
System.out.println("\n10. Salad Collection");
System.out.println("************************");
for(int i=0;i<VegSaladCollection.length;i++)

System.out.println((i+1)+".\t"+VegSaladCollection[i]+"\t\t\t\t"+p14[i]);
System.out.println("\n11. Pancakes");
System.out.println("************************");
for(int i=0;i<Pancakes.length;i++)
System.out.println((i+1)+".\t"+Pancakes[i]+"\t\t\t\t"+p15[i]);
System.out.println("\n12. Chocolate Pizza");
System.out.println("************************");
for(int i=0;i<ChocolatePizza.length;i++)
System.out.println((i+1)+".\t"+ChocolatePizza[i]+"\t\t\t\t"+p16[i]);
}

private void Menu_NonVeg()//Non-Vegetarian Menu Card


{
System.out.println("\n\t\t\t----Non Vegetarian----\t\t\t");
System.out.println("S.No.\tName\t\t\t\t\t\tPrice");
System.out.println("\n1. Paninos");
System.out.println("************************");
for(int i=0;i<Paninos.length;i++)
System.out.println((i+1)+".\t"+Paninos[i]+"\t\t\t\t"+p17[i]);
System.out.println("\n2. Baguettes");
System.out.println("************************");
for(int i=0;i<Baguettes.length;i++)
System.out.println((i+1)+".\t"+Baguettes[i]+"\t\t\t\t"+p18[i]);
System.out.println("\n3. Wraps");
System.out.println("************************");
for(int i=0;i<Wraps.length;i++)
System.out.println((i+1)+".\t"+Wraps[i]+"\t\t\t\t"+p19[i]);
System.out.println("\n4. Crepes");
System.out.println("************************");
for(int i=0;i<Crepes.length;i++)

Page 12 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

System.out.println((i+1)+".\t"+Crepes[i]+"\t\t\t\t"+p20[i]);
System.out.println("\n5. Sandwiches");
System.out.println("************************");
for(int i=0;i<NonVegSandwiches.length;i++)

System.out.println((i+1)+".\t"+NonVegSandwiches[i]+"\t\t\t\t"+p21[i]);
System.out.println("\n6. Salads");
System.out.println("************************");
for(int i=0;i<NonVegSalads.length;i++)
System.out.println((i+1)+".\t"+NonVegSalads[i]+"\t\t\t\t"+p22[i]);
System.out.println("\n7. Mexican Bells");
System.out.println("************************");
for(int i=0;i<NonVegMexicanBells.length;i++)

System.out.println((i+1)+".\t"+NonVegMexicanBells[i]+"\t\t\t\t"+p23[i]);
}
private void PlaceOrder()throws IOException//To place the order as per
the Customer's choice
{
System.out.println("Do you want to order Veg or Non-Veg?");
System.out.println("Enter 1 for Veg and 2 for Non-Veg");
int ask=Integer.parseInt(br.readLine());
if(ask==1)
Order_Veg();
else if(ask==2)
Order_NonVeg();
}
private void DisplayBill()//To calculate and display the bill
{
System.out.println("Amount exclusive of tax=Rs "+amt);
amt=amt+(0.125*amt);//Rate of tax is 12.5%
System.out.println("Amount inclusive of tax=Rs "+amt);
System.out.println(" Thank You. We hope you were satisfied with our
service");
System.out.println("**** **** ***** ******** **** *********
********** ********* ********** *** *** ***");
System.out.println("***** ***** ***** ****** **** ********* ***
*** ****** *** *** *** **** ***");
System.out.println(" ********** ***** **** **** *** ** **
***** ** ** *** ***** ***");
System.out.println(" ********* ***** ******** **** ***
********** ***** *** ********** *** *** *****");

Page 13 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

System.out.println(" ******* ***** ***** **** *** **********


***** *** ********** *** *** ****");
System.out.println(" ******* ***** ****** **** *** *** ***
********** *** *** *** *** ***");
System.out.println(" ***** ***** ******* **** *** *** ***
*** *** *** *** *** ***");
}
private void HotCoffee()//Preparing a column in the menu card for each of the initialised
arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<HotCoffee.length;i++)
System.out.println((i+1)+"\t"+HotCoffee[i]+"\t"+p4[i]);
}
private void FrozenCoffee()//Preparing a column in the menu card for each of the
initialised arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<FrozenCoffee.length;i++)
System.out.println((i+1)+"\t"+FrozenCoffee[i]+"\t"+p5[i]);
}
private void HotTea()//Preparing a column in the menu card for each of the initialised
arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<HotTea.length;i++)
System.out.println((i+1)+"\t"+HotTea[i]+"\t"+p6[i]);
}
private void IcedTea()//Preparing a column in the menu card for each of the initialised
arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<IcedTea.length;i++)
System.out.println((i+1)+"\t"+IcedTea[i]+"\t"+p7[i]);
}
private void HotChocolate()//Preparing a column in the menu card for each of the
initialised arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<HotChocolate.length;i++)
System.out.println((i+1)+"\t"+HotChocolate[i]+"\t"+p1[i]);
}
Page 14 of 45 Chocolate Room Billing System
Name: Ayman Eathysham

private void Choctails()//Preparing a column in the menu card for each of the initialised
arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<Choctails.length;i++)
System.out.println((i+1)+"\t"+Choctails[i]+"\t"+p2[i]);
}
private void ChocoShakes()//Preparing a column in the menu card for each of the
initialised arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<ChocoShakes.length;i++)
System.out.println((i+1)+"\t"+ChocoShakes[i]+"\t"+p3[i]);
}
private void Chillers()//Preparing a column in the menu card for each of the initialised
arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<Chillers.length;i++)
System.out.println((i+1)+"\t"+Chillers[i]+"\t"+p8[i]);
}
private void Coolers()//Preparing a column in the menu card for each of the initialised
arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<Coolers.length;i++)
System.out.println((i+1)+"\t"+Coolers[i]+"\t"+p9[i]);
}
private void Mocktails_Granites()//Preparing a column in the menu card for each of
the initialised arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<Mocktails_Granites.length;i++)
System.out.println((i+1)+"\t"+Mocktails_Granites[i]+"\t"+p10[i]);
}
private void Mocktails_Cremosinas()//Preparing a column in the menu card for each
of the initialised arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<Mocktails_Cremosinas.length;i++)
System.out.println((i+1)+"\t"+Mocktails_Cremosinas[i]+"\t"+p11[i]);
}
Page 15 of 45 Chocolate Room Billing System
Name: Ayman Eathysham

private void VegSandwiches()//Preparing a column in the menu card for each of the
initialised arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<VegSandwiches.length;i++)
System.out.println((i+1)+"\t"+VegSandwiches[i]+"\t"+p12[i]);
}
private void VegMexicanBells()//Preparing a column in the menu card for each of the
initialised arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<VegMexicanBells.length;i++)
System.out.println((i+1)+"\t"+VegMexicanBells[i]+"\t"+p13[i]);
}
private void VegSaladCollection()//Preparing a column in the menu card for each of
the initialised arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<VegSaladCollection.length;i++)
System.out.println((i+1)+"\t"+VegSaladCollection[i]+"\t"+p14[i]);
}
private void Pancakes()//Preparing a column in the menu card for each of the initialised
arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<Pancakes.length;i++)
System.out.println((i+1)+"\t"+Pancakes[i]+"\t"+p15[i]);
}
private void ChocolatePizza()//Preparing a column in the menu card for each of the
initialised arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<ChocolatePizza.length;i++)
System.out.println((i+1)+"\t"+ChocolatePizza[i]+"\t"+p16[i]);
}
private void Paninos()//Preparing a column in the menu card for each of the initialised
arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<Paninos.length;i++)
System.out.println((i+1)+"\t"+Paninos[i]+"\t"+p17[i]);
}
Page 16 of 45 Chocolate Room Billing System
Name: Ayman Eathysham

private void Baguettes()//Preparing a column in the menu card for each of the initialised
arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<Baguettes.length;i++)
System.out.println((i+1)+"\t"+Baguettes[i]+"\t"+p18[i]);
}
private void Wraps()//Preparing a column in the menu card for each of the initialised
arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<Wraps.length;i++)
System.out.println((i+1)+"\t"+Wraps[i]+"\t"+p19[i]);
}
private void Crepes()//Preparing a column in the menu card for each of the initialised
arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<Crepes.length;i++)
System.out.println((i+1)+"\t"+Crepes[i]+"\t"+p20[i]);
}
private void NonVegSandwiches()//Preparing a column in the menu card for each of
the initialised arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<NonVegSandwiches.length;i++)
System.out.println((i+1)+"\t"+NonVegSandwiches[i]+"\t"+p21[i]);
}
private void NonVegSalads()//Preparing a column in the menu card for each of the
initialised arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<NonVegSalads.length;i++)
System.out.println((i+1)+"\t"+NonVegSalads[i]+"\t"+p22[i]);
}
private void NonVegMexicanBells()//Preparing a column in the menu card for each
of the initialised arrays
{
System.out.println("S.No.\t\tName\t\t Cost in Rs");
for(int i=0;i<NonVegMexicanBells.length;i++)
System.out.println((i+1)+"\t"+NonVegMexicanBells[i]+"\t"+p23[i]);
}
Page 17 of 45 Chocolate Room Billing System
Name: Ayman Eathysham

private void Order_Veg()throws IOException//To place Veg Order


{
do
{
System.out.println(" 1. Hot Chocolate");
System.out.println(" 2. Choctails");
System.out.println(" 3. ChocoShakes");
System.out.println(" 4. Hot Coffee");
System.out.println(" 5. Frozen Coffee");
System.out.println(" 6. Hot Tea");
System.out.println(" 7. Iced Tea");
System.out.println(" 8. Chillers");
System.out.println(" 9. Coolers");
System.out.println("10. Mocktails (Granites)");
System.out.println("11. Mocktails (Cremosinas)");
System.out.println("12. Veg SandWiches");
System.out.println("13. Veg Mexican Bells");
System.out.println("14. Veg Salad Collection");
System.out.println("15. Pancakes");
System.out.println("16. Chocolate Pizzas");
System.out.print("Enter the serial number you want to order: ");
n=Integer.parseInt(br.readLine());
}while(n<1 || n>16);
int x=0;
double price=0;
switch(n)
{
case 1:
HotChocolate();
x=9;
break;
case 2:
Choctails();
x=8;
break;
case 3:
ChocoShakes();
x=11;
break;
case 4:
HotCoffee();
x=6;

Page 18 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

break;
case 5:
FrozenCoffee();
x=6;
break;
case 6:
HotTea();
x=6;
break;
case 7:
IcedTea();
x=4;
break;
case 8:
Chillers();
x=7;
break;
case 9:
Coolers();
x=8;
break;
case 10:
Mocktails_Granites();
x=3;
break;
case 11:
Mocktails_Cremosinas();
x=4;
break;
case 12:
VegSandwiches();
x=4;
break;
case 13:
VegMexicanBells();
x=2;
break;
case 14:
VegSaladCollection();
x=4;
break;
case 15:

Page 19 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

Pancakes();
x=9;
break;
case 16:
ChocolatePizza();
x=5;
break;
//default:
// System.out.println("Item Not Available");
}
do
{
System.out.print("Enter the item number you want to order: ");
item=Integer.parseInt(br.readLine());
}while(item<1 || item>x);
switch(n)
{
case 1:
price=p1[item];
break;
case 2:
price=p2[item];
break;
case 3:
price=p3[item];
break;
case 4:
price=p4[item];
break;
case 5:
price=p5[item];
break;
case 6:
price=p6[item];
break;
case 7:
price=p7[item];
break;
case 8:
price=p8[item];
break;
case 9:

Page 20 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

price=p9[item];
break;
case 10:
price=p10[item];
break;
case 11:
price=p11[item];
break;
case 12:
price=p12[item];
break;
case 13:
price=p13[item];
break;
case 14:
price=p14[item];
break;
case 15:
price=p15[item];
break;
case 16:
price=p16[item];
break;
}

System.out.print("Enter the Quantity you want to order: ");


qty=Integer.parseInt(br.readLine());
amt=qty*price;
System.out.println("Amount to be paid:"+amt);

}
private void Order_NonVeg()throws IOException//To place Non-Veg Order
{
do
{
System.out.println(" 1. Paninos");
System.out.println(" 2. Baguettes");
System.out.println(" 3. Wraps");
System.out.println(" 4. Crepes");
System.out.println(" 5. Non-Veg Sandwiches");
System.out.println(" 6. Non-Veg Mexican Bells");
System.out.print("Enter the serial number you want to order: ");

Page 21 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

n=Integer.parseInt(br.readLine());
}while(n<1 || n>6);
double price=0;
int x=0;
switch(n)
{
case 1:
Paninos();
x=3;
break;
case 2:
Baguettes();
x=2;
break;
case 3:
Wraps();
x=3;
break;
case 4:
Crepes();
x=3;
break;
case 5:
NonVegSandwiches();
x=3;
break;
case 6:
NonVegMexicanBells();
x=6;
break;
// default:
// System.out.println("Item not Available");
}
do
{
System.out.print("Enter the item number you want to order: ");
item=Integer.parseInt(br.readLine());
}while(item<1 || item>x);
switch(n)
{
case 1:
price=p17[item];

Page 22 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

break;
case 2:
price=p18[item];
break;
case 3:
price=p19[item];
break;
case 4:
price=p20[item];
break;
case 5:
price=p21[item];
break;
case 6:
price=p22[item];
break;
case 7:
price=p23[item];
break;

}
System.out.print("Enter the Quantity you want to order: ");
qty=Integer.parseInt(br.readLine());
amt=qty*price;
System.out.println("Amount to be paid:"+amt);
}
}

Page 23 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

*** *** ************ *** *********** *********** *** *** ************


*** *** ************ *** *********** **** **** ***** ***** ************
*** ** *** ** **** *** **** *** *** *********** ** ****
*** ** *** ** **** *** **** *** *** *********** ** ****
************ ************ *********** *********** **** **** *** ***
************
***** ****** ************ *********** *********** *********** *** ***
************

*********** ***********
*********** **** ****
*** *** ***
*** *** ***
*** **** ****
*** ***********

*********** **** **** *********** *********** *********** *** *********


*********** ************
*********** **** **** **** **** *********** **** **** *** *** *** ***********
************
**** ************ *** *** **** *** *** *** ** ** *** ** ****
**** ************ *** *** **** *** *** *** ********* *** ** ****
*********** **** **** **** **** *********** **** **** *********** *** *** ***
************
*********** **** **** *********** *********** *********** *********** ***
*** *** ************

******** *********** *********** *** ***


**** ** **** **** **** **** ***** *****
**** *** *** *** *** *** ***********
******* *** *** *** *** ***********
**** *** **** **** **** **** *** ***
**** ***** *********** *********** *** ***
----Enter Your Choice----
1. Display the Menu Card
2. Place Your Order
3. Display the Bill
4. Exit
What do you choose?
1
Enter 1 for Veg Menu and Enter 2 for Non-Veg Menu: 1

Page 24 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

----Vegetarian----
S.No. Name Price

1. Hot Chocolate
************************
1. Classic 150.0
2. Mint 175.0
3. Hazelnut 125.0
4. Tiramisu 100.0
5. Caramel 150.0
6. White 150.0
7. Belgian
Chocolate 120.0
8. Meringue 100.0
9. Coffee Mocha 175.0

2. Choctails
************************
1. Classic granita 50.0
2. Mint Split Latte 60.0
3. Hazelnut Granita 75.0
4. Vanilla Latte 65.0
5. Torroncino Shake 100.0
6. Coconut Frappe 90.0
7. Coffee nirvana 90.0
8. Caramel frappe 60.0

3. Choco Shakes
************************
1. KitKat Shake 75.0
2. Toblerone Shake 75.0
3. Oreo Cookie Shake 75.0
4. Sniker Bar Shake 75.0
5. Creme Shake 50.0
6. Dutch Truffle Shake 60.0
7. TimTam Shake 60.0
8. MarsBar Shake 75.0
9. M&M Shake 65.0
10. Brownie Shake 85.0
11. FerroroRocher Shake 70.0

Page 25 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

4. Tea and Coffee


************************

Hot Coffee
1. Cappucino 65.0
2. Cafe Latte 65.0
3. Long Black 60.0
4. Macchiato 55.0
5. Mocha Latte 50.0
6. Cafe Mocha 60.0

Frozen Coffee
1. Iced coffee 55.0
2. diet iced coffee 60.0
3. iced cappuccino 55.0
4. Irish Coffee 55.0
5. Almond Coffee 50.0
6. Tripple Sec Coffee 65.0

Hot Tea
1. English Breakfast 65.0
2. Masala Tea 65.0
3. Green Tea 60.0
4. Earl Grey 55.0
5. Vanilla 50.0
6. Peppermint 60.0

Iced Tea
1. Lemon Iced Tea 70.0
2. Litchi Iced Tea 60.0
3. Strawberry Iced Tea 65.0
4. Peach Iced Tea 75.0

5. Chillers
************************
1. Mint Bomb 65.0
2. Double chocochip Frappuccino 60.0
3. Choco Crunch Mocha 70.0
4. Choco Loco 70.0
5. Java chocochip Frappucino 65.0
6. Coffee Frappe 60.0

Page 26 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

7. Cream Brulee 70.0

6. Coolers
************************
1. Tropical Smoothie 75.0
2. Black Current 75.0
3. Pinky Lemonade 70.0
4. Country Lemonade 80.0
5. Maimi Summer 65.0
6. Fruit Spitzer 90.0
7. Pinky Cooler 85.0
8. Cindrella 80.0

7. Mocktails
************************

Granites
1. Cranberry Slush 150.0
2. Bloody Orange Slush 125.0
3. Blue Sluch 175.0

Cremosinas
1. Candied Apple 100.0
2. Litchi 150.0
3. Strawberry 120.0
4. Tangy Orane 125.0

8. Sandwiches
************************
1. Cheese Tomato Chilli 100.0
2. Choco Chilli 110.0
3. Tandoori Paneer 120.0
4. Coleslaw 125.0

9. Mexican Bells
************************
1. CheeseBean Burrito 150.0

Page 27 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

2. Bean Burrito 125.0

10. Salad Collection


************************
1. Garden Salad 30.0
2. Greek Salad 50.0
3. Tandoori Paneer Salad 50.0
4. Classic Caeser Salad 45.0

11. Pancakes
************************
1. Chock O Block 125.0
2. Death By Chocolate 125.0
3. Bananarama 120.0
4. Bavarian Pancake 150.0
5. Devonshire Pancake 140.0
6. Jaffa Orange 135.0
7. Mangola Waffle 150.0
8. Testing Plate 165.0
9. Sugar Rush Waffle 120.0

12. Chocolate Pizza


************************
1. Choco Date Pizza 150.0
2. Hi-Fibre Pizza 200.0
3. Tropical Pizza 200.0
4. Rocky Road Pizza 175.0
5. Chilli Hot Chocolate Pizza 200.0

Do you want the main menu to be displayed again?


(Enter Yes if you want to display the menu again)
Yes

*** *** ************ *** *********** *********** *** ***


************
*** *** ************ *** *********** **** **** ***** *****
************
*** ** *** ** **** *** **** *** *** *********** ** ****
*** ** *** ** **** *** **** *** *** *********** ** ****
************ ************ *********** *********** **** **** *** ***
************

Page 28 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

***** ****** ************ *********** *********** *********** ***


*** ************

*********** ***********
*********** **** ****
*** *** ***
*** *** ***
*** **** ****
*** ***********

*********** **** **** *********** *********** *********** ***


********* *********** ************
*********** **** **** **** **** *********** **** **** *** *** ***
*********** ************
**** ************ *** *** **** *** *** *** ** ** *** **
****
**** ************ *** *** **** *** *** *** ********* ***
** ****
*********** **** **** **** **** *********** **** **** *********** ***
*** *** ************
*********** **** **** *********** *********** *********** *********** ***
*** *** ************

******** *********** *********** *** ***


**** ** **** **** **** **** ***** *****
**** *** *** *** *** *** ***********
******* *** *** *** *** ***********
**** *** **** **** **** **** *** ***
**** ***** *********** *********** *** ***
----Enter Your Choice----
1. Display the Menu Card
2. Place Your Order
3. Display the Bill
4. Exit
What do you choose?
2
Do you want to order Veg or Non-Veg?
Enter 1 for Veg and 2 for Non-Veg
1

Page 29 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

1. Hot Chocolate
2. Choctails
3. ChocoShakes
4. Hot Coffee
5. Frozen Coffee
6. Hot Tea
7. Iced Tea
8. Chillers
9. Coolers
10. Mocktails (Granites)
11. Mocktails (Cremosinas)
12. Veg SandWiches
13. Veg Mexican Bells
14. Veg Salad Collection
15. Pancakes
16. Chocolate Pizzas
Enter the serial number you want to order: 3

S.No. Name Cost in Rs


1 KitKat Shake 75.0
2 Toblerone Shake 75.0
3 Oreo Cookie Shake 75.0
4 Sniker Bar Shake 75.0
5 Creme Shake 50.0
6 Dutch Truffle Shake 60.0
7 TimTam Shake 60.0
8 MarsBar Shake 75.0
9 M&M Shake 65.0
10 Brownie Shake 85.0
11 FerroroRocher Shake 70.0

Enter the item number you want to order: 2


Enter the Quantity you want to order: 1
Amount to be paid:75.0

Do you want the main menu to be displayed again?


(Enter Yes if you want to display the menu again)
Yes

*** *** ************ *** *********** *********** *** ***


************

Page 30 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

*** *** ************ *** *********** **** **** ***** *****


************
*** ** *** ** **** *** **** *** *** *********** ** ****
*** ** *** ** **** *** **** *** *** *********** ** ****
************ ************ *********** *********** **** **** *** ***
************
***** ****** ************ *********** *********** *********** ***
*** ************

*********** ***********
*********** **** ****
*** *** ***
*** *** ***
*** **** ****
*** ***********

*********** **** **** *********** *********** *********** ***


********* *********** ************
*********** **** **** **** **** *********** **** **** *** *** ***
*********** ************
**** ************ *** *** **** *** *** *** ** ** *** **
****
**** ************ *** *** **** *** *** *** ********* ***
** ****
*********** **** **** **** **** *********** **** **** *********** ***
*** *** ************
*********** **** **** *********** *********** *********** *********** ***
*** *** ************

******** *********** *********** *** ***


**** ** **** **** **** **** ***** *****
**** *** *** *** *** *** ***********
******* *** *** *** *** ***********
**** *** **** **** **** **** *** ***
**** ***** *********** *********** *** ***

----Enter Your Choice----


1. Display the Menu Card

Page 31 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

2. Place Your Order


3. Display the Bill
4. Exit
What do you choose?
3

Amount exclusive of tax=Rs 75.0


Amount inclusive of tax=Rs 84.375
Thank You. We hope you were satisfied with our service
**** **** ***** ******** **** ********* ********** ********* **********
*** *** ***
***** ***** ***** ****** **** ********* *** *** ****** *** *** ***
**** ***
********** ***** **** **** *** ** ** ***** ** ** *** *****
***
********* ***** ******** **** *** ********** ***** *** **********
*** *** *****
******* ***** ***** **** *** ********** ***** *** ********** ***
*** ****
******* ***** ****** **** *** *** *** ********** *** *** ***
*** ***
***** ***** ******* **** *** *** *** *** *** *** *** ***
***
Do you want the main menu to be displayed again?
(Enter Yes if you want to display the menu again)
Yes

*** *** ************ *** *********** *********** *** ***


************
*** *** ************ *** *********** **** **** ***** *****
************
*** ** *** ** **** *** **** *** *** *********** ** ****
*** ** *** ** **** *** **** *** *** *********** ** ****
************ ************ *********** *********** **** **** *** ***
************
***** ****** ************ *********** *********** *********** ***
*** ************

*********** ***********
*********** **** ****
*** *** ***
*** *** ***

Page 32 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

*** **** ****


*** ***********

*********** **** **** *********** *********** *********** ***


********* *********** ************
*********** **** **** **** **** *********** **** **** *** *** ***
*********** ************
**** ************ *** *** **** *** *** *** ** ** *** **
****
**** ************ *** *** **** *** *** *** ********* ***
** ****
*********** **** **** **** **** *********** **** **** *********** ***
*** *** ************
*********** **** **** *********** *********** *********** *********** ***
*** *** ************

******** *********** *********** *** ***


**** ** **** **** **** **** ***** *****
**** *** *** *** *** *** ***********
******* *** *** *** *** ***********
**** *** **** **** **** **** *** ***
**** ***** *********** *********** *** ***
----Enter Your Choice----
1. Display the Menu Card
2. Place Your Order
3. Display the Bill
4. Exit
What do you choose?
4

Exiting
Do you want the main menu to be displayed again?
(Enter Yes if you want to display the menu again)
No

Page 33 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

*** *** ************ *** *********** *********** *** ***


************
*** *** ************ *** *********** **** **** ***** *****
************
*** ** *** ** **** *** **** *** *** *********** ** ****
*** ** *** ** **** *** **** *** *** *********** ** ****
************ ************ *********** *********** **** **** *** ***
************
***** ****** ************ *********** *********** *********** *** ***
************

*********** ***********
*********** **** ****
*** *** ***
*** *** ***
*** **** ****
*** ***********

*********** **** **** *********** *********** *********** ***


********* *********** ************
*********** **** **** **** **** *********** **** **** *** *** ***
*********** ************
**** ************ *** *** **** *** *** *** ** ** *** **
****
**** ************ *** *** **** *** *** *** ********* ***
** ****
*********** **** **** **** **** *********** **** **** *********** ***
*** *** ************
*********** **** **** *********** *********** *********** *********** ***
*** *** ************

******** *********** *********** *** ***


**** ** **** **** **** **** ***** *****
**** *** *** *** *** *** ***********
******* *** *** *** *** ***********
**** *** **** **** **** **** *** ***
**** ***** *********** *********** *** ***
----Enter Your Choice----
1. Display the Menu Card

Page 34 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

2. Place Your Order


3. Display the Bill
4. Exit
What do you choose?
1
Enter 1 for Veg Menu and Enter 2 for Non-Veg Menu: 2

----Non Vegetarian----
S.No. Name Price

1. Paninos
************************
1. Country Road Chicken Panino 125.0
2. Chicken Salami Panino 125.0
3. Openhouse Chicken Panino 150.0

2. Baguettes
************************
1. Traditional Italian Baguette 200.0
2. Hot Dog Baguette 250.0
3. Wraps
************************
1. Lebanese Chicken Wrap 120.0
2. Non-Veg club wrap 120.0
3. Teriyaki Chicken Wrap 130.0

4. Crepes
************************
1. TandooriChicken Crepes 90.0
2. Maritain Chicken Crepes 90.0
3. Mexican Crepes 75.0
5. Sandwiches
************************
1. Country Road Sandwich 100.0
2. Roasted Chicken Sandwich 120.0
3. Tandoori Chicken Sandwich 125.0

6. Salads
************************
1. Morroccan Chicken Salad 50.0
2. Tandoori Chicken Salad 60.0
7. Mexican Bells

Page 35 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

************************
1. Cheesy Bean Burrito 120.0
2. Chicken Burritp 100.0
3. Original Taco 125.0
4. Taco Supreme 140.0
5. Nachos 135.0
6. Nachos Bellgrande 100.0
Do you want the main menu to be displayed again?
(Enter Yes if you want to display the menu again)
yes
*** *** ************ *** *********** *********** *** ***
************
*** *** ************ *** *********** **** **** ***** *****
************
*** ** *** ** **** *** **** *** *** *********** ** ****
*** ** *** ** **** *** **** *** *** *********** ** ****
************ ************ *********** *********** **** **** *** ***
************
***** ****** ************ *********** *********** *********** *** ***
************

*********** ***********
*********** **** ****
*** *** ***
*** *** ***
*** **** ****
*** ***********

*********** **** **** *********** *********** *********** ***


********* *********** ************
*********** **** **** **** **** *********** **** **** *** *** ***
*********** ************
**** ************ *** *** **** *** *** *** ** ** *** **
****
**** ************ *** *** **** *** *** *** ********* ***
** ****
*********** **** **** **** **** *********** **** **** *********** ***
*** *** ************
*********** **** **** *********** *********** *********** *********** ***
*** *** ************

Page 36 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

******** *********** *********** *** ***


**** ** **** **** **** **** ***** *****
**** *** *** *** *** *** ***********
******* *** *** *** *** ***********
**** *** **** **** **** **** *** ***
**** ***** *********** *********** *** ***

----Enter Your Choice----


1. Display the Menu Card
2. Place Your Order
3. Display the Bill
4. Exit
What do you choose?
2
Do you want to order Veg or Non-Veg?
Enter 1 for Veg and 2 for Non-Veg
2

1. Paninos
2. Baguettes
3. Wraps
4. Crepes
5. Non-Veg Sandwiches
6. Non-Veg Mexican Bells
Enter the serial number you want to order:1

S.No. Name Cost in Rs


1 Country Road Chicken Panino 125.0
2 Chicken Salami Panino 125.0
3 Openhouse Chicken Panino 150.0

Enter the item number you want to order: 1


Enter the Quantity you want to order: 1
Amount to be paid:125.0
Do you want the main menu to be displayed again?
(Enter Yes if you want to display the menu again)
Yes

Page 37 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

*** *** ************ *** *********** *********** *** ***


************
*** *** ************ *** *********** **** **** ***** *****
************
*** ** *** ** **** *** **** *** *** *********** ** ****
*** ** *** ** **** *** **** *** *** *********** ** ****
************ ************ *********** *********** **** **** *** ***
************
***** ****** ************ *********** *********** *********** *** ***
************

*********** ***********
*********** **** ****
*** *** ***
*** *** ***
*** **** ****
*** ***********

*********** **** **** *********** *********** *********** ***


********* *********** ************
*********** **** **** **** **** *********** **** **** *** *** ***
*********** ************
**** ************ *** *** **** *** *** *** ** ** *** **
****
**** ************ *** *** **** *** *** *** ********* ***
** ****
*********** **** **** **** **** *********** **** **** *********** ***
*** *** ************
*********** **** **** *********** *********** *********** *********** ***
*** *** ************

******** *********** *********** *** ***


**** ** **** **** **** **** ***** *****
**** *** *** *** *** *** ***********
******* *** *** *** *** ***********
**** *** **** **** **** **** *** ***
**** ***** *********** *********** *** ***

Page 38 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

----Enter Your Choice----


1. Display the Menu Card
2. Place Your Order
3. Display the Bill
4. Exit
What do you choose?
3

Amount exclusive of tax=Rs 125.0


Amount inclusive of tax=Rs 140.625
Thank You. We hope you were satisfied with our service
**** **** ***** ******** **** ********* ********** ********* **********
*** *** ***
***** ***** ***** ****** **** ********* *** *** ****** *** *** ***
**** ***
********** ***** **** **** *** ** ** ***** ** ** *** *****
***
********* ***** ******** **** *** ********** ***** *** **********
*** *** *****
******* ***** ***** **** *** ********** ***** *** ********** ***
*** ****
******* ***** ****** **** *** *** *** ********** *** *** ***
*** ***
***** ***** ******* **** *** *** *** *** *** *** *** ***
***

Do you want the main menu to be displayed again?


(Enter Yes if you want to display the menu again)
Yes

*** *** ************ *** *********** *********** *** ***


************
*** *** ************ *** *********** **** **** ***** *****
************
*** ** *** ** **** *** **** *** *** *********** ** ****
*** ** *** ** **** *** **** *** *** *********** ** ****
************ ************ *********** *********** **** **** *** ***
************
***** ****** ************ *********** *********** *********** ***
*** ************

*********** ***********

Page 39 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

*********** **** ****


*** *** ***
*** *** ***
*** **** ****
*** ***********

*********** **** **** *********** *********** *********** ***


********* *********** ************
*********** **** **** **** **** *********** **** **** *** *** ***
*********** ************
**** ************ *** *** **** *** *** *** ** ** *** **
****
**** ************ *** *** **** *** *** *** ********* ***
** ****
*********** **** **** **** **** *********** **** **** *********** ***
*** *** ************
*********** **** **** *********** *********** *********** *********** ***
*** *** ************

******** *********** *********** *** ***


**** ** **** **** **** **** ***** *****
**** *** *** *** *** *** ***********
******* *** *** *** *** ***********
**** *** **** **** **** **** *** ***
**** ***** *********** *********** *** ***
----Enter Your Choice----
1. Display the Menu Card
2. Place Your Order
3. Display the Bill
4. Exit
What do you choose?
4

Exiting
Do you want the main menu to be displayed again?
(Enter Yes if you want to display the menu again)
No

Page 40 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

Arrays
Datatype Array Description
String HotChocolate[] To store items under Hot
Chocolate Category
double p1[] Price of elements of each Hot
Chocolate
String Choctails[] To store items under Choctails
Category
double p2[] Price of elements of each
Choctail
String ChocoShakes[] To store items under Choco
Shakes Category
double p3[] Price of elements of each
ChocoShake
String HotCoffee[] To store items under Hot Coffee
Category
double p4[] Price of elements of each Hot
Coffee
String FrozenCoffee[] To store items under Frozen
Coffee Category
double p5[] Price of elements of each Frozen
Coffee
String HotTea[] To store items under Hot Tea
Category
double p6[] Price of elements of each Hot
Tea
String IcedTea[] To store items under Iced Tea
Category
double p7[] Price of elements of each Iced
Tea
String Chillers[] To store items under Chillers
Category
double p8[] Price of elements of each Chiller
String Coolers[] To store items under Coolers
Category
double p9[] Price of elements of each Cooler
String Mocktails_Granites[] To store items under Granites
Category
double p10[] Price of elements of each
Mocktail Granite

Page 41 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

String Mocktails_Cremosinas[] To store items under


Cremosinas Category
double p11[] Price of elements of each
Mocktail Cremosina
String VegSandwiches[] To store items under Vegetarian
Sandwiches Category
double p12[] Price of elements of each Veg
Sandwich
String VegMexicanBells[] To store items under Mexican
Bells Category
double p13[] Price of elements of each Veg
Mexican Bell
String VegSaladCollection[] To store items under Veg Salad
Collection Category
double p14[] Price of elements of each Veg
Salad
String Pancakes[] To store items under Pancakes
Category
double p15[] Price of elements of each
Pancake
String ChocolatePizza[] To store items under Chocolate
Pizzas Category
double p16[] Price of elements of each
Chocolate Pizza
String Paninos[] To store items under Paninos
Category
double p17[] Price of elements of each Panino
String Baguettes[] To store items under Baguettes
Category
double p18[] Price of elements of each
Baguettes
String Wraps[] To store items under Wraps
Category
double p19[] Price of elements of each Wrap
String Crepes[] To store items under Crepes
Category
double p20[] Price of elements of each Crepe
String NonVegSandwiches[] To store items under Non-Veg
Sandwiches Category
double p21[] Price of elements of each Non-
Veg Sandwich

Page 42 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

String NonVegSalads[] To store items under Non-Veg


Salads Category
double p22[] Price of elements of each Non-
Veg Salad
String NonVegMexicanBells[] To store items under Non-Veg
Mexican Bells Category
double p23[] Price of elements of each Non-
Veg Mexican Bell

Data Members
Datatype Variable Description
int ch To accept User’s Choice
int qty To store the quantity
String yes To accept if the user wants to
display the main menu again
int n To store the serial number
int tax To store the amount of tax
double amt To store the bill amount
int item To accept the item number

Local Variables
Datatype Variable Description
int menu To accept the type of menu (veg
or non-veg)
int i Loop counter initializer for all
the loops
int ask To ask if the User wants to order
Veg or Non-Veg
int x To keep track of the price of the
array
double price To store the price of the ordered
item

Page 43 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

I have got a lot to learn from the project as it has not only brushed my
basics, but has also helped me to avoid the common mistakes I would
probably do in the future and the usual habit of forgetting the semi-colons
and the curly braces are now done away with.
The project can be further expanded by increasing the number of
items available and by providing more options to the customers. For
example, more functions can be made to check if the item which the user
enters is available or not (which involves searching), or to ask the
Customer for home delivery, and also to take the Customer feedback.
Therefore, the project could have been expanded in various other ways.
Using Applets and Application Programming Interface (API), forms
could be prepared to display the menu and the presentation could have
been made much better.

Page 44 of 45 Chocolate Room Billing System


Name: Ayman Eathysham

In the above Project on the Billing System of Chocolate Room, the items to
be displayed in the menu card have been taken from the following
websites:
 www.thechocolateroomindia.com
 www.thechocolateroombrooklyn.com
 www.thechocolateroom.com

Also, the pictures used have been taken from the above sites along with,
 www.google.co.in

The Program has been written keeping in mind the various concepts and
principles explained in the book:
Total Computer Applications (ICSE class 10)
Morning Star
Fifth Revised Edition: 2010

Hence, the program is compiled and executed.

Page 45 of 45 Chocolate Room Billing System

You might also like