“Understanding computer was never easy”. This blog provides you the solution to the programs of ICSE standard in India. Just paste these programs in BlueJ editor and compile them. I will be uploading videos on their explanation once I finish my ICSE 2017. This blog has been setup for aiding school students who have taken up Computer as a subject and have JAVA as a language in their School Syllabus (Class 10), and for guiding them in learning the JAVA programming language using BlueJ editor.
Thursday, 24 August 2017
ICSE 2016 Sample Project
Login :
import java.util.*;
class Login
{
Scanner S = new Scanner(System.in);
static String password="",username,code,stars="";
int j;
static String nam = "";
Menu ob = new Menu();
public void main()
{
System.out.println("Press 1 if you are a registered user");
System.out.println("Press 2 if you are a new user");
System.out.println("Press any other key to exit");
int io = S.nextInt();
Menu.item[1] = "";
Menu.item[2] = "";
Menu.item[3] = "";
Menu.item[4] = "";
Menu.item[0] = "";
if(io==1)
{
System.out.println("
-------------------------------------------------------------");
System.out.println("
!|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||!");
System.out.println(" ||
||");
System.out.println(" || _______________________ ||");
System.out.print(" || Username : | ");
username = S.next();
System.out.println(" ||
||");
System.out.print(" || Password : | ");
code = S.next();
System.out.println(" ||
||");
System.out.println(" ||
||");
System.out.println("
!|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||!");
System.out.println("
-------------------------------------------------------------");
j = code.length();
for(int f = 0; f<=j;f++)
{
stars=stars+'*';
}
System.out.println("
-------------------------------------------------------------");
System.out.println("
!|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||!");
System.out.println(" ||
||");
System.out.println(" || _______________________ ||");
System.out.println(" || Username : | "+username+" >---<");
System.out.println(" ||
||");
System.out.println(" || Password : | "+stars+" >---<");
System.out.println(" ||
||");
System.out.println(" ||
||");
System.out.println(" !|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||!");
System.out.println("
-------------------------------------------------------------");
if(username.equalsIgnoreCase("Snehil"))
{
password =
"snehilroxxx";
}
if(username.equalsIgnoreCase("guest001"))
{
password = "password001";
}
if(username.equalsIgnoreCase("guest002"))
{
password = "password002";
}
if(username.equalsIgnoreCase("guest003"))
{
password = "password003";
}
if(username.equalsIgnoreCase("guest004"))
{
password = "password004";
}
if(username.equalsIgnoreCase("guest005"))
{
password = "password005";
}
if(username.equalsIgnoreCase("guest006"))
{
password = "password006";
}
if(username.equalsIgnoreCase("guest007"))
{
password = "password007";
}
if(username.equalsIgnoreCase("guest008"))
{
password = "password008";
}
if(username.equalsIgnoreCase("guest009"))
{
password = "password009";
}if(username.equalsIgnoreCase("guest0010"))
{
password = "password0010";
}
else
{
System.out.println("Unauthorised User");
}
if(password.equalsIgnoreCase(code))
ob.main();
else
{
System.out.println("Wrong Passcode Entered!");
}
}
else if(io==2)
{
System.out.println("Enter Your First name :-");
nam = S.next();
System.out.println("Enter Username and password of your choice
:-");
username = S.next();
password = S.next();
ob.main();
}
else
System.exit(0);
}
}
Menu :
import java.util.*;
class Menu
{
Scanner S = new Scanner(System.in);
BuyZone bz = new BuyZone();
int choice,j=0;
static String item[] = new String[5];
static int finalprice[] = new int[5];
static int disc[] = new int[5];
static int pric[] = new int[5];
static int noa = 0;
public static void clearScreen()
{
for (int i = 0; i < 250; i++)
{
System.out.println();
}
}
public void main()
{
for(int i = 0; i<=1000000000;i++)
{
if((i%10000000)==0)
{
System.out.println("\f");
System.out.print((j)+"%
Completed");
j++;
}
if(i==1000000000)
{
System.out.println();
}
}
System.out.println("
-------------------------------------------------------------");
System.out.println("
!|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||!");
System.out.println(" ||
||");
System.out.println(" || _______________________ ||");
System.out.println(" || Username : |
"+Login.username+"
>---<");
System.out.println(" || ||");
System.out.println(" || Password : |
"+Login.stars+"
>---<");
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("
Since 2016.");
System.out.println(" Welcome to Bhopal's leading
electricals store.;)");
System.out.println(" Hi! there, how may I help
You?");
System.out.println(" What Do You Wish
Today?");
System.out.println(" Press 1 to enter Buy
Zone");
System.out.println(" Press 2 to exit");
System.out.println(" Press 3 to enlighten us
with your suggestions");
System.out.println(" Press any other key to
exit");
System.out.println("
Enter Your Choice :-");
choice = S.nextInt();
switch(choice)
{
case 1 : bz.main();
break;
case 3 : Feedback kl = new Feedback();
kl.main();
default : System.exit(0);
break;
}
j=0;
}
}
BuyZone :
import java.util.*;
class BuyZone
{
Scanner S = new Scanner(System.in);
Scanner s = new Scanner(System.in);
Appendix1 ob = new Appendix1();
Appendix2 pb = new Appendix2();
Appendix3 qb = new Appendix3();
String kill;
static int nop = 5;
public void main()
{
System.out.println("__________________ __________________ __________________ __________________");
System.out.println("|________________| |________________| |________________| |________________|");
System.out.println("||
|| || || || || || ||");
System.out.println("|| Ceiling Fans || ||
Tubelights || || CFL
& LEDs || ||
Computers ||");
System.out.println("||______________|| ||______________|| ||______________|| ||______________||");
System.out.println("------------------ ------------------ ------------------ ------------------");
System.out.println("__________________ __________________ ______________________ __________________");
System.out.println("|________________| |________________| |____________________| |________________|");
System.out.println("||
|| || || || || || ||");
System.out.println("||
Mixers || ||
Heater || ||Kitchen Appliances|| ||
TV ||");
System.out.println("||______________|| ||______________|| ||__________________|| ||______________||");
System.out.println("------------------ ------------------ ---------------------- ------------------");
System.out.println("___________________ __________________ __________________ ___________________");
System.out.println("|_________________| |________________| |________________| |_________________|");
System.out.println("||
|| || || || || || ||");
System.out.println("||Air
Conditioner|| || Fridge
|| || Dish Washers || ||Washing Machine||");
System.out.println("||_______________|| ||______________|| ||______________|| ||_______________||");
System.out.println("------------------- ------------------ ------------------ -------------------");
System.out.println("TYPE/COPY & PASTE Your Choice, write
anything else to exit");
kill = S.nextLine();
if(kill.equalsIgnoreCase("Ceiling Fans"))
{
System.out.println("Ceiling fans");
ob.fans();
}
if(kill.equalsIgnoreCase("Tubelights"))
{
System.out.println("Tubelights");
ob.tubelights();
}
if(kill.equalsIgnoreCase("CFL & LEDs"))
{
System.out.println("CFL & LEDs");
ob.cflleds();
}
if(kill.equalsIgnoreCase("Computers"))
{
System.out.println("Computers");
ob.computers();
}
if(kill.equalsIgnoreCase("Mixers"))
{
System.out.println("Mixers");
pb.mixers();
}
if(kill.equalsIgnoreCase("Heater"))
{
System.out.println("Heater");
pb.heater();
}
if(kill.equalsIgnoreCase("Kitchen
Appliances"))
{
System.out.println("Kitchen Appliances");
pb.kitchen();
}
if(kill.equalsIgnoreCase("TV"))
{
System.out.println("Televisions");
pb.tvs();
}
if(kill.equalsIgnoreCase("Air Conditioner"))
{
System.out.println("Air Conditioner");
qb.ac();
}
if(kill.equalsIgnoreCase("Fridge"))
{
System.out.println("Fridge");
qb.fridge();
}
if(kill.equalsIgnoreCase("Dish Washers"))
{
System.out.println("Dish Washers");
qb.dishwasher();
}
if(kill.equalsIgnoreCase("Washing Machine"))
{
System.out.println("Washing Machine");
qb.washingmachine();
}
else
{
System.exit(0);
}
}
}
Appendix 1 :
import java.util.*;
class Appendix1
{
Scanner S = new Scanner(System.in);
public void fans()
{
String fan[] = new String[10];
String company[] = new String[10];
int speed[] = new int[10];
int pc[] = new int[10];
String colour[] = new String[10];
int nob[] = new int[10];
int price[] = new int[10];
double weight[] = new double[10];
Billing blow = new Billing();
Menu kb = new Menu();
fan[0] = " Crest LX 3 Blade Fan ";
company[0]= " Bajaj ";
speed[0]= 380;
colour[0]= "Brown";
price[0]= 1299;
pc[0]= 80;
nob[0]= 3;
weight[0]= 4.3;
fan[1] = " CF001 3 Blade Ceiling Fan";
company[1]= " Citron ";
speed[1]= 350;
colour[1]= "Dark Brown";
price[1]= 899;
pc[1]= 85;
nob[1]= 3;
weight[1]= 3.0;
fan[2] = " Whiteline Zest Deco CF-193 3 Blade";
company[2]= " Maharaja ";
speed[2]= 350;
colour[2]= "White";
price[2]= 2000;
pc[2]= 70;
nob[2]= 3;
weight[2]= 3.4;
fan[3] = " Leganza Blade Ceiling Fan ";
company[3]= "Havells";
speed[3]= 350;
colour[3]= "Golden White";
price[3]= 2550;
pc[3]= 72;
nob[3]= 4;
weight[3]= 5.0;
fan[4]= " Raphael Blade Ceiling Fan ";
company[4]= " Usha ";
speed[4]= 270;
colour[4]= "Sea Blue";
price[4]= 2350;
pc[4]= 75;
nob[4] = 3;
weight[4]= 3.0;
int l = 5;
fan[l]= " Brizair Blade Ceiling Fan ";
company[l]= " Crompton Greaves ";
speed[l]= 380;
colour[l]= "White";
price[l]= 1524;
pc[l]= 75;
nob[l] = 3;
weight[l]= 3.7;
l=6;
fan[l]= " Quattro Rose FN-KCAC261BG4A-OQN ";
company[l]= " Kenstar ";
speed[l]= 330;
colour[l]= "Woody Brown";
price[l]= 3990;
pc[l]= 80;
nob[l] = 4;
weight[l]= 4.3;
l=7;
fan[l]= " SHINE DECO Blade Ceiling Fan ";
company[l]= " VOLTGUARD ";
speed[l]= 350;
colour[l]= "Golden White";
price[l]= 1465;
pc[l]= 60;
nob[l] = 3;
weight[l]= 3.5;
l=8;
fan[l]= " Lumaire Underlight Mint LED Fan ";
company[l]= " Luminous ";
speed[l]= 350;
colour[l]= "White";
price[l]= 6100;
pc[l]= 80;
nob[l] = 3;
weight[l]= 3.8;
l=9;
fan[l]= " Quasar Ornamental Ceiling Fan ";
company[l]= " Orient ";
speed[l]= 320;
colour[l]= "Golden Chocolate";
price[l]= 2210;
pc[l]= 68;
nob[l] = 3;
weight[l]= 5;
for(int n=0;n<10;n++)
{
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(" / U
\\");
System.out.println(" / / \\ \\");
System.out.println(" / /
\\ \\");
System.out.println(" / /
\\ \\");
System.out.println(" /__/ \\__\\");
System.out.println("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
System.out.println((n+1)+". "+fan[n]+"\t\t\t||
"+price[n]);
System.out.println("<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
System.out.println("< * Manufacturer : "+company[n]+" !! Speed :
"+speed[n]+"rpm");
System.out.println("< * Power Consume :
"+pc[n]+"W !! Colour :
"+colour[n]);
System.out.println("< * No. of Blades :
"+nob[n]+" !! Weight :
"+weight[n]+"kgs");
System.out.println("vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv");
}
System.out.println("Enter Sr. No. of the chosen fan :");
int choice = S.nextInt();
choice = choice-1;
if(choice>10)
System.out.println("Sorry,
Wrong choice entered (Bill won't print)");
System.out.println("Press 1 to confirm Order & print
Bill");
System.out.println("Press 2 to cancel Order & Exit");
System.out.println("Press 3 to continue shopping");
System.out.println("Press Any other key to exit.");
int ch = S.nextInt();
String name = fan[choice];
int pr = price[choice];
if(ch==1||ch==3)
blow.main(pr,name,ch);
if(ch==2)
System.exit(1);
else
{
System.exit(0);
}
}
public void tubelights()
{
String tubelight[]= new String[10];
String brand[]= new String[10];
String type[]= new String[10];
int power[]=new int[10];
double size[]= new double[10];
String material[] = new String[10];
int price[]= new int[10];
Billing blow = new Billing();
Menu kb = new Menu();
int h = 0;
tubelight[h]= " Polycab Straight Linear LED ";
brand[h]= " Polycab ";
type[h]= "LED";
power[h]= 22;
size[h]= 120;
material[h]= "Plastic";
price[h]= 666;
h = 1;
tubelight[h]= " Syska 4W Straight Linear LED ";
brand[h]= " Syska ";
type[h]= "LED";
power[h]= 4;
size[h]= 12;
material[h]= "Glass";
price[h]= 325;
h = 2;
tubelight[h]= " FortuneArrt 2 Feet Frosted Tube light ";
brand[h]= " FortuneArrt ";
type[h]= "LED";
power[h]= 10;
size[h]= 60;
material[h]= "Aluminium";
price[h]= 725;
h = 3;
tubelight[h]= " Radiant Straight Linear LED ";
brand[h]= " Radiant ";
type[h]= "LED";
power[h]= 10;
size[h]= 60;
material[h]= "Aluminium";
price[h]=350;
h = 4;
tubelight[h]= " Wipro Garnet Straight Linear LED ";
brand[h]= " Wipro ";
type[h]= "LED";
power[h]= 5;
size[h]= 29;
material[h]= "Plastic";
price[h]=410;
h = 5;
tubelight[h]= " SR ENERGIES SRTL2T8 Straight Linear LED ";
brand[h]= " SR ENERGIES ";
type[h]= "LED";
power[h]= 8;
size[h]= 60;
material[h]= "Aluminium";
price[h]=450;
h = 6;
tubelight[h]= " Cromatic CTL200WW Straight Linear LED ";
brand[h]= " Cromatic ";
type[h]= "LED";
power[h]= 20;
size[h]= 20;
material[h]= "Aluminium";
price[h]=400;
h = 7;
tubelight[h]= " Murphy Straight Linear LED ";
brand[h]= " Murphy ";
type[h]= "LED";
power[h]= 8;
size[h]= 32;
material[h]= "Aluminium";
price[h]=290;
h = 8;
tubelight[h]= " Remi Straight Linear LED ";
brand[h]= " Remi ";
type[h]= "LED";
power[h]= 10;
size[h]= 32;
material[h]= "Plastic";
price[h]= 409;
h = 9;
tubelight[h]= " Wipro Garnet Magma LED ";
brand[h]= " Wipro ";
type[h]= "LED";
power[h]= 7;
size[h]= 36;
material[h]= "Glass";
price[h]= 1489;
for(int n = 0; n<10;n++)
{
System.out.println("
______________________________________________");
System.out.println(":||______________________________________________||:");
System.out.println("
''''''''''''''''''''''''''''''''''''''''''''''");
System.out.println("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
System.out.println((n+1)+". "+tubelight[n]+"\t\t\t||
"+price[n]);
System.out.println("<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
System.out.println("< * Manufacturer : "+brand[n]);
System.out.println("< * Power Consume :
"+power[n]+"W !! Material :
"+material[n]);
System.out.println("< * Size : "+size[n]);
System.out.println("vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv");
}
System.out.println("Enter Sr. No. of the chosen fan :");
int choice = S.nextInt();
choice = choice-1;
if(choice>10)
System.out.println("Sorry, Wrong choice entered (Bill won't
print)");
System.out.println("Press 1 to confirm Order & print
Bill");
System.out.println("Press 2 to cancel Order & Exit");
System.out.println("Press 3 to continue shopping");
System.out.println("Press Any other key to exit.");
int ch = S.nextInt();
String name = tubelight[choice];
int pr = price[choice];
if(ch==1||ch==3)
blow.main(pr,name,ch);
if(ch==2)
System.exit(1);
else
{
System.exit(0);
}
}
public void cflleds()
{
String bulb[] = new String[10];
String comp[] = new String[10];
String Material[] = new String[10];
int consumption[] = new int[10];
int volt[] = new int[10];
int warranty[] = new int[10];
String Type[] = new String[10];
int Price[] = new int[10];
Billing blow = new Billing();
Menu kb = new Menu();
int k = 0;
bulb[k] = " Eveready B22 CFL Bulb ";
comp[k] = " Eveready ";
Material[k] = "Glass";
consumption[k] = 15;
volt[k] = 220;
warranty[k] = 12;
Type[k] = "CFL";
Price[k] = 120;
k = 1;
bulb[k] = " Philips B22 CFL Bulb";
comp[k] = " Philips ";
Material[k] = "Glass & Plastic";
consumption[k] = 14;
volt[k] = 240;
warranty[k] = 12;
Type[k] = "CFL";
Price[k] = 150;
k = 2;
bulb[k] = " Halonix B22 CFL Bulb ";
comp[k] = " Halonix ";
Material[k] = "Glass";
consumption[k] = 11;
volt[k] = 220;
warranty[k] = 12;
Type[k] = "CFL";
Price[k] = 170;
k = 3;
bulb[k] = " Philips 32 W B22 CFL Bulb ";
comp[k] = " Philips ";
Material[k] = "Glass & Plastic";
consumption[k] = 32;
volt[k] = 220;
warranty[k] = 6;
Type[k] = "CFL";
Price[k] = 350;
k = 4;
bulb[k] = " Oranate B22 CFL Bulb ";
comp[k] = " Oranate
";
Material[k] = "Glass & Plastic";
consumption[k] = 20;
volt[k] = 240;
warranty[k] = 12;
Type[k] = "CFL";
Price[k] = 170;
k = 5;
bulb[k] = " Eveready 9 W B22 LED Bulb ";
comp[k] = " Eveready ";
Material[k] = "Plastic";
consumption[k] = 9;
volt[k] = 220;
warranty[k] = 6;
Type[k] = "LED";
Price[k] = 140;
k = 6;
bulb[k] = " Syska Led Lights B22 LED Bulb ";
comp[k] = " Syska ";
Material[k] = "Polycarbonate";
consumption[k] = 18;
volt[k] = 240;
warranty[k] = 12;
Type[k] = "LED";
Price[k] = 320;
k = 7;
bulb[k] = " Wipro 14 W B22 LED Bulb ";
comp[k] = " Wipro ";
Material[k] = "Polycarbonate";
consumption[k] = 14;
volt[k] = 240;
warranty[k] = 6;
Type[k] = "LED";
Price[k] = 275;
k = 8;
bulb[k] = " Philips 7 W B22 LED Bulb ";
comp[k] = " Philips ";
Material[k] = "Plastic";
consumption[k] = 7;
volt[k] = 220;
warranty[k] = 16;
Type[k] = "LED";
Price[k] = 300;
k = 9;
bulb[k] = " Moserbaer 7 W B22 LED Bulb ";
comp[k] = " Moserbaer ";
Material[k] = "Polycarbonate";
consumption[k] = 7;
volt[k] = 240;
warranty[k] = 6;
Type[k] = "LED";
Price[k] = 150;
for(int n = 0; n<10;n++)
{
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("
-__||__- ; (O)
:");
System.out.println("
|______| '. | | .'");
System.out.println("
<______>
|_|_|_|");
System.out.println("
<______> |.-',-|");
System.out.println("
\\/ |.-'.-|");
System.out.println("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
System.out.println((n+1)+". "+bulb[n]+"\t\t\t||
"+Price[n]);
System.out.println("<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
System.out.println("< * Manufacturer : "+comp[n]);
System.out.println("< * Power Consume :
"+consumption[n]+"W !!
Material : "+Material[n]);
System.out.println("< * Type : "+Type[n]+" !!
Warranty :"+warranty[n]+"
months");
System.out.println("vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv");
}
System.out.println("Enter Sr. No. of the chosen fan :");
int choice = S.nextInt();
choice = choice-1;
if(choice>10)
System.out.println("Sorry, Wrong choice entered (Bill won't
print)");
System.out.println("Press 1 to confirm Order & print
Bill");
System.out.println("Press 2 to cancel Order & Exit");
System.out.println("Press 3 to
continue shopping");
System.out.println("Press Any other key to exit.");
int ch = S.nextInt();
String name = bulb[choice];
int pr = Price[choice];
if(ch==1||ch==3)
blow.main(pr,name,ch);
if(ch==2)
System.exit(1);
else
{
System.exit(0);
}
}
public void computers()
{
String model[] = new String[20];
String Company[] = new String[20];
String Processor[] = new String[20];
int ram[] = new int[20];
int rom[] = new int[20];
double speed[] = new double[20];
String OS[] = new String[20];
double Weight[] = new double[20];
double display[] = new double[20];
String graphics[] = new String[20];
int port[] = new int[20];
int price[] = new int[20];
Billing blow = new Billing();
Menu kb = new Menu();
int z = 0;
model[z] = " MSI 6RF GT83VR Notebook ";
Company[z] = " MSI ";
Processor[z] = "Intel i7 6Gen";
ram[z]= 32;
rom[z]= 1000;
speed[z] = 3.6;
OS[z] = "Windows 10 Home";
Weight[z] = 5.5;
display[z] = 18.4;
graphics[z] = "8GB NVIDIA GeForce";
port[z] = 3;
price[z] = 475000;
z = 1;
model[z] = " Asus ROG 90NB09V1-M06060 G752VY-GC489T Notebook
";
Company[z] = " Asus ";
Processor[z] = "Intel i7 6Gen";
ram[z]= 16;
rom[z]= 1000;
speed[z] = 3.5;
OS[z] = "Windows 10 Home";
Weight[z] = 4.3;
display[z] = 17.3;
graphics[z] = "8GB NVIDIA GeForce";
port[z] = 3;
price[z] = 178290;
z = 2;
model[z] = " Apple MacBook Pro MJLT2HN/A Notebook ";
Company[z] = " Apple ";
Processor[z] = "Intel i7 5Gen";
ram[z]= 16;
rom[z]= 512;
speed[z] = 3.2;
OS[z] = "iOS";
Weight[z] = 4.5;
display[z] = 15.0;
graphics[z] = "2GB Intel";
port[z] = 2;
price[z] = 177650;
z = 3;
model[z] = " Alienware R2 Z569971HIN9 R2 Notebook ";
Company[z] = " DELL ";
Processor[z] = "Intel i7
6Gen";
ram[z]= 8;
rom[z]= 1000;
speed[z] = 3.5;
OS[z] = "Windows 10 Home";
Weight[z] = 5.0;
display[z] = 17.3;
graphics[z] = "8GB NVIDIA GeForce";
port[z] = 3;
price[z] = 153000;
z = 4;
model[z] = " Acer Predator NH.Q0PSI.001 G9-792 Notebook ";
Company[z] = " Acer ";
Processor[z] = "Intel i7 5Gen";
ram[z]= 16;
rom[z]= 1000;
speed[z] = 3.5;
OS[z] = "Windows 10 Home";
Weight[z] = 4.2;
display[z] = 17.3;
graphics[z] = "8GB NVIDIA GeForce";
port[z] = 3;
price[z] = 142200;
z = 5;
model[z] = " Dell XPS
Z560035HIN9 9350 Ultrabook ";
Company[z] = " DELL ";
Processor[z] = "Intel i7 6Gen";
ram[z]= 8;
rom[z]= 1000;
speed[z] = 3.6;
OS[z] = "Windows 10 Home";
Weight[z] = 1.29;
display[z] = 13.3;
graphics[z] = "4GB Intel HD Graphics 520";
port[z] = 2;
price[z] = 136990;
z = 6;
model[z] = " HP Core i7
L2Z81PA 13-4013TU x360 Ultrabook ";
Company[z] = " HP ";
Processor[z] = "Intel i7 5Gen";
ram[z]= 8;
rom[z]= 512;
speed[z] = 3.0;
OS[z] = "Windows 8.1";
Weight[z] = 1.48;
display[z] = 13.3;
graphics[z] = "Intel HD Graphics 5500";
port[z] = 3;
price[z] = 127000;
z = 7;
model[z] = " Microsoft
Surface Pro 4 CR3-00022 1724 2 in 1 Laptop ";
Company[z] = " Microsoft ";
Processor[z] = "Intel i5 6Gen";
ram[z]= 8;
rom[z]= 512;
speed[z] = 3.0;
OS[z] = "Windows 10 Home";
Weight[z] = 0.78;
display[z] = 12.3;
graphics[z] = "4GB Intel HD Graphics 520";
port[z] = 1;
price[z] = 121000;
z = 8;
model[z] = " HP Pavilion W6T21PA 15-au008TX Notebook ";
Company[z] = " HP ";
Processor[z] = "Intel i7 6Gen";
ram[z]= 16;
rom[z]= 2000;
speed[z] = 3.1;
OS[z] = "Windows 10 Home";
Weight[z] = 2.03;
display[z] = 15.6;
graphics[z] = "4 GB Integrated Intel Graphics";
port[z] = 3;
price[z] = 82390;
z = 9;
model[z] = " Dell Inspiron Y567503HIN9 7559 Notebook ";
Company[z] = " DELL ";
Processor[z] = "Intel i7 6Gen";
ram[z]= 16;
rom[z]= 1000;
speed[z] = 3.5;
OS[z] = "Windows 10 Home";
Weight[z] = 2.57;
display[z] = 15.6;
graphics[z] = "4 GB Integrated Intel Graphics";
port[z] = 3;
price[z] = 112000;
z = 10;
model[z] = " Apple New Series iMac 4K Retina Iris Pro 6200 ";
Company[z] = " Apple ";
Processor[z] = "Intel i5 6Gen";
ram[z]= 8;
rom[z]= 1000;
speed[z] = 3.1;
OS[z] = "iOS";
Weight[z] = 5.68;
display[z] = 21.5;
graphics[z] = "Retina 4K 512MB";
port[z] = 4;
price[z] = 114850;
z = 11;
model[z] = " HP 23 Q-141in ";
Company[z] = " HP ";
Processor[z] = "Intel i5 6Gen";
ram[z]= 8;
rom[z]= 1000;
speed[z] = 2.8;
OS[z] = "Windows 8.1";
Weight[z] = 8.07;
display[z] = 23.0;
graphics[z] = "2 GB Integrated Intel Graphics";
port[z] = 5;
price[z] = 78500;
z = 12;
model[z] = " ASUS G11CD-DB71 Gaming Desktop ";
Company[z] = " ASUS ";
Processor[z] = "Intel i7 5Gen";
ram[z]= 16;
rom[z]= 1000;
speed[z] = 3.4;
OS[z] = "Windows 10 Home";
Weight[z] = 11.0;
display[z] = 0.0;
graphics[z] = "8GB Nvidia GeForce GTX 970";
port[z] = 4;
price[z] = 101000;
z = 13;
model[z] = " Intel Core i7 6th Gen Mini PC ";
Company[z] = " Assembled ";
Processor[z] = "Intel i7 4Gen";
ram[z]= 32;
rom[z]= 1000;
speed[z] = 2.6;
OS[z] = "MS DOS";
Weight[z] = 1.4;
display[z] = 0.0;
graphics[z] = "4 GB Integrated Intel Graphics";
port[z] = 4;
price[z] = 100000;
z = 14;
model[z] = " Dell Inspiron Y267501HIN9 Touch Screen All-in-One
Desktop ";
Company[z] = " DELL ";
Processor[z] = "Intel i5 6Gen";
ram[z]= 8;
rom[z]= 1000;
speed[z] = 2.8;
OS[z] = "Windows 10 Home";
Weight[z] = 6.4;
display[z] = 23.8;
graphics[z] = "4 GB Integrated Intel Graphics";
port[z] = 4;
price[z] = 83250;
z = 15;
model[z] = " Lenovo Ideacentre 700 All-in-One Touchscreen Desktop
";
Company[z] = " Lenovo ";
Processor[z] = "Intel i5 6Gen";
ram[z]= 8;
rom[z]= 1000;
speed[z] = 3.3;
OS[z] = "Windows 10 Home";
Weight[z] = 9.0;
display[z] = 23.8;
graphics[z] = "2GB Nvidia GTX950A";
port[z] = 3;
price[z] = 77890;
z = 16;
model[z] = " Lenovo C C20-30 ";
Company[z] = " Lenovo ";
Processor[z] = "Intel Pentium Dual Core 4Gen";
ram[z]= 2;
rom[z]= 500;
speed[z] = 1.7;
OS[z] = "MS DOS";
Weight[z] = 4.85;
display[z] = 19.5;
graphics[z] = "2GB Intel HD Graphics";
port[z] = 3;
price[z] = 34980;
z = 17;
model[z] = " Asus ET2231IUK-BC018X All-in-One Desktop ";
Company[z] = " Asus ";
Processor[z] = "Intel i3 4Gen";
ram[z]= 4;
rom[z]= 1000;
speed[z] = 1.7;
OS[z] = "Windows 10 Home";
Weight[z] = 7.0;
display[z] = 21.5;
graphics[z] = "4GB Intel HD Graphics";
port[z] = 4;
price[z] = 39900;
z = 18;
model[z] = " HP Slimline 260-P020IL Wireless Desktop ";
Company[z] = " HP ";
Processor[z] = "Intel i3 6Gen";
ram[z]= 4;
rom[z]= 1000;
speed[z] = 3.2;
OS[z] = "MS DOS";
Weight[z] = 6.0;
display[z] = 0.0;
graphics[z] = "2GB Intel HD Graphics";
port[z] = 4;
price[z] = 23970;
z = 19;
model[z] = " HP 20-C010IL 19.5-inch All-in-One Desktop ";
Company[z] = " HP ";
Processor[z] = "Intel Pentium J3710 processor";
ram[z]= 4;
rom[z]= 1000;
speed[z] = 1.6;
OS[z] = "MS DOS";
Weight[z] = 7.0;
display[z] = 19.5;
graphics[z] = "Intel HD Graphics";
port[z] = 4;
price[z] = 27290;
for(int lol = 0; lol<20;lol++)
{
if(model[lol].length()<60)
{
for(int go =
model[lol].length(); go<60;go++)
model[lol] = model[lol]+' ';
}
if(Company[lol].length()<11)
{
for(int go =
Company[lol].length(); go<11;go++)
Company[lol] = Company[lol]+'
';
}
if(lol>10)
{
System.out.println(" ____________________________");
System.out.println(" !\\_________________________/!\\
_________________________________________________________________________________________________________________");
System.out.println(" !! !!
\\ | S.no. | Model
| Price |");
System.out.println(" !! !! !
-----------------------------------------------------------------------------------------------------------------");
System.out.println(" !! !! ! |
"+(lol+1)+". | "+model[lol]+" | "+price[lol]+" |");
System.out.println(" !! !! !
`````````<> Brand :
"+Company[lol]+" <> Processor :
"+Processor[lol]+"``````````````````````````````````");
System.out.println(" !! !! !
<> RAM : "+ram[lol]+" GB <> HDD Cap. : "+rom[lol]+" GB");
System.out.println(" !! !! !
<> Speed :
"+speed[lol]+" gHz <>
OS : "+OS[lol]);
System.out.println(" !!
!! /
<> USB Ports: "+port[lol]+" <> Graphics : "+graphics[lol]);
System.out.println(" !!_________________________!! / <> Weight : "+Weight[lol]+" kg <> Display : "+display[lol]+" inches");
System.out.println(" !/_________________________\\!/");
System.out.println(" __\\_________________/__/!_");
System.out.println(" !_______________________!/ )");
System.out.println(" ________________________ (__");
System.out.println(" /oooo
oooo oooo oooo /!
_ )_");
System.out.println(" /ooooooooooooooooooooooo/ / (_)_(_)");
System.out.println("
/ooooooooooooooooooooooo/ / (o
o)");
System.out.println("/C=_____________________/_/ ==\\o/==");
}
else
{
System.out.println("
.-----------------------===------------------------. ____________________________________________________________________________________________________");
System.out.println(" :o
______________________________________________ o:
| S.No. | Model | Price
|");
System.out.println(" ;
: : ;
----------------------------------------------------------------------------------------------------");
System.out.println(" `.
`. .' .'
| "+(lol+1)+". |
"+model[lol]+"
| "+price[lol]+"|");
System.out.println(" :
: : :
`````````<> Brand :- "+Company[lol]+" <> Processor
: "+Processor[lol]+" `````````````````````````");
System.out.println(" `.
`.
.' .' <> RAM : "+ram[lol]+" GB <> HDD Cap. : "+rom[lol]+" GB");
System.out.println(" :
:
: : <> Speed : "+speed[lol]+" gHz <> OS : "+OS[lol]);
System.out.println(" `.
`.
.' .' <> USB ports:
"+port[lol]+"
<> Graphics : "+graphics[lol]);
System.out.println(" :
:
: : <> Weight : "+Weight[lol]+"kg <> Display : "+display[lol]+" inches");
System.out.println(" `.
`. .' .'
");
System.out.println(" :
:
: : ");
System.out.println(" `.
`.
.' .' ");
System.out.println(" :
:__________________________________:
: ");
System.out.println(" `. iSnehil .' ");
System.out.println(" '-------------| |-----|
|--------------'
");
System.out.println("
.\"\"\"\"\"\"\"\"\"\"\"\"\"\"| |\"\"\"\"\"|
|\"\"\"\"\"\"\"\"\"\"\"\"\"\".");
System.out.println(" |
() '-----------' o
() |");
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(" | ___ |");
System.out.println("
'-----------------------------------------'");
}
}
System.out.println("Enter Sr. No. of the chosen Computer :");
int choice = S.nextInt();
choice = choice-1;
if(choice>20)
System.out.println("Sorry, Wrong choice entered (Bill won't
print)");
System.out.println("Press 1 to confirm Order & print
Bill");
System.out.println("Press 2 to cancel Order & Exit");
System.out.println("Press 3 to continue shopping");
System.out.println("Press Any other key to exit.");
int ch = S.nextInt();
String name = model[choice];
int pr = price[choice];
if(ch==1||ch==3)
blow.main(pr,name,ch);
if(ch==2)
System.exit(1);
else
{
System.exit(0);
}
}
}
Appendix 2 :
import java.util.*;
class Appendix2
{
Scanner S = new Scanner(System.in);
public void mixers()
{
System.out.println("Mixers/Grinders");
String mixer[] = new String[10];
String company[] = new String[10];
int output[] = new int[10];
int price[] = new int[10];
int warranty[] = new int[10];
Billing blow = new Billing();
Menu kb = new Menu();
int b = 0;
b=0;
mixer[b] = " Bajaj Rex Mixer Grinder with 3 Jars ";
company[b] = " Bajaj ";
output[b] = 500;
price[b] = 1749;
warranty[b] = 12;
b=1;
mixer[b] = " Maharaja Whiteline Joy Turbo Mixer Grinder with 3 Jars
(Black/Silver) ";
company[b] = " Maharaja ";
output[b] = 750;
price[b] = 2600;
warranty[b] = 60;
b=2;
mixer[b] = " Bajaj Twister Mixer Grinder with 3 Jars ";
company[b] = " Bajaj ";
output[b] = 750;
price[b] = 3051;
warranty[b] = 60;
b=3;
mixer[b] = " Morphy Richards Icon Classique Mixer Grinder ";
company[b] = " Morphy Richards ";
output[b] = 750;
price[b] = 3850;
warranty[b] = 24;
b=4;
mixer[b] = " Philips Viva Collection HL7701/00 Mixer Grinder with 4
Jars ";
company[b] = " Philips ";
output[b] = 750;
price[b] = 4100;
warranty[b] = 12;
b=5;
mixer[b] = " Maharaja Whiteline Gala JX-117 Juicer Mixer Grinder
with 2 Jars ";
company[b] = " Maharaja ";
output[b] = 450;
price[b] = 1900;
warranty[b] = 12;
b=6;
mixer[b] = " Hyundai HJS50W2A-DBB Juicer Mixer Grinder ";
company[b] = " Hyundai ";
output[b] = 500;
price[b] = 1800;
warranty[b] = 24;
b=7;
mixer[b] = " Prestige Champ Juicer Mixer Grinder ";
company[b] = " Prestige ";
output[b] = 550;
price[b] = 2500;
warranty[b] = 12;
b=8;
mixer[b] = " Philips Amaze HL7576/00 Juicer Mixer Grinder with 3
Jars (Celestial Blue/Bright White) ";
company[b] = " Philips ";
output[b] = 600;
price[b] = 3700;
warranty[b] = 24;
b=9;
mixer[b] = " Havells Endura GHFJMAHW050 Juicer Mixer Grinder with 3
Jars ";
company[b] = " Havells ";
output[b] = 500;
price[b] = 3500;
warranty[b] = 24;
for(int y= 0;y<10;y++)
{
if(mixer[y].length()<87)
for(int ui = mixer[y].length();ui<=87;ui++)
mixer[y] = mixer[y]+' ';
if(company[y].length()<17)
for(int ui = company[y].length();ui<=17;ui++)
company[y] = company[y]+' ';
System.out.println("
___ ___");
System.out.println("
/ |-[ ]-| \\ ___________________________________________________________________________________________________________ ");
System.out.println("
| | | S.no. | Mixer
| Price |");
System.out.println("
| | ------------------------------------------------------------------------------------------------------------");
System.out.println("
| | | "+(y+1)+". | "+mixer[y]+"|
"+price[y]+" |");
System.out.println("
| | ````````` @ Manufacturer : "+company[y]+"|
@ Output : "+output[y]+" W");
System.out.println("
| | @ Warranty : "+warranty[y]+" months");
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("888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888");
}
System.out.println("Enter Sr. No. of the chosen mixer/grinder
:");
int choice = S.nextInt();
choice = choice-1;
if(choice>10)
System.out.println("Sorry, Wrong choice entered (Bill won't
print)");
System.out.println("Press 1 to confirm Order & print
Bill");
System.out.println("Press 2 to cancel Order & Exit");
System.out.println("Press 3 to continue shopping");
System.out.println("Press Any other key to exit.");
int ch = S.nextInt();
String name = mixer[choice];
int pr = price[choice];
if(ch==1||ch==3)
blow.main(pr,name,ch);
if(ch==2)
System.exit(1);
else
{
System.exit(0);
}
}
public void heater()
{
String heater[] = new String[10];
String company[] = new String[10];
int price[] = new int[10];
int warranty[] = new int[10];
double rating[] = new double[10];
double capacity[] = new double[10];
Billing blow = new Billing();
Menu kb = new Menu();
int x;
x=0;
heater[x]= " Kenstar Jacuzzi KGT03W2P Instant Water Heater ";
company[x]= " Kenstar ";
price[x]= 2409;
warranty[x]= 72;
rating[x]= 3;
capacity[x]= 3.0;
x=1;
heater[x]= " Hindware Atlantic HI03PDW30 Water Heater (White/Grey)
";
company[x]= " Hindware ";
price[x]= 2450;
warranty[x]= 24;
rating[x]= 3.5;
capacity[x]= 3.0;
x=2;
heater[x]= " Crompton Greaves Solarium Plus IWH03PC1 Instant Water
Heater ";
company[x]= " Crompton Greaves ";
price[x]= 2660;
warranty[x]= 24;
rating[x]= 3.0;
capacity[x]= 3.0;
x=3;
heater[x]= " V-Guard Sprinhot Water Heater ";
company[x]= " V-Guard ";
price[x]= 3400;
warranty[x]= 36;
rating[x]= 4.0;
capacity[x]= 3.0;
x=4;
heater[x]= " Maharaja Whiteline Classico Water Heater (White and
Blue) ";
company[x]= " Maharaja ";
price[x]= 4500;
warranty[x]= 36;
rating[x]= 3.5;
capacity[x]= 15.0;
x=5;
heater[x]= " Bajaj New Shakti Vertical water heater ";
company[x]= " Bajaj ";
price[x]= 5670;
warranty[x]= 24;
rating[x]= 4.0;
capacity[x]= 15.0;
x=6;
heater[x]= " Crompton Solarium DLX SWH815 Water Heater (Ivory)
";
company[x]= " Crompton ";
price[x]= 6670;
warranty[x]= 36;
rating[x]= 4.0;
capacity[x]= 15.0;
x=7;
heater[x]= " AO Smith HSE-SDS Vertical Water Heater (White) ";
company[x]= " Jaguar ";
price[x]= 10100;
warranty[x]= 48;
rating[x]= 5.0;
capacity[x]= 25.0;
x=8;
heater[x]= " Sun Shot Solar Water Heater 100LPD ";
company[x]= " SUN Shot solar ";
price[x]= 15000;
warranty[x]= 60;
rating[x]= 0.0;
capacity[x]= 80.0;
x=9;
heater[x]= " Suntek Energy Metal Solar Water Heater ";
company[x]= " Suntek Energy ";
price[x]= 18000;
warranty[x]= 48;
rating[x]= 0.0;
capacity[x]= 100.0;
for(int y= 0;y<10;y++)
{
if(heater[y].length()<62)
for(int ui = heater[y].length();ui<=62;ui++)
heater[y] = heater[y]+' ';
if(company[y].length()<18)
for(int ui = company[y].length();ui<=18;ui++)
company[y] = company[y]+' ';
System.out.println("
_________________________________");
System.out.println(" (_________________________________)");
System.out.println(" | |
____________________________________________________________________________________________________");
System.out.println(" | | | S.no. | Heater |
Price |");
System.out.println(" | | ----------------------------------------------------------------------------------------------------");
System.out.println(" | | | '.
| "+heater[y]+" | "+price[y]+"
");
System.out.println(" | | ````````` # Manufacturer : "+company[y]+"|
# BEE Star Rating : "+rating[y]+" ");
System.out.println(" | | # Capacity : "+capacity[y]+" Litre | # Warranty : "+warranty[y]+"
Months");
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(" | "+company[y]+" |");
System.out.println("
+-------------------------------+");
System.out.println(" \\ /");
System.out.println("
\\
/");
System.out.println("
=============================");
System.out.println("
0()0 0()0");
System.out.println("
() ()");
System.out.println("
() () ");
System.out.println("69696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969696969");
System.out.println("");
}
System.out.println("Enter Sr. No. of the chosen Heater :");
int choice = S.nextInt();
choice = choice-1;
if(choice>10)
System.out.println("Sorry, Wrong choice entered (Bill won't
print)");
System.out.println("Press 1 to confirm Order & print
Bill");
System.out.println("Press 2 to cancel Order & Exit");
System.out.println("Press 3 to continue shopping");
System.out.println("Press Any other key to exit.");
int ch = S.nextInt();
String name = heater[choice];
int pr = price[choice];
if(ch==1||ch==3)
blow.main(pr,name,ch);
if(ch==2)
System.exit(1);
else
{
System.exit(0);
}
}
public void kitchen()
{
String name[] = new String[20];
int powcon[] = new int[20];
int volt[] = new int[20];
String Company[] = new String[20];
String Colour[] = new String[20];
int price[] = new int[20];
double weight[] = new double[20];
double cap[] = new double[8];
int warr[] = new int[20];
String Material[] = new String[20];
Billing blow = new Billing();
Menu kb = new Menu();
int y;
y=0;
name[y] = " Aquaguard Crystal Plus UV Water Purifier ";
Company[y] = " Aquaguard ";
price[y] = 7750;
Colour[y] = "White";
powcon[y] = 18;
volt[y] = 230;
weight[y] = 4.5;
cap[y] = 30.0;
warr[y] = 24;
y=1;
name[y] = " Kent Ace+ RO + UF Water Purifier ";
Company[y] = " Kent ";
price[y] = 15500;
Colour[y] = "White-Blue";
powcon[y] = 24;
volt[y] = 240;
weight[y] = 7.3;
cap[y] = 15.0;
warr[y] = 24;
y=2;
name[y] = " Hindustan Unilever Marvella RO Water Purifier ";
Company[y] = " Hindustan Unilever ";
price[y] = 16000;
Colour[y] = "Silver White";
powcon[y] = 36;
volt[y] = 240;
weight[y] = 8.4;
cap[y] = 10.0;
warr[y] = 24;
y=3;
name[y] = " Pureit Marvella RO + UV Water Purifier ";
Company[y] = " PureIt ";
price[y] = 16490;
Colour[y] = "White-Blue";
powcon[y] = 30;
volt[y] = 220;
weight[y] = 8.0;
cap[y] = 10.0;
warr[y] = 24;
y=4;
name[y] = " IFB Solo Microwave Oven ";
Company[y] = " IFB ";
price[y] = 4100;
Colour[y] = "White";
powcon[y] = 1200;
volt[y] =230;
weight[y] = 11.3;
cap[y] = 17.0;
warr[y] = 12;
y=5;
name[y] = " Whirlpool Grill Microwave Oven ";
Company[y] = " Whirlpool ";
price[y] = 9290;
Colour[y] = "Black";
powcon[y] = 900;
volt[y] =230;
weight[y] = 13.2;
cap[y] = 25.0;
warr[y] = 24;
y=6;
name[y] = " Onida Convection Microwave Oven ";
Company[y] = " Onida ";
price[y] = 11690;
Colour[y] = "Black-White";
powcon[y] = 800;
volt[y] = 240;
weight[y] = 14.5;
cap[y] =23.0;
warr[y] = 24;
y=7;
name[y] = " LG 28 L Convection Microwave Oven ";
Company[y] = " LG ";
price[y] = 19090;
Colour[y] = "Reddish Brown";
powcon[y] = 900;
volt[y] = 230;
weight[y] = 18.5;
cap[y] =28.0;
warr[y] = 18;
y=8;
name[y] = " Philips HD4929/01 Induction Cooktop ";
Company[y] = " Philips ";
price[y] = 2900;
powcon[y] = 2100;
volt[y] = 220;
warr[y] = 12;
Colour[y] = "Golden-Black";
y=9;
name[y] = " Bajaj Majesty ICX 7 Induction Cooktop ";
Company[y] = " Bajaj ";
price[y] = 4000;
powcon[y] = 1900;
volt[y] = 220;
warr[y] = 12;
Colour[y] = "Golden-Black";
y=10;
name[y] = " Prestige PIC 3.0 V2 Induction Cooktop ";
Company[y] = " Prestige ";
price[y] = 4595;
powcon[y] = 2000;
volt[y] = 230;
warr[y] = 12;
Colour[y] = "Black";
y=11;
name[y] = " Orpat OEK-8147 Electric Kettle ";
Company[y] = " Orpat ";
price[y] =930;
powcon[y] = 1350;
volt[y] = 230;
warr[y] = 12;
Material[y] = "Metal";
y=12;
name[y] = " Wonderchef Electric Kettle ";
Company[y] = " Wonderchef ";
price[y] =1800;
powcon[y] = 1000;
volt[y] = 220;
warr[y] = 12;
Material[y] = "Metal-Plastic";
y=13;
name[y] = " Philips HD-9303 Electric Kettle ";
Company[y] = " Philips ";
price[y] =2160;
powcon[y] = 1800;
volt[y] = 230;
warr[y] = 24;
Material[y] = "Stainless Steel";
y= 14;
name[y] = " Maharaja Whiteline Turbomix HB-100 Hand Blender ";
Company[y] = " Maharaja ";
price[y] =1200;
powcon[y] = 350;
volt[y] = 230;
warr[y] = 24;
y= 15;
name[y] = " Kenstar KHS20W1P-DBH Hand Blender ";
Company[y] = " Kenstar ";
price[y] =1290;
powcon[y] = 200;
volt[y] = 220;
warr[y] = 12;
y= 16;
name[y] = " Bajaj Majesty HB05 Hand Blender ";
Company[y] = " Bajaj ";
price[y] =1300;
powcon[y] = 250;
volt[y] = 230;
warr[y] = 1;
for(int yo= 0;yo<17;yo++)
{
if(name[yo].length()<49)
for(int ui = name[yo].length();ui<=49;ui++)
name[yo] = name[yo]+' ';
if(Company[yo].length()<20)
for(int ui = Company[yo].length();ui<=20;ui++)
Company[yo] = Company[yo]+' ';
if(yo>13)
{
System.out.println("
__________");
System.out.println(" [ ]");
System.out.println(" [ ]
________________________________________________________________________________________________________");
System.out.println(" [ ] | S.No. | Blender
| Price |");
System.out.println(" [ ]
--------------------------------------------------------------------------------------------------------");
System.out.println(" [ ] | "+(yo+1)+". | "+name[yo]+" |
"+price[yo]+" |");
System.out.println(" [ ] ````````` $ Company : "+Company[yo]+" | $ Power
Consumption : "+powcon[yo]+" W");
System.out.println(" [ ] $ Voltage : "+volt[yo]+" Volt | $ Warranty : "+warr[yo]+"
Months");
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("
||");
System.out.println(" ||");
System.out.println("
||");
System.out.println("
||");
System.out.println("
||");
System.out.println("
/ \\");
System.out.println("
====");
System.out.println("
+ +");
System.out.println("");
}
if(yo<4)
{
System.out.println("
___________________________");
System.out.println("
| |
______________________________________________________________________________________________________________");
System.out.println(" |
+=====================+ | | S.no. | Purifier
| Price |");
System.out.println(" |
| ______________ | |
+-------+--------------------------------------------------------------------------------------------+-------+");
System.out.println(" |
| ( ) | |
| '. | "+name[yo]+" |
"+price[yo]+" |");
System.out.println(" |
| `````````````:: | | ````````| Company : "+Company[yo]+"|
Colour : Silver White | |");
System.out.println(" |
| ,:_________:, | |
| Power Consumption : "+powcon[yo]+" W | Supply : "+volt[yo]+" V @ 50 Hz AC | |");
System.out.println(" |
| | | | Weight : "+weight[yo]+" Kg | Capacity: "+cap[yo]+"
Litre | |");
System.out.println(" |
| | | | Warranty : "+warr[yo]+" Months
| |");
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("
|||||||||||||||||||||||||||");
}
if((yo>3)&&(yo<8))
{
System.out.println(" .------------------.");
System.out.println("
/____________________\\
______________________________________________________________________________________________________");
System.out.println(" ||\\
________ /[] _ || | S.no. | Microvave
Oven
|
Price |");
System.out.println(" ||
|: :| []o(_)||
+-------+------------------------------------------------------------------------------------+-------+");
System.out.println(" ||
|;-\"\"\"\"-;| []o(_)|| | "+(yo+1)+". | "+name[yo]+" |
"+price[yo]);
System.out.println(" ||
|________| [] __ || ````````| % Brand
: "+Company[yo]+"| % Colour
: "+Colour[yo]);
System.out.println("
||/__________\\[][__]|| | %
Warranty : "+warr[yo]+" Months | % Consumption:
"+powcon[yo]+" W ");
System.out.println("
\"--------------------\"
| % Supply :
"+volt[yo]+" V @ 50Hz AC |
% Weight : "+weight[yo]+" Kg");
System.out.println("
====================== | %
Capacity : "+cap[yo]+" Litre");
System.out.println();
}
if((yo>10)&&(yo<14))
{
System.out.println(" .------.");
System.out.println(" .-'
|
______________________________________________________________________________________________");
System.out.println("
((_| | | S.No. | Electric
Kettle
| Price |");
System.out.println(" '-.________|
+-------+----------------------------------------------------------------------------+-------+");
System.out.println(" |
| | "+(yo+1)+". |
"+name[yo]+"
| "+price[yo]);
System.out.println(" |// // //| ````````| Company :
"+Company[yo]+"| Material :
"+Material[yo]);
System.out.println(" |\\\\ \\\\ \\\\| | Warranty: "+warr[yo]+"
Months | Consumption :
"+powcon[yo]);
System.out.println(" |// // //| | Supply : "+volt[yo]+" Volt @ 5o Hz AC
|");
System.out.println(" |\\ \\ \\|");
System.out.println(" |// // //|");
System.out.println(" |\\ \\ \\|");
System.out.println(" |
|");
System.out.println(" '-......-'");
System.out.println("==========X==========X==========X==========X==========X==========X==========X==========X==========X==========X==========");
System.out.println("");
}
if((yo>7)&&(yo<11))
{
System.out.println(" ________________________");
System.out.println(" || ||
___________________________________________________________________________________");
System.out.println(" ||
_ _ || | S.No. | Induction Cooktop
| Price |");
System.out.println(" ||
= * *
= ||
+-------+-----------------------------------------------------------------+-------+");
System.out.println(" || =
* * = || | '.
| "+name[yo]+"
| "+price[yo]+"
|");
System.out.println(" || =
* * = || ````````| Brand : "+Company[yo]+"| Colour : "+Colour[yo]);
System.out.println(" || =
* * = ||
| Warranty : "+warr[yo]+" Months | Consumption:
"+powcon[yo]+"W");
System.out.println(" || =
* * = ||
| Supply :
"+volt[yo]+" Volt @ 50 Hz AC | ");
System.out.println(" ||
= * *
= ||");
System.out.println(" ||
- - ||");
System.out.println(" ||====================||");
System.out.println(" ||
-: o 0 o :-
||");
System.out.println(" || Induction Cooktops ||");
System.out.println(" !!''''''''''''''''''''!!");
System.out.println(" ~~~~~~~~~~~~~~~~~~~~~~~~");
System.out.println("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
System.out.println("");
}
}
System.out.println("Enter Sr. No. of the chosen Appliance :");
int choice = S.nextInt();
choice = choice-1;
if(choice>10)
System.out.println("Sorry, Wrong choice entered (Bill won't
print)");
System.out.println("Press 1 to confirm Order & print Bill");
System.out.println("Press 2 to cancel Order & Exit");
System.out.println("Press 3 to continue shopping");
System.out.println("Press Any other key to exit.");
int ch = S.nextInt();
String nam = name[choice];
int pr = price[choice];
if(ch==1||ch==3)
blow.main(pr,nam,ch);
if(ch==2)
System.exit(1);
else
{
System.exit(0);
}
}
public void tvs()
{
String tv[] = new String[20];
String Comp[] = new String[20];
boolean IIID[] = new boolean[20];
boolean curve[] = new boolean[20];
int usb[] = new int[20];
String Resolution[] = new String[20];
boolean audio[] = new boolean[20];
boolean motion[] = new boolean[20];
boolean internet[] = new boolean[20];
double Weight[] = new double[20];
int warranty[] = new int[20];
int price[] = new int[20];
int powcon[] = new int[20];
int hdmi[] = new int[20];
double size[] = new double[20];
int volt[] = new int[20];
int v;
Billing blow = new Billing();
Menu kb = new Menu();
v=0;
tv[v] = " SAMSUNG 163cm (65) Ultra HD (4K) Smart, Curved LED TV
";
Comp[v] = " Samsung ";
IIID[v] = true;
curve[v] = true;
audio[v] = true;
motion[v] = true;
internet[v] = true;
Resolution[v] = "3840 x 2160";
usb[v] = 3;
hdmi[v] = 4;
warranty[v] = 12;
powcon[v] = 240;
volt[v] = 240;
Weight[v] = 28.8;
size[v] = 65;
price[v] = 370400;
v=1;
tv[v] = " LG Ultra HD (4K) 3D, Smart LED TV ";
Comp[v] = " LG ";
IIID[v] = true;
curve[v] = false;
audio[v] = true;
motion[v] = true;
internet[v] = true;
Resolution[v] = "3840 x 2160";
usb[v] = 4;
hdmi[v] = 3;
warranty[v] = 12;
powcon[v] = 110;
volt[v] = 240;
Weight[v] = 32.5;
size[v] = 65;
price[v] = 242600;
v=2;
tv[v] = " Sony Ultra HD (4K) Smart LED TV ";
Comp[v] = " Sony ";
IIID[v] = false ;
curve[v] = false;
audio[v] = true ;
motion[v] = false;
internet[v] = true;
Resolution[v] = "3840 x 2160";
usb[v] = 3;
hdmi[v] = 4;
warranty[v] = 24;
powcon[v] = 139;
volt[v] = 240;
Weight[v] = 19.0;
size[v] = 55;
price[v] = 163000;
v=3;
tv[v] = " LeEco Ultra HD (4K) Smart LED TV ";
Comp[v] = " LeEco ";
IIID[v] = false ;
curve[v] = false;
audio[v] = true ;
motion[v] = false;
internet[v] = true;
Resolution[v] = "3840x2160";
usb[v] = 2;
hdmi[v] = 3;
warranty[v] = 48;
powcon[v] = 150;
volt[v] = 240;
Weight[v] = 20.0;
size[v] = 65;
price[v] = 100000;
v=4;
tv[v] = " Panasonic Ultra HD (4K) LED TV ";
Comp[v] = " Panasonic ";
IIID[v] = false ;
curve[v] = false;
audio[v] = true;
motion[v] = false;
internet[v] = false;
Resolution[v] = "3840x2160";
usb[v] = 2;
hdmi[v] = 3;
warranty[v] = 12;
powcon[v] = 124;
volt[v] = 240;
Weight[v] = 14.5;
size[v] = 49;
price[v] = 85000;
v=5;
tv[v] = " InFocus Full HD LED TV ";
Comp[v] = " InFocus ";
IIID[v] = false ;
curve[v] = false;
audio[v] = true;
motion[v] = false;
internet[v] = false;
Resolution[v] = "1920 x 1080";
usb[v] = 2;
hdmi[v] = 2;
warranty[v] = 12;
powcon[v] = 157;
volt[v] = 230;
Weight[v] = 12.5;
size[v] = 60;
price[v] = 70000;
v=6;
tv[v] = " Videocon Full HD
LED TV ";
Comp[v] = " Videocon ";
IIID[v] = false ;
curve[v] = false;
audio[v] = true;
motion[v] = false;
internet[v] = false;
Resolution[v] = "1920 x 1080";
usb[v] = 1;
hdmi[v] = 2;
warranty[v] = 36;
powcon[v] = 135;
volt[v] = 240;
Weight[v] = 20.2;
size[v] = 55;
price[v] = 51000;
v=7;
tv[v] = " SAMSUNG Full HD LED TV
";
Comp[v] = " Samsung ";
IIID[v] = false ;
curve[v] = false;
audio[v] = true;
motion[v] = false;
internet[v] = false;
Resolution[v] = "1920 x 1080";
usb[v] = 2;
hdmi[v] = 2;
warranty[v] = 12;
powcon[v] = 160;
volt[v] = 200;
Weight[v] = 8.7;
size[v] = 43;
price[v] = 55900;
v=8;
tv[v] = " Micromax Full HD Smart LED TV ";
Comp[v] = " Micromax ";
IIID[v] = false ;
curve[v] = false;
audio[v] = true;
motion[v] = false;
internet[v] = false;
Resolution[v] = "1920 x 1080";
usb[v] = 3;
hdmi[v] = 3;
warranty[v] = 12;
powcon[v] = 120;
volt[v] = 240;
Weight[v] = 10.5;
size[v] = 50;
price[v] = 43000;
v=9;
tv[v] = " Philips Ultra HD (4K) Smart LED TV ";
Comp[v] = " Philips ";
IIID[v] = false ;
curve[v] = false;
audio[v] = true;
motion[v] = false;
internet[v] = false;
Resolution[v] = "3840 x 2160";
usb[v] = 3;
hdmi[v] = 3;
warranty[v] = 12;
powcon[v] = 98;
volt[v] = 200;
Weight[v] = 9.0;
size[v] = 43;
price[v] = 41000;
v=10;
tv[v] = " Haier Full HD LED TV ";
Comp[v] = " Haier ";
IIID[v] = false ;
curve[v] = false;
audio[v] = true;
motion[v] = false;
internet[v] = false;
Resolution[v] = "1920 x 1080";
usb[v] = 1;
hdmi[v] = 2;
warranty[v] = 12;
powcon[v] = 130;
volt[v] = 180;
Weight[v] = 13.25;
size[v] = 50;
price[v] = 35990;
v=11;
tv[v] = " Sansui Full HD LED TV ";
Comp[v] = " Sansui ";
IIID[v] = false ;
curve[v] = false;
audio[v] = true;
motion[v] = false;
internet[v] = false;
Resolution[v] = "1920 x 1080";
usb[v] = 2;
hdmi[v] = 4;
warranty[v] = 12;
powcon[v] = 210;
volt[v] = 240;
Weight[v] = 7.6;
size[v] = 43;
price[v] = 30290;
v=12;
tv[v] = " Lloyd Full HD LED TV ";
Comp[v] = " Lloyd ";
IIID[v] = false ;
curve[v] = false;
audio[v] = true;
motion[v] = false;
internet[v] = false;
Resolution[v] = "1920 x 1080";
usb[v] = 1;
hdmi[v] = 2;
warranty[v] = 36;
powcon[v] = 70;
volt[v] = 250;
Weight[v] = 6.6;
size[v] = 40;
price[v] = 26500;
v=13;
tv[v] = " Panasonic HD Ready LED TV ";
Comp[v] = " Panasonic ";
IIID[v] = false ;
curve[v] = false;
audio[v] = true;
motion[v] = false;
internet[v] = false;
Resolution[v] = "1366 x 768";
usb[v] = 1;
hdmi[v] = 2;
warranty[v] = 12;
powcon[v] = 58;
volt[v] = 240;
Weight[v] = 8.5;
size[v] = 32;
price[v] = 20790;
v=14;
tv[v] = " OnidaHD Ready LED TV ";
Comp[v] = " Onida ";
IIID[v] = false ;
curve[v] = false;
audio[v] = true;
motion[v] = false;
internet[v] = false;
Resolution[v] = "1366 x 768";
usb[v] = 2;
hdmi[v] = 1;
warranty[v] = 12;
powcon[v] = 65;
volt[v] = 240;
Weight[v] = 5.0;
size[v] = 32;
price[v] = 18990;
for(int y = 0; y<15;y++)
{
if(tv[y].length()<55)
for(int ui = tv[y].length();ui<=55;ui++)
tv[y] = tv[y]+' ';
if(Comp[y].length()<11)
for(int ui = Comp[y].length();ui<=11;ui++)
Comp[y] = Comp[y]+' ';
String d = (IIID[y]==true)?"YES":"NO ";
String curv = (curve[y]==true)?"YES":"NO ";
String moti = (motion[y]==true)?"YES":"NO ";
String inti = (internet[y]==true)?"YES":"NO ";
String audi = (audio[y]==true)?"YES":"NO ";
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(" ||
||");
System.out.println(" ||
||");
System.out.println(" ||
||");
System.out.println(" ||
||");
System.out.println("
|====================================================================|");
System.out.println(" |
"+Comp[y]+" |");
System.out.println(" |____________________________________________________________________|");
System.out.println("[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]");
System.out.println("| S.No. | Television Set |
Price |");
System.out.println("|=======|==================================================================================|============|");
System.out.println("| "+(y+1)+".\t|
"+tv[y]+"
| "+price[y]+"\t|");
System.out.println("| |
$ Brand : "+Comp[y]+" $ Size
: "+size[y]+"\" | |");
System.out.println("| |
$ 3D Mode : "+d+" $ Curve : "+curv+" | |");
System.out.println("| |
$ Resolution: "+Resolution[y]+"
$ Motion :
"+moti+" | |");
System.out.println("| | $ USB Ports : "+usb[y]+"
ports $ Weight : "+Weight[y]+" Kg \t | |");
System.out.println("| |
$ HDMI Ports: "+hdmi[y]+" ports $ Warranty: "+warranty[y]+"
months
| |");
System.out.println("| |
$ Consumes : "+powcon[y]+"
Watt $ Internet:
"+inti+" | |");
System.out.println("| | $ Audio supp: "+audi+" $ Supply : "+volt[y]+" volt @ 50-60Hz | |");
System.out.println("");
System.out.println("");
}
System.out.println("Enter Sr. No. of the chosen Television
:");
int choice = S.nextInt();
choice = choice-1;
if(choice>10)
System.out.println("Sorry, Wrong choice entered (Bill won't
print)");
System.out.println("Press 1 to confirm Order & print
Bill");
System.out.println("Press 2 to cancel Order & Exit");
System.out.println("Press 3 to continue shopping");
System.out.println("Press Any other key to exit.");
int ch = S.nextInt();
String nam = tv[choice];
int pr = price[choice];
if(ch==1||ch==3)
blow.main(pr,nam,ch);
if(ch==2)
System.exit(1);
else
{
System.exit(0);
}
}
}
Appendix 3 :
import java.util.*;
class Appendix3
{
Scanner S = new Scanner(System.in);
public void ac()
{
String ac[] = new String[10];
String company[] = new String[10];
int price[] = new int[10];
int pc[] = new int[10];
int coolingcap[] = new int[10];
double weight[] = new double[10];
double rating[] = new double[10];
int volt[] = new int[10];
int freq[] = new int[10];
String Type[] = new String[10];
int i;
Billing blow = new Billing();
Menu kb = new Menu();
i=0;
ac[i]= " O General 2 Ton 5 Star Split AC White ";
company[i]= " General ";
price[i]= 65500;
Type[i] = "Split";
coolingcap[i]= 6500;
pc[i] = 1850;
volt[i]= 240;
freq[i]= 50;
weight[i]= 78.0;
rating[i]= 5.0;
i=1;
ac[i]= " Godrej 1.5 Ton NXJ Inverter Split AC Silver ";
company[i]= " Godrej ";
price[i]= 55990;
Type[i] = "Split";
coolingcap[i]= 5000;
pc[i] = 1350;
volt[i]= 220;
freq[i]= 50;
weight[i]= 49.0;
rating[i]= 5.0;
i=2;
ac[i]= " Hitachi 1.5 Ton 5 Star Split AC White ";
company[i]= " Hitachi ";
price[i]= 47430;
Type[i] = "Split";
coolingcap[i]= 5500;
pc[i] = 1485;
volt[i]= 230;
freq[i]= 50;
weight[i]= 54.2;
rating[i]= 5.0;
i=3;
ac[i]= " Carrier 1.5 Ton 5 Star Split AC White ";
company[i]= " Carrier ";
price[i]= 43500;
Type[i] = "Split";
coolingcap[i]= 5300;
pc[i] = 1471;
volt[i]= 230;
freq[i]= 50;
weight[i]= 61.5;
rating[i]= 5.0;
i=4;
ac[i]= " Voltas 1.5 Ton 5 Star Split AC Red ";
company[i]= " Voltas ";
price[i]= 37350;
Type[i] = "Split";
coolingcap[i]= 5050;
pc[i] = 1438;
volt[i]= 230;
freq[i]= 50;
weight[i]= 47.5;
rating[i]= 5.0;
i=5;
ac[i]= " Daikin 1.5 Ton 3 Star Split AC White ";
company[i]= " Daikin ";
price[i]= 36000;
Type[i] = "Split";
coolingcap[i]= 5220;
pc[i] = 1605;
volt[i]= 230;
freq[i]= 50;
weight[i]= 52.2;
rating[i]= 3.0;
i=6;
ac[i]= " Blue Star 2 Ton 2 Star Window AC White ";
company[i]= " Blue Star ";
price[i]= 32000;
Type[i] = "Window";
coolingcap[i]= 5850;
pc[i] = 2080;
volt[i]= 230;
freq[i]= 50;
weight[i]= 61.0;
rating[i]= 2.0;
i=7;
ac[i]= " Voltas 1.5 Ton 5 Star Window AC ";
company[i]= " Voltas ";
price[i]= 27900;
Type[i] = "Window";
coolingcap[i]= 4950;
pc[i] = 1495;
volt[i]= 220;
freq[i]= 50;
weight[i]= 59.0;
rating[i]= 5.0;
i=8;
ac[i]= " Onida 1.5 Ton 3 Star Window AC White ";
company[i]= " Onida ";
price[i]= 22900;
Type[i] = "Window";
coolingcap[i]= 5275;
pc[i] = 1700;
volt[i]= 220;
freq[i]= 50;
weight[i]= 62.0;
rating[i]= 3.0;
i=9;
ac[i]= " Hitachi 1 Ton 3 Star Window AC ";
company[i]= " Hitachi ";
price[i]= 21900;
Type[i] = "Window";
coolingcap[i]= 3516;
pc[i] = 1190;
volt[i]= 220;
freq[i]= 50;
weight[i]= 39.0;
rating[i]= 3.0;
for(int y= 0; y<10;y++)
{
if(Type[y].equals("Split"))
{
company[y] = company[y].toUpperCase();
if(company[y].length()<9)
{
for(int
j=company[y].length();j<=7;j++)
company[y] = company[y]+'
';
}
System.out.println("______________________________________________________________");
System.out.println("|
|");
System.out.println("| |");
System.out.println("|
"+(company[y])+" |");
System.out.println("|____________________________________________________________|");
System.out.println("\\__|______________________________________________________|__/
");
System.out.println("");
}
else
{
company[y] =
company[y].toUpperCase();
if(company[y].length()<10)
{
for(int
j=company[y].length();j<=10;j++)
company[y] = company[y]+'
';
}
System.out.println("________________________________________");
System.out.println("|______________________________________|");
System.out.println("|------------------------|+++++++++++!|");
System.out.println("|------------------------|+ 28`C
+!|");
System.out.println("|------------------------|+++++++++++!|");
System.out.println("|------------------------|"+(company[y])+"!|");
System.out.println("|------------------------|___________!|");
System.out.println("|------------------------|___________!|");
System.out.println("|------------------------|___________!|");
System.out.println("|------------------------|___________!|");
System.out.println("|________________________|____________|");
System.out.println("");
}
if(ac[y].length()<45)
{
for(int
j=ac[y].length();j<=45;j++)
ac[y] = ac[y]+' ';
}
if(Type[y].length()<6)
{
for(int
j=Type[y].length();j<=7;j++)
Type[y] = Type[y]+' ';
}
if(company[y].length()<10)
{
for(int
j=company[y].length();j<=10;j++)
company[y] = company[y]+'
';
}
System.out.println("______________________________________________________________________________________________________");
System.out.println("|Sr.
No. |Name
|");
System.out.println("|````````|```````````````````````````````````````````````````````````````````````````````````````````|");
System.out.println("| "+(y+1)+" | Model : "+ac[y]+" |");
System.out.println("|--------| Manufacturer :
"+company[y]+"| Power Consumption : "+pc[y]+"W |");
System.out.println("|
| TYPE :
"+Type[y]+" | Cooling Capacity : "+coolingcap[y]+" |");
System.out.println("|
| Supply :
"+volt[y]+" @ "+freq[y]+"Hz | Rating : "+rating[y]+"
|");
System.out.println("|
| PRICE : "+price[y]+"
|");
System.out.println("|--------|--------------------------------------------------------------------------------------------");
System.out.println("______________________________________________________________________________________________________");
}
System.out.println("Enter
Sr. No. of the chosen ac :");
int choice = S.nextInt();
choice = choice-1;
if(choice>5)
System.out.println("Sorry, Wrong choice entered (Bill won't
print)");
System.out.println("Press 1 to confirm Order & print
Bill");
System.out.println("Press 2 to cancel Order & Exit");
System.out.println("Press 3 to continue shopping");
System.out.println("Press Any other key to exit.");
int ch = S.nextInt();
String name = ac[choice];
int pr = price[choice];
if(ch==1||ch==3)
blow.main(pr,name,ch);
if(ch==2)
System.exit(1);
else
{
System.exit(0);
}
}
public void fridge()
{
String fridge[] = new String[10];
String company[] = new String[10];
int price[] = new int[10];
String power[] = new String[10];
boolean invertor[] = new boolean[10];
int nod[] = new int[10];
double weight[] = new double[10];
int warranty[] = new int[10];
int capacity[] = new int[10];
String material[] = new String[10];
double rating[] = new double[10];
int q;
String colour[] = new String[10];
Menu kb = new Menu();
Billing blow = new Billing();
q=0;
fridge[q]= " SAMSUNG Frost Free French Door Bottom Mount
Refrigerator ";
company[q]= " SAMSUNG ";
price[q]= 239200;
invertor[q] = true;
nod[q] = 4;
capacity[q] = 826;
material[q]= "Toughened Glass";
power[q]= "Digital Inverter Technology, Triple Fresh Cooling
Technology";
weight[q]= 171.0;
rating[q]= 5.0;
colour[q] = "Black Cavior";
warranty[q] = 120;
q=1;
fridge[q]= " LG Frost Free Side by Side Refrigerator ";
company[q]= " LG ";
price[q]= 181490;
invertor[q] = false;
nod[q] = 5;
capacity[q] = 725;
material[q]= "Tempered Glass";
power[q]= "Hygiene Cooling Technology";
weight[q]= 165.0;
rating[q]= 2.0;
colour[q] = "Shiny Mosaic";
warranty[q] = 96;
q=2;
fridge[q]= " Panasonic Frost Free Side by Side Refrigerator ";
company[q]= " Panasonic ";
price[q]= 90000;
invertor[q] = false;
nod[q] = 2;
capacity[q] = 584;
material[q]= "Toughened Glass";
power[q]= "Built-in Stabilizer Technology with Advanced
cooling";
weight[q]= 98.0;
rating[q]= 3.0;
colour[q] = "Stainless Steel";
warranty[q] = 108;
q=3;
fridge[q]= " Godrej Frost Free Side by Side Refrigerator ";
company[q]= " Godrej ";
price[q]= 68900;
invertor[q] = true;
nod[q] = 2;
capacity[q] = 603;
material[q]= "Safety Glass";
power[q]= "Digital Inverter Compressor";
weight[q]= 105.6;
rating[q]= 3.0;
colour[q] = "Shiny White";
warranty[q] = 120;
q=4;
fridge[q]= " Hitachi Frost Free Triple Door Refrigerator ";
company[q]= " Hitachi ";
price[q]= 53990;
invertor[q] = false;
nod[q] = 3;
capacity[q] = 336;
material[q]= "Tempered Glass";
power[q]= "Reciprocatory Compressor, Bottom Freezer
Refrigerator";
weight[q]= 35.8;
rating[q]= 3.0;
colour[q] = "Glass Black";
warranty[q] = 120;
q=5;
fridge[q]= " Whirlpool Frost Free Double Door Refrigerator ";
company[q]= " Whirlpool ";
price[q]= 44570;
invertor[q] = false;
nod[q] = 2;
capacity[q] = 410;
material[q]= "Toughened Glass";
power[q]= "Reciprocatory Compressor, Top Freezer
Refrigerator";
weight[q]= 78.0;
rating[q]= 3.0;
colour[q] = "Alpha Steel";
warranty[q] = 120;
q=6;
fridge[q]= " SAMSUNG Frost Free Double Door Refrigerator ";
company[q]= " SAMSUNG ";
price[q]= 37750;
invertor[q] = true;
nod[q] = 2;
capacity[q] = 340;
material[q]= "Toughened Glass";
power[q]= "Digital Inverter, Top
Freezer Refrigerator";
weight[q]= 61.0;
rating[q]= 3.0;
colour[q] = "Tender Lily Black";
warranty[q] = 120;
q=7;
fridge[q]= " LG Frost Free Double Door Refrigerator ";
company[q]= " LG ";
price[q]= 28490;
invertor[q] = true;
nod[q] = 2;
capacity[q] = 284;
material[q]= "Toughened Glass";
power[q]= "Smart Inverter Compressor, Top Freezer
Refrigerator";
weight[q]= 54.0;
rating[q]= 4.0;
colour[q] = "Scarlet Florid";
warranty[q] = 120;
q=8;
fridge[q]= " Whirlpool Frost Free Double Door Refrigerator ";
company[q]= " Whirlpool ";
price[q]= 25790;
invertor[q] = false;
nod[q] = 2;
capacity[q] = 265;
material[q]= "Toughened Glass";
power[q]= "Reciprocatory Compressor, Top Freezer
Refrigerator";
weight[q]= 56.5;
rating[q]= 3.0;
colour[q] = "Wine Gloria";
warranty[q] = 120;
q=9;
fridge[q]= " Haier Double Door Refrigerator ";
company[q]= " Haier ";
price[q]= 19490;
invertor[q] = false;
nod[q] = 2;
capacity[q] = 247;
material[q]= "Safety Glass";
power[q]= "Refrigirator";
weight[q]= 36.6;
rating[q]= 2.0;
colour[q] = "Silver Grey";
warranty[q] = 60;
for(int j = 0; j<10; j++)
{
if(fridge[j].length()<58)
{
for(int
jk=fridge[j].length();jk<58;jk++)
fridge[j] = fridge[j]+' ';
}
String invt =(invertor[j]=true)?"Yes":"No ";
if(company[j].length()<11)
{
for(int
jk=company[j].length();jk<=11;jk++)
company[j] = company[j]+' ';
}
if(colour[j].length()<17)
{
for(int
jk=colour[j].length();jk<=17;jk++)
colour[j] = colour[j]+'
';
}
if(colour[j].length()<52)
{
for(int
jk=power[j].length();jk<=52;jk++)
power[j] = power[j]+' ';
}
System.out.println("Hello");
System.out.println("+-------------------+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
System.out.println("| | "+(j+1)+"."+fridge[j]+"
Price : "+price[j]);
System.out.println("| __ | * Brand
:"+company[j]+"* Rating : "+rating[j]+" ");
System.out.println("| [] | * Invertor
: "+invt+" *
Colour : "+colour[j]+" ");
System.out.println("| [] | * Technology : "+power[j]+" ");
System.out.println("| []
"+company[j]+" | *
Warranty : "+warranty[j]+"
months* Weight :
"+weight[j]+"kg
");
System.out.println("+-------------------+ * No of Doors: "+nod[j]+" * Capacity : "+capacity[j]+"L ");
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("Enter Sr. No. of the chosen fridge :");
int choice = S.nextInt();
choice = choice-1;
if(choice>10)
System.out.println("Sorry, Wrong choice entered (Bill won't
print)");
System.out.println("Press 1 to confirm Order & print
Bill");
System.out.println("Press 2 to cancel Order & Exit");
System.out.println("Press 3 to continue shopping");
System.out.println("Press Any other key to exit.");
int ch = S.nextInt();
String name = fridge[choice];
int pr = price[choice];
if(ch==1||ch==3)
blow.main(pr,name,ch);
if(ch==2)
System.exit(1);
else
{
System.exit(0);
}
}
public void dishwasher()
{
String washer[] = new String[5];
String company[] = new String[5];
int price[] = new int[5];
double water[] = new double[5];
String Colour[] = new String[5];
double reviewrating[] = new double[5];
int p;
Menu kb = new Menu();
Billing blow = new Billing();
p=0;
washer[p] = " Bosch SMS60L12IN Dishwasher ";
company[p] = " Bosch ";
price[p] = 30900;
Colour[p] = "White";
water[p] = 9.5;
reviewrating[p] = 3.7;
p=1;
washer[p] = " IFB Neptune VX Fully Electronic Dishwasher ";
company[p] = " IFB ";
price[p] = 35100;
Colour[p] = "Dark Silver";
water[p] = 22.7;
reviewrating[p] = 2.8;
p=2;
washer[p] = " Siemens SN26L800IN Freestanding Dishwasher ";
company[p] = " Siemens ";
price[p] = 36400;
Colour[p] = "Silver";
water[p] = 15.2;
reviewrating[p] = 5.0;
p=3;
washer[p] = " Carrier Midea Dishwasher ";
company[p] = " Carrier ";
price[p] = 36990;
Colour[p] = "Silvery Grey";
water[p] = 10.8;
reviewrating[p] = 3.6;
p=4;
washer[p] = " LG D1451WF Dishwasher ";
company[p] = " LG ";
price[p] = 43700;
Colour[p] = "Silver";
water[p] = 18.5;
reviewrating[p] = 2.6;
for(int w = 0; w<5; w++)
{
if(company[w].length()<9)
{
for(int
j=company[w].length();j<=9;j++)
company[w] = company[w]+' ';
}
if(washer[w].length()<45)
{
for(int
j=washer[w].length();j<=45;j++)
washer[w] = washer[w]+' ';
}
System.out.println("
_________________");
System.out.println("/_________________\\~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
System.out.println("|_________________| "+(w+1)+"
Model :
"+washer[w]+" | Carrier
~~ | * Company :
"+company[w]+"
|");
System.out.println("| | * PRICE : "+price[w]+"
|");
System.out.println("| | * Colour : "+Colour[w]+"
|");
System.out.println("| | * Water Consume :
"+water[w]+" |");
System.out.println("| | * Review : "+reviewrating[w]+"
|");
System.out.println("|
|-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x");
System.out.println("|_________________|");
System.out.println("[]
[]");
System.out.println("");
}
System.out.println("Enter Sr. No. of the chosen dishwasher
:");
int choice = S.nextInt();
choice = choice-1;
System.out.println("Press 1 to confirm Order & print
Bill");
System.out.println("Press 2
to cancel Order & Exit");
System.out.println("Press 3 to continue shopping");
System.out.println("Press Any other key to exit.");
int ch = S.nextInt();
if(choice>5)
System.out.println("Sorry, Wrong choice entered (Bill won't
print)");
String name = washer[choice];
int pr = price[choice];
if(ch==1||ch==3)
blow.main(pr,name,ch);
if(ch==2)
System.exit(1);
else
{
System.exit(0);
}
}
public void washingmachine()
{
String name[] = new String[10];
String company[] = new String[10];
int price[] = new int[10];
String Type[] = new String[10];
String Form[] = new String[10];
String Colour[] = new String[10];
double capacity[] = new double[10];
double weight[] = new double[10];
int l;
Menu kb = new Menu();
Billing blow = new Billing();
l=0;
name[l] = " Bosch WVG30460IN Washer Dryer ";
company[l] = " Bosch ";
price[l] = 45990;
Type[l] = "Fully Automatic";
Form[l] = "Front-Loading";
Colour[l] ="White";
capacity[l] = 8.0;
weight[l] = 52.0;
l=1;
name[l] = " Samsung WF602U0BHSD/TL Washing Machine ";
company[l] = " Samsung ";
price[l] = 29660;
Type[l] = "Fully Automatic";
Form[l] = "Front-Loading";
Colour[l] = "Silver";
capacity[l] = 6.0;
weight[l] = 56.2;
l=2;
name[l] = " Haier HW60-1010AS Washing Machine ";
company[l] = " Haier ";
price[l] = 19990;
Type[l] = "Fully Automatic";
Form[l] = "Front-Loading";
Colour[l] = "Silver and Grey";
capacity[l] = 6.0;
weight[l] = 62.5;
l=3;
name[l] = " Panasonic 855 MC1 W01 Washing Machine ";
company[l] = " Panasonic ";
price[l] = 20380;
Type[l] = "Fully Automatic";
Form[l] = "Front-Loading";
Colour[l] = "White";
capacity[l] = 5.5;
weight[l] = 60.0;
l=4;
name[l] = " LG T1232HFDS5 Washing Machine ";
company[l] = " LG ";
price[l] = 62990;
Type[l] = "Fully Automatic";
Form[l] = "Top-Loading";
Colour[l] = "Stainless Silver";
capacity[l] = 17.0;
weight[l] = 0.0;
l=5;
name[l] = " Whirlpool WS110H Washing Machine ";
company[l] = " Whirlpool ";
price[l] = 33160;
Type[l] = "Fully Automatic";
Form[l] = "Top-Loading";
Colour[l] = "Dark Grey";
capacity[l] = 11.0;
weight[l] = 0.0;
l=6;
name[l] = " Samsung WA75H4000HP/TL Free-Standing Washing Machine
";
company[l] = " Samsung ";
price[l] = 26890;
Type[l] = "Fully Automatic";
Form[l] = "Top-Loading";
Colour[l] = "Scarlet Red";
capacity[l] = 7.5;
weight[l] = 0.0;
l=7;
name[l] = " Haier HWM58-020 Washing Machine ";
company[l] = " Haier ";
price[l] = 10680;
Type[l] = "Fully Automatic";
Form[l] = "Top-Loading";
Colour[l] = "White";
capacity[l] = 5.8;
weight[l] = 0.0;
l=8;
name[l] = " Godrej WS 800 PDS Washing Machine ";
company[l] = " Godrej ";
price[l] = 19000;
Type[l] = "Semi Automatic";
Form[l] = "Top-Loading";
Colour[l] = "Lilac Sprinkle";
capacity[l] = 8.0;
weight[l] = 0.0;
l=9;
name[l] = " Whirlpool ACE Stainfree Washing Machine ";
company[l] = " Whirlpool ";
price[l] = 12800;
Type[l] = "Semi Automatic";
Form[l] = "Top-Loading";
Colour[l] = "Flora Purple";
capacity[l] = 6.8;
weight[l] = 0.0;
for(int t = 0; t<10;t++)
{
if(name[t].length()<54)
{
for(int p =
name[t].length();p<=54;p++)
name[t] = name[t] + ' ';
}
if(company[t].length()<11)
{
for(int p =
company[t].length();p<=11;p++)
company[t] = company[t] + ' ';
}
if(Colour[t].length()<15)
{
for(int p =
Colour[t].length();p<=15;p++)
Colour[t] = Colour[t] + ' ';
}
System.out.println(" .----------------. ");
System.out.println("| .--------------.
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
System.out.println("| | -- ___`0'____| |
"+(t+1)+"."+name[t]+"|");
System.out.println("| |
| | * Manufacturer : "+company[t]+" | Price : "+price[t]+" |");
System.out.println("| |
____ | | * Colour : "+Colour[t]+" | Capacity :
"+capacity[t]+" |");
System.out.println("| |
.' `. | | * Form & Type : "+Type[t]+" |
"+Form[t]+" |");
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("Enter Sr. No. of the chosen Washing Machine
:");
int choice = S.nextInt();
choice = choice-1;
if(choice>10)
System.out.println("Sorry, Wrong choice entered (Bill won't
print)");
System.out.println("Press 1 to confirm Order & print
Bill");
System.out.println("Press 2 to cancel Order & Exit");
System.out.println("Press 3 to continue shopping");
System.out.println("Press Any other key to exit.");
int ch = S.nextInt();
String nam = name[choice];
int pr = price[choice];
if(ch==1||ch==3)
blow.main(pr,nam,ch);
if(ch==2)
System.exit(1);
else
{
System.exit(0);
}
}
}
Feedback :
import java.util.*;
class Feedback
{
Scanner S = new Scanner(System.in);
public void main()
{
System.out.println("Please enlighten us with your sugestions :-
[Maximum characters=200]");
String feedback = S.nextLine();
if(feedback.length()>200)
System.out.println("Sorry! Exceeded limit");
else
System.out.println("Thank You for your valueable time and
suggesstions :)");
System.out.println(feedback);
for(int u= 0; u<999999999;u++)
{
if(u%10000000==0)
System.out.print("+");
if(u==999999998)
System.exit(1);
}
}
}
Billing :-
import java.util.*;
class Billing
{
Scanner S = new Scanner(System.in);
int sr[] = new int[5];
int ammount=0;
BuyZone kb = new BuyZone();
Date date = new Date();
public void main(int price, String product,int choice)
{
if(Menu.noa>4)
{
System.out.println("Sorry, maximum no of products in a bill
reached!");
ammount+=price;
System.out.println("DATE
:"+date);
System.out.println(" _____ _ _
_ _____ _
_ _ _ ");
System.out.println(" / ___| | | (_)| | |
___|| | | | (_) | | ");
System.out.println(" \\ `--. _ __
___ | |__ _ | | | |__ | |
___ ___ | |_ _ __
_ ___ __ _ | | ___ ");
System.out.println(" `--. \\| '_ \\ / _ \\| '_ \\ | || | | __| | | / _ \\ / __|| __|| '__|| | / __|/ _`
|| |/ __|");
System.out.println(" /\\__/ /| | | || __/| | | || || | | |___ | || __/| (__ | |_ | | | || (__| (_| || |\\__ \\");
System.out.println(" \\____/ |_| |_| \\___||_|
|_||_||_| \\____/ |_| \\___| \\___| \\__||_|
|_| \\___|\\__,_||_||___/");
System.out.println("
Since 2016.");
System.out.println("____________________________________________________________________________________________________________________");
System.out.println("Serial
No.| Item Description |
Price | Discount | Final Price |");
System.out.println("----------+-----------------------------------------------------------+--------+----------+-------------|");
for(int y = 0;y<5;y++)
{
if(Menu.item[y].equals(""))
continue;
else
{
if(Menu.item[y].length()<59)
{
for(int p =
Menu.item[y].length();p<=59;p++)
Menu.item[y] =
Menu.item[y] + ' ';
}
for(int yo = 0;
yo<=Menu.noa; yo++)
{
if(Menu.pric[yo]>0)
{
System.out.println((yo+1)+".
| "+Menu.item[yo]+" | "+Menu.pric[yo]+" "+Menu.disc[yo]+" "+Menu.finalprice[yo]);
System.out.println("========================================================================================================");
}
Menu.pric[yo] = 0;
}
}
}
System.out.println("x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x");
System.out.println("Ammount Payable
|"+ammount);
System.out.println("Developed By : Snehil Banawal");
System.out.println(" Xth D ID : 4480");
System.out.println(" _____
_ _
___ _ _
_ __ __ _______ _
_ __ ");
System.out.println("|_ _| |
| | / _ \\ | \\ | || | / / \\ \\ / /
_ | | | | _ \\
\\");
System.out.println(" | | | |_| |/ /_\\ \\| \\| || |/ /
\\ V /| | | | | | | (_) |
|");
System.out.println(" | | |
_ || _ || .
` || \\ \\ / | | | | | | | | |");
System.out.println(" | | | | | || | | || |\\ || |\\
\\ | | \\ \\_/ / |_| | _ |
|");
System.out.println(" \\_/ \\_| |_/\\_| |_/\\_| \\_/\\_| \\_/ \\_/
\\___/ \\___/ (_) | |");
System.out.println("
/_/ ");
System.out.println("");
Menu.noa++;
product = "";
price = 0;
System.out.println("This
program will be terminated in two minutes!!");
for(int i = 0;
i<=1000000000;i++)
if(i==1000000000)
System.exit(1);
}
Menu.pric[Menu.noa] = price;
Menu.disc[Menu.noa] = Menu.pric[Menu.noa]/10;
Menu.item[Menu.noa] = product;
Menu.finalprice[Menu.noa] = Menu.pric[Menu.noa]-Menu.disc[Menu.noa];
if(choice==1)
{
ammount+=price;
System.out.println("DATE :"+date);
System.out.println(" _____ _ _
_ _____ _
_ _ _ ");
System.out.println(" / ___| | | (_)| | |
___|| | | | (_) | | ");
System.out.println(" \\ `--. _ __
___ | |__ _ | | | |__ | |
___ ___ | |_ _ __
_ ___ __ _ | | ___ ");
System.out.println(" `--. \\| '_ \\ / _ \\| '_ \\ | || | | __| | | / _ \\ / __|| __|| '__|| | / __|/ _`
|| |/ __|");
System.out.println(" /\\__/ /| | | || __/| | | || || | | |___ | || __/| (__ | |_ | | | || (__| (_| || |\\__ \\");
System.out.println(" \\____/ |_| |_| \\___||_|
|_||_||_| \\____/ |_| \\___| \\___| \\__||_|
|_| \\___|\\__,_||_||___/");
System.out.println(" Since
2016.");
System.out.println("____________________________________________________________________________________________________________________");
System.out.println("Serial
No.| Item Description |
Price | Discount | Final Price |");
System.out.println("----------+-----------------------------------------------------------+--------+----------+-------------|");
for(int y = 0;y<5;y++)
{
if(Menu.item[y].equals(""))
continue;
else
{
if(Menu.item[y].length()<59)
{
for(int p =
Menu.item[y].length();p<=59;p++)
Menu.item[y] =
Menu.item[y] + ' ';
}
for(int yo = 0;
yo<=Menu.noa; yo++)
{
if(Menu.pric[yo]>0)
{
System.out.println((yo+1)+".
| "+Menu.item[yo]+" | "+Menu.pric[yo]+" "+Menu.disc[yo]+" "+Menu.finalprice[yo]);
System.out.println("========================================================================================================");
}
Menu.pric[yo] = 0;
}
}
}
System.out.println("x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x-----x");
System.out.println("Ammount
Payable
|"+ammount);
System.out.println("Developed By : Snehil Banawal");
System.out.println(" Xth D ID : 4480");
System.out.println(" _____
_ _
___ _ _
_ __ __ _______ _
_ __ ");
System.out.println("|_ _| |
| | / _ \\ | \\ | || | / / \\ \\ / /
_ | | | | _ \\
\\");
System.out.println(" | | | |_| |/ /_\\ \\| \\| || |/ /
\\ V /| | | | | | | (_) |
|");
System.out.println(" | | |
_ || _ || .
` || \\ \\ / | | | | | | | | |");
System.out.println(" | | | | | || | | || |\\ || |\\
\\ | | \\ \\_/ / |_| | _ |
|");
System.out.println(" \\_/ \\_| |_/\\_| |_/\\_| \\_/\\_| \\_/ \\_/
\\___/ \\___/ (_) | |");
System.out.println("
/_/ ");
System.out.println("");
System.out.println("");
Menu.noa++;
product = "";
price = 0;
}
else if(choice==3)
{
BuyZone.nop-=1;
ammount+=price-(price/10);
Menu.noa+=1;
ammount+=price;
product = "";
price = 0;
kb.main();
}
}
}
Subscribe to:
Posts (Atom)