Sei sulla pagina 1di 84

Panache

package Sailee;

/**
* Program created By Ms. Sailee Sansgiri
* Std X B
**/
import java.io.*;
public class assignment
{
void sailee()throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String cont="";
while(cont.equalsIgnoreCase("no")==false)
{

String
pan[]={"0001","00012","0003","0004","0005","0006","0007","0008","0009","0010","00
11","0012","0013","0014","0015","0016","0017","0018","0019","0020","0021","0022","
0023","0024","0025","0026","0027","0028","0029","0030","0031","0032","0033","0034
","0035","0036","0037","0038","0039","0040",""};
String panname[]={"Sailee Sansgiri","Richa D'Costa","Brad Pitt","Nevin
Mathews","Kashyap Bandodkar","Varad Keni","Tanvi Nadkarni","Nadia Gracias","Keith
Braganza","Chatwin Rajan","Amogh Byakod","Jordan Azavedo","Kimberly
Duarte","Karen Braganza","Rohan Kapoor","Satya Kumar Gopi","Andrea
Rebello","Shubham Naik","Pankaj Joshi","Kallol Maitra","Amruta Pai","Rhys
Rebello","Joyston Pimenta","Casper Fernandes","Priyanka Saglani","Rhea
Kamat","Lorraine Noronha","Mark Crasto","Wyonna Henriques","Shannan
Coelho","Diksha Gaunker","Ornelya Fernandes","Samala Monteiro","Maybel
Faleiro","Rupert Grint","Bonnie Wright","Matthew Lewis","Tom Felton","Michael
Gambon","Robbie Coltrane",""};
String
panage[]={"17","28","15","30","21","29","73","56","12","8","68","67","43","21","56","5
9","90","32","18","34","33","24","14","16","66","21","22","23","22","43","22","17","18
","18","20","21","33","45","44","12",""};
String
panplace[]={"Margao","Panaji","Mumbai","Bangalore","Hyderabad","Ahmedabad","Ne
w
Delhi","Jaipur","Pune","Mangalore","Chandigarh","Chennai","Kochin","Kolkata","Than
e","Nasik","Belgaum","Ponda","Baroda","Gangtok","Lucknow","Jaipur","Kota","Vizakh
apatnam","Thiruvananthapuram","Cuttack","Dehradun","Chennai","Dona
Paula","Indore","Jaisalmer","Mathura","Mussoorie","Shimla","Nainital","Panipat","Shill
ong","Singrauli","Thane","Cochin","Allahabad",""};
String topans;
System.out.println(" Welcome to Panaché Apparels");
System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
System.out.println(" A name that speaks for itself");
System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
System.out.println("Established just in 2008, Panaché Apparels has carved out a
name for itself in the global fashion industry.We, at Panaché boast of lovely,");
System.out.println("silken fibres that are very comfortable,T-Shirts and tops that
will flatter your shape, comfortable jeans which every eye envy and");
System.out.println(" shoes that ooze sophistication. So,what are you waiting
for???");
System.out.println(" LET'S GET SHOPPING!!!");
System.out.println(" -Designed by Ms.Sailee Sansgiri");
System.out.println(" =@=@=@=@=@=@=@=@=@=");
System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
System.out.println("Please enter the date in the format---DD/MM/YY");
String date=br.readLine();
String data=date;
String answer="";
float bill=0;
int si=0;
String halftop[]={"","Half-Sleeved Yellow T-Shirt","Half-Sleeved Blue T-
Shirt","Half-Sleeved Black T-Shirt", "Half-Sleeved White T-Shirt", "Half-Sleeved Pink
T-Shirt", "Half-Sleeved Red T-Shirt","Half-Sleeved Purple T-Shirt","Slim Graphic T-
Shirt","Raw Edge Ruffled Blouse","Peasant Shirt Dress - Black","Peasant Shirt Dress -
White","Cuffed Dolman Tee - Black","Cuffed Dolman Tee - White","Oversized V-neck
Tee - Bounty Blue","Oversized V-neck Tee - Heather Grey","Oversized V-neck Tee -
Popcorn"};
String tanktop[]={"","Tuxedo Cami","Surplice Tank","Chevron-striped Ribbed
Tank -Moonstruck","Chevron-striped Ribbed Tank-Rose","Square Neck Tank -
Indigo","Square Neck Tank - White Smoke","Pintuck Blouse","Embroidered Lace
Cami","Smocked Tank","Graphic Tank - Medium Heather Grey ","Graphic Tank - Mono
White","Rib Tank - Black","Rib Tank - Peach","Rib Tank - White","Honey Solid Tunic-
Choco","Honey Solid tunic-Beige","Eclectric Shirt-Dress-Saffron","Eclectric Shirt-Dress
- Lavender"};
String fulltop[]={"","Full-Sleeved Yellow T-Shirt","Full-Sleeved Blue T-
Shirt","Full-Sleeved Black T-Shirt", "Full-Sleeved White T-Shirt", "Full-Sleeved Pink T-
Shirt", "Full-Sleeved Red T-Shirt","Full-Sleeved Purple T-Shirt","Long Sleeve Thermal
Henley - Medium Heather Grey","Long Sleeve Thermal Henley - White","Long Sleeve
Western Flannel - Burgundy Plaid","Long Sleeve Camp Shirt - Red Medallion","Long
Sleeve Camp Shirt - White Paisley","Lace Button Front Blouse","Crochet Tunic-
Red","Crochet Tunic-Black","Western Shirt Dress"};
String ktop[]={"Yellow T-Shirt","Blue T-Shirt","Black T-Shirt", "White T-Shirt",
"Pink T-Shirt", "Red T-Shirt","Purple T-Shirt"};
String mtop[]={"Red Shirt","Blue Shirt","Black Shirt", "White Shirt", "Checked T-
Shirt", "Yellow Shirt","Rocker T-Shirt","Silverado Flannel Shirt - Purple
Gingham","Cattle Call Long Sleeve Woven Shirt - Natural Navy Stripe","One Pocket
Herringbone Shirt - Black Grey ","One Pocket Herringbone Shirt - Black Blue","Thrive
Cardigan - Medium Grey Heather","Go Forth Tee - Eco Red","Go Forth Tee - Eco
Grey","Go Forth Tee - Eco Black","Go Forth Tee - Eco Oatmeal Heather","Mechanic
Thermal - Grey/Red Stripe","Mechanic Thermal - Dark Grey Heather","Thrive Cardigan
- Black","Updated 2 Pocket Poplin Shirt","Hi Line V-Neck Tee - Blue Heather
Stripe","Slub V-Neck Tee - Grey Heather","Striped Sweater - Black","Striped Sweater-
Navy/Red","Slub V-Neck Tee-Snow White"};
String pant[]={"", "Perfectly Slimming 512 Wide Leg Jeans ","Levi's® {re-issued}
1966 Skinny Jeans - Rachel","Mid Rise Boot 553 Jeans - Blue Mountain","Mid Rise
Boot 553 Jeans - Bella","Mid Rise Straight 552 Jeans - Stormy Dark","501® Boyfriend
Imprint Jeans","501 Boyfriend Cut Jeans - Taryn","Capital E 501® Shorts -
Homestead","Straight Leg 505® Jeans- Blue Wave","Straight Leg 505® Jeans - City
Scraped","Mid Rise Straight 552 Jeans - Kayo","Boot Cut 515 Jeans - Antique","Boot
Cut 515 Jeans - Backstage Blue","Skinny Boot Jeans - Foxy Grey","Skinny Boot Jeans -
Pure Air","Low Skinny 531 Jeans - Electric Plaid","Low Skinny 531 Jeans -
Snowbud","Junior's Superlow 524 Skinny - Icy Water","Junior's Parisian Flare 524 Jeans
- Crush","{Capital E}® Swank Jeans- Pasadena","{Capital E} Skimmer Jeans -
Cobra","{Capital E} Skimmer Jeans - Cord - Auburn","Tilted Flare 542 - Blue
Jazz","Boyfriend Chinos - Ginger","Low Boot Cut 545 Jeans - Naturale","Junior's Aster
Flare 524 Jeans - Nomad Blue","Junior's Slouch Straight 504 Jeans - Blue Jay","Junior's
Superlow Boot Cut 524 Jeans - Crystal Sky","{Capital E}® Back Pocket Skimmer Jeans
- Blue Star","Low Skinny 531 Jeans - Erin","Iconic Cuff Jeans - Dark
Deconstructed","Low Skinny 531 Jeans - Luella","Iconic Cuff Jeans - Rinse","Ultra Low
Skinny 521 Jeans - Eyeliner","Low Skinny Flood Jeans - Shock Blue"};
String kpant[]={"","Slim fit","Straight leg","Sweatpants", "Bellbottoms", "Capris-
slimfit", "Corduroys","High rise"};
String mpant[]={"","Relaxed Boot 527 Jeans - Hornet","Slim Boot 507 Jeans -
Black Diamond","Relaxed Boot 527 Jeans - Clean Rigid", "Army pants-Burgundy",
"Slimfit-Ginger", "Corduroys-Heather Gray","High rise-Stormy Dark","Slim Boot 507
Jeans - Sun Soaked","Slim Boot 507 Jeans - Raw Cut","{Capital E} Hesher Boot Jeans -
Meridian Dark","Boot Cut 517 Jeans - Medium Stonewash","Slim Boot 507 Jeans -
Charcoal Grey","Slim Boot 507 Jeans - Chalked White","Skinny 511 Jeans - Vintage
Light","Skinny 511 Jeans - Cacao Tint","Slim Straight 514 Cords- Cougar","Slim
Straight 514 Jeans - Imprint","{Capital E}® Hesher Straight Jeans - Dusted
Indigo","Regular Fit 505® Jeans - Indie Blue","Regular Fit 505® Jeans - Tumbled
Rigid","501® Original Jeans - Worn Khaki","Work Trouser - Boardwalk","{Capital E}®
501® Original Jeans - Landmine","501® Original Shrink-to-Fit Jeans - Knight","Slim
Straight 514 Trouser - Last Call","Slim Straight 514 Jeans - Jealous!","Relaxed Straight
559 Jeans - Tumbled Rigid","Relaxed Straight 559 Jeans - Indie Blue","Relaxed Fit 550
Jeans - Indigo","Comfort Fit 560 Jeans - Medium Stonewash","Comfort Fit 560 Jeans
(Big & Tall) - Dark Stonewash","Loose Straight 569® Jeans - Off The Wall","Loose
Straight 569® Jeans - Rugged","Harrison Loose Jeans - Rigid"};
String acc[]={"","Enamel Center Bar Buckle","Geni Small Dome
Cosmetic","Village Soft ID Continental","Genevieve Travel Zip Wallet","Village Soft
Crossbody","6 Button Bow Lamb Glove","3 Button Ruched Lambskin Glove","Knit
Basketweave Scarf","Leather Cuff Suede Glove","Pashmina Degrade Scarf","Pashmina
Degrade Scarf","Saddle Mini Crossbody Flap","Opaque Tights","Genevieve Check
Scarf","Ali Travel Zip Wallet","Whitney Grommets Belt","Women's Newsboy
Hat","Autumn Leaves Key Fob","London Wide Perforated Belt","Panama Sun
Hat","Large Round Sunglasses","Chevron Hat","Fashion Anklet Socks","Red
scarf","Pink cap","Red cap", "Cowboy hat", "Green belt", "Yellow gloves","White
hairband"};
String kacc[]={"","Yellow scarf","Black cap","Red cap", "Cowboy hat", "Blue belt",
"Yellow gloves","White sweatband"};
String macc[]={"","Bright leather wallet","Check card holder","Ostrich trim
wallet","Haymarket credit card holder","Brit Check toiletry case","Haymarket check
key","Keychain","Brit check ID wallet","check card holder-grey","check silt tie","Stud
tiebar","shiny and matt tie","Check cufflinks","Check snood","Fringe scarf","Crinkled
scarf","Striped scarf","Corduroy Trilby hat","Pinstripe wool cap","Peaked wool
cap","Nylon and weather gloves","Brit check gloves","Smooth gloves","Engraved check
sunglasses","I love goa cap","Baseball cap","Black socks", "White scarf", "Black belt",
"Green sweatband","Red hat"};
String shoes[]={"","Ceci Air Rose Sling","Air Bacara Ballet","Air caprice
slide","Cilty Driver","Air Juno Tall Boots","Hilary Mac","Ornamental Booties","Milano
sandal-Rose","CHECK BRIDLE RIVET ","Check engraved pumps","engraved check
peep toe","Degrade ballerinas","Check engraved wedgies","Thong espadrilles","Slip-on
sneakers","Nova thongs","peep-toe pumps","Sling-back ballerinas","pointed
ballerinas","Leather-and-check wedgies","High Weather boots","Platforms", "Sneakers",
"Chappals","Ballerinas","Wedged heels","Stilettos","Sandals"};
String mshoes[]={"","Air Neroli Cap Toe","Obori Oxford","Donovan Apron
Ox","Dempsey Venetian","Air Travel Slide","Welt cap toe","Air Andros boot","Lorenzo
Penny","onovan Chelsea boot","Vance Chukka","Barton Penny","Conner
Woven","Redford Venetian","Zoom flywire oxford","Zoom court","Landon golf
cleat","Genva espadrille","Dennehy woven","Andros boot tassle","Carter captoe","zoom
clay","Zoom torrent","andres alpine boots","Red sneakers", "White Sneakers", "Black
sneakers","Sandals","Chappals","Nike sneakers","ADIDAS sneakers"};
String kshoes[]={"","Red PUMA sneakers", "White Sneakers", "Black
sneakers","Sandals","Chappals","Nike sneakers","ADIDAS sneakers"};
int
htop_rate[]={0,750,680,1350,795,450,1100,995,795,2295,2235,2180,2199,1145,1200,13
00,1400,1235,799,495,1124,1345,2180,2199,1145};
int
ttop_rate[]={0,750,680,1350,795,450,1100,995,2295,2235,2180,2199,1145,1200,1300,1
400,1235,799,600,599,550,670,870,1090,499,600,596,550,670,870,1090,499,600,596,55
0,670,870,1090,499};
int
ltop_rate[]={0,750,680,1350,795,450,1100,995,680,1350,795,450,1100,995,2295,2235,2
180,3495,1124,1345,2180,2199,1145};
int ktop_rate[]={0,750,680,1350,795,450,1100,995};
int
mtop_rate[]={0,1150,780,799,2150,995,1465,895,1350,795,450,1100,995,795,2295,223
5,2180,2199,1145,1090};
int
pant_rate[]={0,2250,1950,1695,1245,1995,1495,1124,1345,2180,2199,1145,1200,1300,1
400,1235,2150,2550,1695,1799,2095,1995,995,1795,1599,999,1799,1499,1395,2150,255
0,1695,1799,2895,1995,2695};
int
acc_rate[]={0,560,200,399,1199,799,600,599,550,670,870,1090,499,600,596,550,670,87
0,1090,499,600,596,550,670,870,1090,499,600,596,550,670,870,1090,499,600,596,600,5
99};
int
shoe_rate[]={0,995,795,595,799,1349,1499,395,1695,1245,1995,1495,1124,1345,2180,2
199,1145,1200,1300,1400,1235,2150,995,1795,1599,999,1799,1499,566,799,899};
int
mpant_rate[]={0,2250,1695,1245,1995,1495,1124,1345,2180,2199,1145,1200,1300,1400
,1235,2150,2550,1695,1799,2095,1995,995,1795,1599,999,1799,1499,1395,2150,2550,1
695,1799,2895,1995,2695};
int
macc_rate[]={0,450,200,399,1199,799,600,599,550,670,870,1090,499,600,596,550,670,
870,1090,499,600,596,550,670,870,1090,499,600,596,550,670,870,1090,499,600,596,60
0,599};
int
mshoe_rate[]={0,995,795,595,799,1349,1499,395,1695,1245,1995,1495,1124,1345,2180
,2199,1145,1200,1300,1400,1235,2150,995,1795,1599,999,1799,1499,566,799,899};
int kpant_rate[]={0,2150,2550,1695,1799,2095,1995};
int kacc_rate[]={0,50,200,399,1199,799,600,599};
int kshoe_rate[]={0,995,1795,1599,999,1799,1499,1395};
int p[]=new int[100];
int store[]=new int[100];
int pt[]=new int[100];
int storet[]=new int[100];
int ph[]=new int[100];
int storeh[]=new int[100];
int pl[]=new int[100];
int storel[]=new int[100];
int pa[]=new int[100];
int storea[]=new int[100];
int ps[]=new int[100];
int stores[]=new int[100];
int pj[]=new int[100];
int storej[]=new int[100];
int kp[]=new int[100];
int kstore[]=new int[100];
int kpa[]=new int[100];
int kstorea[]=new int[100];
int kps[]=new int[100];
int kstores[]=new int[100];
int kpj[]=new int[100];
int kstorej[]=new int[100];
int mp[]=new int[100];
int mstore[]=new int[100];
int mpa[]=new int[100];
int mstorea[]=new int[100];
int mps[]=new int[100];
int mstores[]=new int[100];
int mpj[]=new int[100];
int mstorej[]=new int[100];
int fbill[]=new int[100];
String ans="",answ="";
int tsize[]=new int[100];
int lsize[]=new int[100];
int hsize[]=new int[100];
int sizej[]=new int[100];
int sizes[]=new int[100];
int ksize[]=new int[100];
int ksizej[]=new int[100];
int ksizes[]=new int[100];
int sizeans;
int msize[]=new int[100];
int msizej[]=new int[100];
int msizes[]=new int[100];
int waist=1,hip=1,chest=1;
while(answer.equalsIgnoreCase("no")!=true)
{
System.out.println("Please enter your category i.e. female, male or kids ");
String s=br.readLine();
answ="";
if(s.equalsIgnoreCase("female"))
{
System.out.println("Please enter your data in inches.If you wish that we
recommend the size. If not, just enter zero");
System.out.print("Waist- ");
waist=Integer.parseInt(br.readLine());
System.out.print("Chest- ");
chest=Integer.parseInt(br.readLine());
System.out.print("Hip- ");
hip=Integer.parseInt(br.readLine());
while(answ.equalsIgnoreCase("no")!=true)
{
System.out.println("Please enter your category i.e. tops, jeans, accessories or
shoes ");
String item="";
item=br.readLine();
if(item.equalsIgnoreCase("tops")==true)
{
System.out.println("Would you like to buy Half-Sleeved tops, Long-Sleeved
Tops or Sleeveless Tops? ");
topans=br.readLine();
if(topans.equalsIgnoreCase("Sleeveless"))
{
System.out.println("Your choices are-");
for(int i=1;i<=18;i++)
{
int d=i;
System.out.println(d+") " + tanktop[i]);
}
int x=1;
ans="";
int z=1;
while(ans.equalsIgnoreCase("no")!=true)
{
System.out.println("Enter the Sr. No to store your choice");
pt[x]=Integer.parseInt(br.readLine());
storet[x]=pt[x];
if(waist==0||chest==0||hip==0)
{
System.out.println("Enter your size");
si=Integer.parseInt(br.readLine());
if(si==2||si==4||si==6||si==8)
{
tsize[z]=si;
z++;
}
}
else{

System.out.println("If you want us to recommend the size, enter 1 or else


enter 2");
sizeans=Integer.parseInt(br.readLine());
if( sizeans==2)
{
System.out.println("Enter your size");
si=Integer.parseInt(br.readLine());
if(si==2||si==4||si==6||si==8)
{
tsize[z]=si;
z++;
}
}
else
{
if(waist<=25&&chest<=34)
{
System.out.println("I recommend size 2");
tsize[z]=2;
z++;
}
else if(waist>25&&waist<=30&&chest>34&&chest<=40)
{
System.out.println("I recommend size 4");
tsize[z]=4;
z++;
}
else if(waist>30&&waist<=37&&chest>=41&&chest<=47)
{
System.out.println("I recommend size 6");
tsize[z]=6;
z++;
}
else
{
System.out.println("I recommend size 8");
tsize[z]=8;
z++;
}
}
}

System.out.println("would you like to buy any more sleeveless tops??");


ans=br.readLine();
x++;
}
}
else if(topans.equalsIgnoreCase("Half-sleeved"))
{
System.out.println("Your choices are-");
for(int i=1;i<=16;i++)
{
int d=i;
System.out.println(d+") " + halftop[i]);
}
int x=1;
ans="";
int z=1;
while(ans.equalsIgnoreCase("no")!=true)
{
System.out.println("Enter the Sr. No to store your choice");
ph[x]=Integer.parseInt(br.readLine());
storeh[x]=ph[x];
if(waist==0||hip==0||chest==0)
{
System.out.println("Enter your size");

si=Integer.parseInt(br.readLine());
if(si==2||si==4||si==6||si==8)
{
hsize[z]=si;
z++;
}
}
else
{

System.out.println("If you want us to recommend the size, enter 1 or else


enter 2");
sizeans=Integer.parseInt(br.readLine());
if( sizeans==2)
{
System.out.println("Enter your size");

si=Integer.parseInt(br.readLine());
if(si==2||si==4||si==6||si==8)
{
hsize[z]=si;
z++;
}
}
else
{
if(waist<=25&&chest<=34)
{
System.out.println("I recommend size 2");
hsize[z]=2;
z++;
}
else if(waist>25&&waist<=30&&chest>34&&chest<=40)
{
System.out.println("I recommend size 4");
hsize[z]=4;
z++;
}
else if(waist>30&&waist<=37&&chest>=41&&chest<=47)
{
System.out.println("I recommend size 6");
hsize[z]=6;
z++;
}
else
{
System.out.println("I recommend size 8");
hsize[z]=8;
z++;
}
}
}

System.out.println("would you like to buy any more half-sleeved tops??");


ans=br.readLine();
x++;

}
}
else if(topans.equalsIgnoreCase("Long-sleeved"))
{
System.out.println("Your choices are-");
for(int i=1;i<17;i++)
{
int d=i;
System.out.println(d+") " + fulltop[i]);
}
int x=1;
ans="";
int z=1;
while(ans.equalsIgnoreCase("no")!=true)
{
System.out.println("Enter the Sr. No to store your choice");
pl[x]=Integer.parseInt(br.readLine());
storel[x]=pl[x];
if(waist==0||chest==0||hip==0)
{
System.out.println("Enter your size");
si=Integer.parseInt(br.readLine());
if(si==2||si==4||si==6||si==8)
{
lsize[z]=si;
z++;
}
}
else
{

System.out.println("If you want us to recommend the size, enter 1 or else


enter 2");
sizeans=Integer.parseInt(br.readLine());
if( sizeans==2)
{
System.out.println("Enter your size");
si=Integer.parseInt(br.readLine());
if(si==2||si==4||si==6||si==8)
{
lsize[z]=si;
z++;
}
}
else
{
if(waist<=25&&chest<=34)
{
System.out.println("I recommend size 2");
lsize[z]=2;
z++;
}
else if(waist>25&&waist<=30&&chest>34&&chest<=40)
{
System.out.println("I recommend size 4");
lsize[z]=4;
z++;
}
else if(waist>30&&waist<=37&&chest>=41&&chest<=47)
{
System.out.println("I recommend size 6");
lsize[z]=6;
z++;
}
else
{
System.out.println("I recommend size 8");
tsize[z]=8;
z++;
}
}
}
System.out.println("would you like to buy any more long-sleeved
tops??");
ans=br.readLine();
x++;
}
}
System.out.println("Would you like to shop for any other ladies' jeans or shoes
or accessories?");
answ=br.readLine();
if(answ.equalsIgnoreCase("no")==true)
{
System.out.println("Would you like to shop in any other category?");
answer=br.readLine();
}

else if(item.equalsIgnoreCase("jeans")==true)
{
System.out.println("Your choices are-");
for(int i=1;i<=35;i++)
{
int d=i;
System.out.println(d+") " + pant[i]);
}
int x2=1;
String ans2="";
int z2=1;
while(ans2.equalsIgnoreCase("no")!=true)
{
System.out.println("Enter the Sr. No to store your choice");
pj[x2]=Integer.parseInt(br.readLine());
storej[x2]=pj[x2];
if(waist==0||hip==0||chest==0)
{
System.out.println("Enter your size");
int si2=Integer.parseInt(br.readLine());
if(si2==2||si2==4||si2==6||si2==8)
{
sizej[z2]=si2;
z2++;
}
}
else
{

System.out.println("If you want us to recommend the size, enter 1 or else


enter 2");
sizeans=Integer.parseInt(br.readLine());
if( sizeans==2)
{
System.out.println("Enter your size");
int si2=Integer.parseInt(br.readLine());
if(si2==2||si2==4||si2==6||si2==8)
{
sizej[z2]=si2;
z2++;
}
}
else
{
if(waist<=25&&hip<=34)
{
System.out.println("I recommend size 2");
sizej[z2]=2;
z2++;
}
else if(waist>25&&waist<=30&&hip>34&&hip<=38)
{
System.out.println("I recommend size 4");
sizej[z2]=4;
z2++;
}
else if(waist>30&&waist<=37&&hip>=38&&hip<=44)
{
System.out.println("I recommend size 6");
sizej[z2]=6;
z2++;
}
else
{
System.out.println("I recommend size 8");
sizej[z2]=8;
z2++;
}
}
}
System.out.println("would you like to buy any more jeans?");
ans2=br.readLine();
x2++;
}
System.out.println("Would you like to shop for any other ladies' tops or shoes
or accessories?");
answ=br.readLine();
if(answ.equalsIgnoreCase("no")==true)
{
System.out.println("Would you like to shop in any other category?");
answer=br.readLine();
}

}
else if(item.equalsIgnoreCase("shoes")==true)
{
System.out.println("Your choices are-");
for(int i=1;i<29;i++)
{
int d=i;
System.out.println(d+") " + shoes[i]);
}
int x4=1;
String ans4="";
int z4=1;
while(ans4.equalsIgnoreCase("no")!=true)
{
System.out.println("Enter the Sr. No to store your choice");
ps[x4]=Integer.parseInt(br.readLine());
stores[x4]=ps[x4];
System.out.println("Enter your size");
int si4=Integer.parseInt(br.readLine());
if(si4==2||si4==4||si4==6||si4==8)
{
sizes[z4]=si4;
z4++;
}
System.out.println("would you like to buy any more shoes?");
ans4=br.readLine();
x4++;
}
System.out.println("Would you like to shop for any other ladies' tops or jeans
or accessories?");
answ=br.readLine();
if(answ.equalsIgnoreCase("no")==true)
{
System.out.println("Would you like to shop in any other category?");
answer=br.readLine();
}
}
else if(item.equalsIgnoreCase("accessories")==true)
{
System.out.println("Your choices are-");
for(int i=1;i<30;i++)
{
int d=i;
System.out.println(d+") " + acc[i]);
}
int x3=1;
String ans3="";
int z3=1;
while(ans3.equalsIgnoreCase("no")!=true)
{
System.out.println("Enter the Sr. No to store your choice");
pa[x3]=Integer.parseInt(br.readLine());
storea[x3]=pa[x3];
System.out.println("Please note---our accessories fit everyone");
System.out.println("would you like to buy any more accessories?");
ans3=br.readLine();
x3++;
}
System.out.println("Would you like to shop for any other ladies' jeans or tops
or shoes?");
answ=br.readLine();
if(answ.equalsIgnoreCase("no")==true)
{
System.out.println("Would you like to shop in any other category?");
answer=br.readLine();
}

}
else
{
System.out.println("Invalid Entry. Please try again");
}
}

}
if(s.equalsIgnoreCase("male")==true)
{
String mansw="";
System.out.println("Please enter your data in inches if you wish that we
recommend the size. If not, just enter zero");
System.out.print("Waist- ");

System.out.print("Chest- ");
chest=Integer.parseInt(br.readLine());
System.out.print("Hip- ");
hip=Integer.parseInt(br.readLine());

while((mansw.equalsIgnoreCase("no")!=true))
{
System.out.println("Please enter your category i.e. shirts, jeans, accessories or
shoes ");
String mitem="";
mitem=br.readLine();
if(mitem.equalsIgnoreCase("shirts")==true)
{
System.out.println("Your choices are-");
for(int i=1;i<=19;i++)
{
int d=i;
System.out.println(d+") " + mtop[i]);
}
int x=1;
String mans="";
int z=1;
while(mans.equalsIgnoreCase("no")!=true)
{
System.out.println("Enter the Sr. No to store your choice");
mp[x]=Integer.parseInt(br.readLine());
mstore[x]=mp[x];

System.out.println("If you want us to recommend the size, enter 1 or else


enter 2");
sizeans=Integer.parseInt(br.readLine());
if( sizeans==2)
{
System.out.println("Enter your size");

int msi=Integer.parseInt(br.readLine());
if(msi==2||msi==4||msi==6||msi==8)
{
msize[z]=msi;
}
}
else
{
if(waist<=28&&chest<=34)
{
System.out.println("I recommend size 2");
msize[z]=2;
}
else if(waist>28&&waist<=34&&chest>34&&chest<=37)
{
System.out.println("I recommend size 4");
msize[z]=4;
}
else if(waist>34&&waist<=38&&chest>=37&&chest<=43)
{
System.out.println("I recommend size 6");
msize[z]=6;
}
else
{
System.out.println("I recommend size 8");
msize[z]=8;
}
}

System.out.println("would you like to buy any more shirts?");


mans=br.readLine();
x++;
z++;
}
System.out.println("Would you like to shop for any other men jeans or shoes
or accessories?");
mansw=br.readLine();
if(mansw.equalsIgnoreCase("no")==true)
{
System.out.println("Would you like to shop in any other category?");
answer=br.readLine();
}

}
else if(mitem.equalsIgnoreCase("jeans")==true)
{
System.out.println("Your choices are-");
for(int i=1;i<=34;i++)
{
int d=i;
System.out.println(d+") " + mpant[i]);
}
int x2=1;
String mans2="";
int z2=1;
while(mans2.equalsIgnoreCase("no")!=true)
{
System.out.println("Enter the Sr. No to store your choice");
mpj[x2]=Integer.parseInt(br.readLine());
mstorej[x2]=mpj[x2];
if(waist==0||hip==0||chest==0)
{
System.out.println("Enter your size");

int msi2=Integer.parseInt(br.readLine());
if(msi2==2||msi2==4||msi2==6||msi2==8)
{
msizej[z2]=msi2;
}
}
else
{
System.out.println("If you want us to recommend the size, enter 1 or else
enter 2");
sizeans=Integer.parseInt(br.readLine());
if( sizeans==2)
{
System.out.println("Enter your size");

int msi2=Integer.parseInt(br.readLine());
if(msi2==2||msi2==4||msi2==6||msi2==8)
{
msizej[z2]=msi2;
}
}
else
{
if(waist<=28&&hip<=34)
{
System.out.println("I recommend size 2");
msizej[z2]=2;
}
else if(waist>28&&waist<=34&&hip>34&&hip<=40)
{
System.out.println("I recommend size 4");
msizej[z2]=4;
}
else if(waist>30&&waist<=37&&hip>=41&&hip<=47)
{
System.out.println("I recommend size 6");
msizej[z2]=6;
}
else
{
System.out.println("I recommend size 8");
msizej[z2]=8;
}
}
}

System.out.println("would you like to buy any more jeans?");


mans2=br.readLine();
x2++;
z2++;
}
System.out.println("Would you like to shop for any other men shirts or shoes
or accessories?");
mansw=br.readLine();
if(mansw.equalsIgnoreCase("no")==true)
{
System.out.println("Would you like to shop in any other category?");
answer=br.readLine();
}

}
else if(mitem.equalsIgnoreCase("shoes")==true)
{
System.out.println("Your choices are-");
for(int i=1;i<30;i++)
{
int d=i;
System.out.println(d+") " + mshoes[i]);
}
int x4=1;
String mans4="";
int z4=1;
while(mans4.equalsIgnoreCase("no")!=true)
{
System.out.println("Enter the Sr. No to store your choice");
mps[x4]=Integer.parseInt(br.readLine());
mstores[x4]=mps[x4];
while(mans4.equalsIgnoreCase("no")!=true)
{
System.out.println("Enter your size");

int si4=Integer.parseInt(br.readLine());
if(si4==2||si4==4||si4==6||si4==8)
{
msizes[z4]=si4;
}

System.out.println("would you like to buy any more shoes?");


mans4=br.readLine();
x4++;
z4++;
}
System.out.println("Would you like to shop for any other men shirts or jeans
or accessories?");
mansw=br.readLine();
if(mansw.equalsIgnoreCase("no")==true)
{
System.out.println("Would you like to shop in any other category?");
answer=br.readLine();
}

}
}
else if(mitem.equalsIgnoreCase("accessories")==true)
{
System.out.println("Your choices are-");
for(int i=1;i<30;i++)
{
int d=i;
System.out.println(d+") " + macc[i]);
}
int x3=1;
String mans3="";
int z3=1;
while(mans3.equalsIgnoreCase("no")!=true)
{
System.out.println("Enter the Sr. No to store your choice");
mpa[x3]=Integer.parseInt(br.readLine());
mstorea[x3]=mpa[x3];
System.out.println("Please note---Our accessories fit everyone");
System.out.println("would you like to buy any more accessories?");
mans3=br.readLine();
x3++;
z3++;
}
System.out.println("Would you like to shop for any other men jeans or shirts
or shoes?");
mansw=br.readLine();
if(mansw.equalsIgnoreCase("no")==true)
{
System.out.println("Would you like to shop in any other category?");
answer=br.readLine();
}

}
else
{
System.out.println("Invalid Entry. Please try again");
}
}
}
String kansw="";
if(s.equalsIgnoreCase("kids"))
{
System.out.println("Please enter your data in inches if you wish that we
recommend the size. If not, just enter zero");
System.out.print("Waist- ");
waist=Integer.parseInt(br.readLine());
System.out.print("Chest- ");
chest=Integer.parseInt(br.readLine());
System.out.print("Hip- ");
hip=Integer.parseInt(br.readLine());

while(kansw.equalsIgnoreCase("no")!=true)
{
System.out.println("Please enter your category i.e. tops, jeans, accessories or
shoes ");
String kitem="";
kitem=br.readLine();
if(kitem.equalsIgnoreCase("tops")==true)
{
System.out.println("Your choices are-");
for(int i=1;i<7;i++)
{
int d=i;
System.out.println(d+") " + ktop[i]);
}
int x=1;
String kans="";
int z=1;
while(kans.equalsIgnoreCase("no")!=true)
{
System.out.println("Enter the Sr. No to store your choice");
kp[x]=Integer.parseInt(br.readLine());
kstore[x]=kp[x];
if(waist==0||hip==0||chest==0)
{
System.out.println("Enter your size");

si=Integer.parseInt(br.readLine());
if(si==2||si==4||si==6||si==8)
{
ksize[z]=si;
}
}
else
{

System.out.println("If you want us to recommend the size, enter 1 or else


enter 2");
sizeans=Integer.parseInt(br.readLine());
if( sizeans==2)
{
System.out.println("Enter your size");

si=Integer.parseInt(br.readLine());
if(si==2||si==4||si==6||si==8)
{
ksize[z]=si;
}
}
else
{
if(waist<=15&&chest<=20)
{
System.out.println("I recommend size 2");
ksize[z]=2;
}
else if(waist>15&&waist<=20&&chest>20&&chest<=25)
{
System.out.println("I recommend size 4");
ksize[z]=4;
}
else if(waist>20&&waist<=25&&chest>=25&&chest<=30)
{
System.out.println("I recommend size 6");
ksize[z]=6;
}
else
{
System.out.println("I recommend size 8");
ksize[z]=8;
}
}
}
System.out.println("would you like to buy any more tops??");
kans=br.readLine();
x++;
z++;

}
System.out.println("Would you like to shop for any other kids' jeans or shoes
or accessories?");
kansw=br.readLine();
if(kansw.equalsIgnoreCase("no")==true)
{
System.out.println("Would you like to shop in any other category?");
answer=br.readLine();
}

}
else if(kitem.equalsIgnoreCase("jeans")==true)
{
System.out.println("Your choices are-");
for(int i=1;i<7;i++)
{
int d=i;
System.out.println(d+") " + kpant[i]);
}
int x2=1;
String kans2="";
int z2=1;
while(kans2.equalsIgnoreCase("no")!=true)
{
System.out.println("Enter the Sr. No to store your choice");
kpj[x2]=Integer.parseInt(br.readLine());
kstorej[x2]=kpj[x2];
if(waist==0||hip==0||chest==0)
{
System.out.println("Enter your size");

int si2=Integer.parseInt(br.readLine());
if(si2==2||si2==4||si2==6||si2==8)
{
ksizej[z2]=si2;
}
}
else
{

System.out.println("If you want us to recommend the size, enter 1 or else


enter 2");
sizeans=Integer.parseInt(br.readLine());
if( sizeans==2)
{
System.out.println("Enter your size");

int si2=Integer.parseInt(br.readLine());
if(si2==2||si2==4||si2==6||si2==8)
{
ksizej[z2]=si2;
}
}
else
{
if(waist<=15&&hip<=20)
{
System.out.println("I recommend size 2");
ksizej[z2]=2;
}
else if(waist>15&&waist<=20&&hip>20&&hip<=25)
{
System.out.println("I recommend size 4");
ksizej[z2]=4;
}
else if(waist>20&&waist<=25&&hip>=25&&hip<=30)
{
System.out.println("I recommend size 6");
ksizej[z2]=6;
}
else
{
System.out.println("I recommend size 8");
ksizej[z2]=8;
}
}
}
System.out.println("would you like to buy any more jeans?");
kans2=br.readLine();
x2++;
z2++;
}
System.out.println("Would you like to shop for any other kids' tops or shoes
or accessories?");
kansw=br.readLine();
if(kansw.equalsIgnoreCase("no")==true)
{
System.out.println("Would you like to shop in any other category?");
answer=br.readLine();
}

}
else if(kitem.equalsIgnoreCase("shoes")==true)
{
System.out.println("Your choices are-");
for(int i=1;i<7;i++)
{
int d=i;
System.out.println(d+") " + kshoes[i]);
}
int x4=1;
String kans4="";
int z4=1;
while(kans4.equalsIgnoreCase("no")!=true)
{
System.out.println("Enter the Sr. No to store your choice");
kps[x4]=Integer.parseInt(br.readLine());
kstores[x4]=kps[x4];
System.out.println("Enter your size");

int si4=Integer.parseInt(br.readLine());
if(si4==2||si4==4||si4==6||si4==8)
{
ksizes[z4]=si4;
}
System.out.println("would you like to buy any more shoes?");
kans4=br.readLine();
x4++;
z4++;
}
System.out.println("Would you like to shop for any other kids' tops or jeans
or accessories?");
kansw=br.readLine();
if(kansw.equalsIgnoreCase("no")==true)
{
System.out.println("Would you like to shop in any other category?");
answer=br.readLine();
}

}
else if(kitem.equalsIgnoreCase("accessories")==true)
{
System.out.println("Your choices are-");
for(int i=1;i<7;i++)
{
int d=i;
System.out.println(d+") " + kacc[i]);
}
int x3=1;
String kans3="";
int z3=1;
while(kans3.equalsIgnoreCase("no")!=true)
{
System.out.println("Enter the Sr. No to store your choice");
kpa[x3]=Integer.parseInt(br.readLine());
kstorea[x3]=kpa[x3];
System.out.println("Please note---all accessories fit everyone");

System.out.println("would you like to buy any more accessories?");


kans3=br.readLine();
x3++;
z3++;
}
System.out.println("Would you like to shop for any other kids' jeans or
tops or shoes?");
kansw=br.readLine();
if(kansw.equalsIgnoreCase("no")==true)
{
System.out.println("Would you like to shop in any other category?");
answer=br.readLine();
}
}

}
}
}

System.out.println();
System.out.println();
System.out.println();
System.out.println();
System.out.println("Date= "+data);
System.out.println();
System.out.println();
System.out.println();
System.out.println();
System.out.println();
System.out.println();
System.out.println("You have shopped for ") ;
System.out.println(); //Decoration
System.out.println();
System.out.println();
System.out.println();
System.out.println();
System.out.println();
System.out.print("Item");
for(int i=0;i<46;i++)
{
System.out.print(" ");
}
System.out.print("Size");
for(int iy=0;iy<46;iy++)
{
System.out.print(" ");
}
System.out.print("Category");
for(int iyy=0;iyy<42;iyy++)
{
System.out.print(" ");
}
System.out.print("Rate(Rs.)");
for(int iey=0;iey<46;iey++)
{
System.out.print(" ");
}
System.out.println();
int le,sizr;
int ml=mstore.length;
int ml2=mstorej.length;
int ml3=mstores.length;
int ml4=mstorea.length;

for(int i=1;i<ml;i++)
{
if(mstore[i]!=0)
{
int j=mstore[i];
System.out.print(mtop[j]);
le=mtop[j].length();
for(int x=0;x<50-le;x++)
{
System.out.print(" ");
}
System.out.print(msize[i]);
String psiz=Integer.toString(msize[i]);
int ppsiz=psiz.length();
for( int x=0;x<50-ppsiz;x++)
{
System.out.print(" ");
}
System.out.print("Male");
for(int x=0;x<46;x++)
{
System.out.print(" ");
}
String p5=Integer.toString(mtop_rate[j]);
System.out.print(p5);
sizr=p5.length();
for(int x=0;x<50-sizr;x++)
{
System.out.print(" ");
}
System.out.println();

bill=bill+mtop_rate[j];
}

}
for(int i=1;i<ml2;i++)
{
if(mstorej[i]!=0)
{
int sizmj=0;
int j=mstorej[i];
System.out.print(mpant[j]);
le=mpant[j].length();
for(int x=0;x<50-le;x++)
{
System.out.print(" ");
}
System.out.print(msizej[i]);
String psiz=Integer.toString(msizej[i]);
int ppsiz=psiz.length();
for( int x=0;x<50-ppsiz;x++)
{
System.out.print(" ");
}
System.out.print("Male");
for(int x=0;x<46;x++)
{
System.out.print(" ");
}
String p5=Integer.toString(mpant_rate[j]);
System.out.print(p5);
sizr=p5.length();
for(int x=0;x<50-sizr;x++)
{
System.out.print(" ");
}
System.out.println();
bill=bill+mpant_rate[j];
}

}
for(int i=1;i<ml3;i++)
{
if(mstores[i]!=0)
{
int j=mstores[i];
System.out.print(mshoes[j]);
le=mshoes[j].length();
for(int x=0;x<50-le;x++)
{
System.out.print(" ");
}
System.out.print(msizes[i]);
String psiz=Integer.toString(msizes[i]);
int ppsiz=psiz.length();
for( int x=0;x<50-ppsiz;x++)
{
System.out.print(" ");
}
System.out.print("Male");
for(int x=0;x<46;x++)
{
System.out.print(" ");
}
String p5=Integer.toString(mshoe_rate[j]);
System.out.print(p5);
sizr=p5.length();
for(int x=0;x<50-sizr;x++)
{
System.out.print(" ");
}
System.out.println();
bill=bill+mshoe_rate[j];
}

}
for(int i=1;i<ml4;i++)
{
if(mstorea[i]!=0)
{
int j=mstorea[i];
System.out.print(macc[j]);
le=macc[j].length();
for(int x=0;x<50-le;x++)
{
System.out.print(" ");
}
System.out.print("-");

for( int x=0;x<50-1;x++)


{
System.out.print(" ");
}
System.out.print("Male");
for(int x=0;x<46;x++)
{
System.out.print(" ");
}
String p5=Integer.toString(macc_rate[j]);
System.out.print(p5);
sizr=p5.length();
for(int x=0;x<50-sizr;x++)
{
System.out.print(" ");
}
System.out.println();
bill=bill+macc_rate[j];
}

}
int l=storet.length;
int lh=storeh.length;
int lll=storel.length;
int l2=storej.length;
int l3=stores.length;
int l4=storea.length;

for(int i=1;i<l;i++)
{
if(storet[i]!=0)
{
int j=storet[i];
System.out.print(tanktop[j]);
le=tanktop[j].length();
for(int x=0;x<50-le;x++)
{
System.out.print(" ");
}
System.out.print(tsize[i]);
String psiz=Integer.toString(tsize[i]);
int ppsiz=psiz.length();
for( int x=0;x<50-ppsiz;x++)
{
System.out.print(" ");
}
System.out.print("Female");
for(int x=0;x<44;x++)
{
System.out.print(" ");
}
String p5=Integer.toString(ttop_rate[j]);
System.out.print(p5);
sizr=p5.length();
for(int x=0;x<50-sizr;x++)
{
System.out.print(" ");
}
System.out.println();
bill=bill+ttop_rate[j];
}
}
for(int i=1;i<lh;i++)
{
if(storeh[i]!=0)
{
int j=storeh[i];
System.out.print(halftop[j]);
le=halftop[j].length();
for(int x=0;x<50-le;x++)
{
System.out.print(" ");
}
System.out.print(hsize[i]);
String psiz=Integer.toString(hsize[i]);
int ppsiz=psiz.length();
for( int x=0;x<50-ppsiz;x++)
{
System.out.print(" ");
}
System.out.print("Female");
for(int x=0;x<44;x++)
{
System.out.print(" ");
}
String p5=Integer.toString(htop_rate[j]);
System.out.print(p5);
sizr=p5.length();
for(int x=0;x<50-sizr;x++)
{
System.out.print(" ");
}
System.out.println();
bill=bill+htop_rate[j];
}
}

for(int i=1;i<lll;i++)
{
if(storel[i]!=0)
{
int j=storel[i];
System.out.print(fulltop[j]);
le=fulltop[j].length();
for(int x=0;x<50-le;x++)
{
System.out.print(" ");
}
System.out.print(lsize[i]);
String psiz=Integer.toString(lsize[i]);
int ppsiz=psiz.length();
for( int x=0;x<50-ppsiz;x++)
{
System.out.print(" ");
}
System.out.print("Female");
for(int x=0;x<44;x++)
{
System.out.print(" ");
}
String p5=Integer.toString(ltop_rate[j]);
System.out.print(p5);
sizr=p5.length();
for(int x=0;x<50-sizr;x++)
{
System.out.print(" ");
}
System.out.println();
bill=bill+ltop_rate[j];
}
}

for(int i=1;i<l2;i++)
{
if(storej[i]!=0)
{
int j=storej[i];
System.out.print(pant[j]);
le=pant[j].length();
for(int x=0;x<50-le;x++)
{
System.out.print(" ");
}
System.out.print(sizej[i]);
String psiz=Integer.toString(sizej[i]);
int ppsiz=psiz.length();
for( int x=0;x<50-ppsiz;x++)
{
System.out.print(" ");
}
System.out.print("Female");
for(int x=0;x<44;x++)
{
System.out.print(" ");
}
String p5=Integer.toString(pant_rate[j]);
System.out.print(p5);
sizr=p5.length();
for(int x=0;x<50-sizr;x++)
{
System.out.print(" ");
}
System.out.println();
bill=bill+pant_rate[j];
}
}

for(int i=1;i<l3;i++)
{
if(stores[i]!=0)
{
int j=stores[i];
System.out.print(shoes[j]);
le=shoes[j].length();
for(int x=0;x<50-le;x++)
{
System.out.print(" ");
}
System.out.print(sizes[i]);
String psiz=Integer.toString(sizes[i]);
int ppsiz=psiz.length();
for( int x=0;x<50-ppsiz;x++)
{
System.out.print(" ");
}
System.out.print("Female");
for(int x=0;x<44;x++)
{
System.out.print(" ");
}
String p5=Integer.toString(shoe_rate[j]);
System.out.print(p5);
sizr=p5.length();
for(int x=0;x<50-sizr;x++)
{
System.out.print(" ");
}
System.out.println();

bill=bill+shoe_rate[j];
}
}

for(int i=1;i<l4;i++)
{
if(storea[i]!=0)
{
int j=storea[i];
System.out.print(acc[j]);
le=acc[j].length();
for(int x=0;x<50-le;x++)
{
System.out.print(" ");
}
System.out.print("-");
for( int x=0;x<50-1;x++)
{
System.out.print(" ");
}
System.out.print("Female");
for(int x=0;x<44;x++)
{
System.out.print(" ");
}
String p5=Integer.toString(acc_rate[j]);
System.out.print(p5);
sizr=p5.length();
for(int x=0;x<50-sizr;x++)
{
System.out.print(" ");
}
System.out.println();

bill=bill+acc_rate[j];
}
}
int kl=kstore.length;
int kl2=kstorej.length;
int kl3=kstores.length;
int kl4=kstorea.length;

for(int ei=1;ei<l;ei++)
{
if(kstore[ei]!=0)
{
int j=kstore[ei];
System.out.print(ktop[j]);
le=ktop[j].length();
for(int x=0;x<50-le;x++)
{
System.out.print(" ");
}
System.out.print(ksize[ei]);
String psiz=Integer.toString(ksize[ei]);
int ppsiz=psiz.length();
for( int x=0;x<50-ppsiz;x++)
{
System.out.print(" ");
}
System.out.print("Kids");
for(int x=0;x<46;x++)
{
System.out.print(" ");
}
String p5=Integer.toString(ktop_rate[j]);
System.out.print(p5);
sizr=p5.length();
for(int x=0;x<50-sizr;x++)
{
System.out.print(" ");
}
System.out.println();
bill=bill+ktop_rate[j];
}

for(int ei=1;ei<l2;ei++)
{
if(kstorej[ei]!=0)
{
int j=kstorej[ei];
System.out.print(kpant[j]);
le=kpant[j].length();
for(int x=0;x<50-le;x++)
{
System.out.print(" ");
}
System.out.print(ksizej[ei]);
String psiz=Integer.toString(ksizej[ei]);
int ppsiz=psiz.length();
for( int x=0;x<50-ppsiz;x++)
{
System.out.print(" ");
}
System.out.print("Kids");
for(int x=0;x<46;x++)
{
System.out.print(" ");
}
String p5=Integer.toString(kpant_rate[j]);
System.out.print(p5);
sizr=p5.length();
for(int x=0;x<50-sizr;x++)
{
System.out.print(" ");
}
System.out.println();
bill=bill+kpant_rate[j];
}

}
for(int ei=1;ei<l3;ei++)
{
if(kstores[ei]!=0)
{
int j=kstores[ei];
System.out.println(kshoes[j]);
le=kshoes[j].length();
for(int x=0;x<50-le;x++)
{
System.out.print(" ");
}
System.out.print(ksizes[ei]);
String psiz=Integer.toString(ksizes[ei]);
int ppsiz=psiz.length();
for( int x=0;x<50-ppsiz;x++)
{
System.out.print(" ");
}
System.out.print("Kids");
for(int x=0;x<46;x++)
{
System.out.print(" ");
}
String p5=Integer.toString(kshoe_rate[j]);
System.out.print(p5);
sizr=p5.length();
for(int x=0;x<50-sizr;x++)
{
System.out.print(" ");
}
System.out.println();
bill=bill+kshoe_rate[j];
}

}
for(int ei=1;ei<l4;ei++)
{
if(kstorea[ei]!=0)
{
int j=kstorea[ei];
System.out.println(kacc[j]);
le=kacc[j].length();
for(int x=0;x<50-le;x++)
{
System.out.print(" ");
}
System.out.print("-");
for( int x=0;x<50-1;x++)
{
System.out.print(" ");
}
System.out.print("Kids");
for(int x=0;x<46;x++)
{
System.out.print(" ");
}
String p5=Integer.toString(kacc_rate[j]);
System.out.print(p5);
sizr=p5.length();
for(int x=0;x<50-sizr;x++)
{
System.out.print(" ");
}
System.out.println();
bill=bill+kacc_rate[j];
}

float b=bill;
System.out.println("Your bill= Rs."+bill);
System.out.println("Do you have Gold Membership in Panache Clothing
Store???");
String yesorno=br.readLine();
if(yesorno.equalsIgnoreCase("yes"))
{
int di=0;
System.out.println("Please enter your PAN number");
String panno=br.readLine();
for(int i=0;i<=39;i++)
{
if(panno.equalsIgnoreCase(pan[i]))
{
System.out.println("PAN number found");
System.out.println("Loading information......");
System.out.println();
System.out.println();
System.out.println();
System.out.println();
System.out.println("Name="+panname[i]);
System.out.println();
System.out.println("Age=" + panage[i]);
System.out.println();
System.out.println("City="+panplace[i]);
System.out.println();
System.out.println();
System.out.println();
System.out.println();
System.out.println();
System.out.println();
System.out.println("You have recieved an additional 3% discount!!!");
bill=bill-(float)(0.3*bill);
System.out.println("your current bill is Rs."+ bill);
di=di+1;
break;
}
}
if(di==0)
{
System.out.println("PAN number not found");
}

String date1=date;
int ll=date.length();
int ii;
float discount1;
float discount;

String t="";
char ch;
int jj=0;
int dis[]=new int[3];
ii=0;
while(ii<ll)
{
ch=date.charAt(ii);

if(ch=='/')
{
dis[jj]=Integer.parseInt(date.substring(0,ii));
t=date.substring(ii+1,ll);
date=t;
ll=date.length();
jj++;
ii=0;

}
else
{
ii++;
}

}
if(dis[1]==12)
{
if(dis[0]>=20&&dis[0]<=31)
{
System.out.println("Christmas offer!!! 30% off on total!!");
discount=(float)0.3* bill;
System.out.println("Your festival season discount= Rs."+discount);
discount1=bill-discount;
System.out.println("Your Total with discount= Rs."+discount1);
System.out.println("VAT is of 12.5%");
System.out.print("Your total is ");
float vat=discount1+((float)(12.5/100)*discount1);
double vat1=Math.round(vat);
System.out.print("Rs."+vat1);
System.out.println("");
System.out.print("Rupees ");
int rem[]= new int [5];
int verb=(int)vat1;
String inst="",inst2="",inst3="";
String tenths[]={ "", "","twenty ","thirty ","forty ","fifty ","sixty ","seventy ","eighty
","ninety "};
String thousands[]={"","one ","two ","three ","four ","five ","six ","seven ","eight
","nine "};
String
tten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","
sixteen","seventeen","eighteen","nineteen"};
String hundreds[]={"","one hundred","two hundred","three hundred","four
hundred","five hundred","six hundred","seven hundred","eight hundred","nine
hundred"};
String tens[]={ "",
"","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"};
String
ten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","s
ixteen","seventeen","eighteen","nineteen"};
String units[]={"" ,"one","two","three","four","five","six","seven","eight","nine"};
int s=0,remim=0;
int r=verb;
{
int arr[]=new int[5];
int z=verb;
int t6=0;
while(z!=0)
{
arr[t6]=z%10;
z=z/10;
t6++;
}
if(arr[4]!=1)
{
for(t6=0;t6<20;t6++)
{
if(arr[4]==t6)
{
inst=tenths[t6];
System.out.print(inst+" ");

}
}
for(t6=0;t6<10;t6++)
{
if(arr[3]==t6)
{
inst2=thousands[t6];
System.out.print(inst2);
}
if(inst2.compareTo("")!=0)
{
System.out.print(" thousand ");
break;

}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}
else
{
int sum2=arr[4]*10+arr[3];
for(t6=0;t6<20;t6++)
{
if(t6==sum2)
{
System.out.print(tten[t6]+" thousand ");
}
}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];
}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}

}
System.out.println();
System.out.println("Enter the amount you are going to pay");
float mone=Float.parseFloat(br.readLine());
float bal=(float)(mone-vat1);
bal=Math.abs(bal);
while(bal!=0)
{
if(bal>0)
{
System.out.println();
bal=Math.abs(bal);
System.out.println("Here is your balance of Rs."+bal);
break;
}
else
{
bal=Math.abs(bal);
System.out.println("You still have to pay Rs."+bal);
mone=Float.parseFloat(br.readLine());
bal=(float)(mone-bal);
}
}
System.out.println();
System.out.println("Thank you.");
System.out.println("Have a nice day!");
System.out.println("Do visit again!");
System.out.println();

}
}
else if(dis[1]==01)
{
if(dis[0]<=5)
{
System.out.println("Christmas offer!!! 30% off on total!!");
discount=(float)0.3*(float)bill;
System.out.println("Your festival season discount= Rs."+discount);
discount1=bill-discount;
System.out.println("Your Total with discount= Rs."+discount1);
System.out.println("VAT is of 12.5%");
System.out.print("Your total is ");
float vat=discount1+((float)(12.5/100)*discount1);
double vat1=Math.round(vat);
System.out.print("Rs."+vat1);
System.out.println("");
System.out.print("Rupees ");
int rem[]= new int [5];
int verb=(int)vat1;
String inst="",inst2="",inst3="";
String tenths[]={ "", "","twenty ","thirty ","forty ","fifty ","sixty ","seventy ","eighty
","ninety "};
String thousands[]={"","one ","two ","three ","four ","five ","six ","seven ","eight
","nine "};
String
tten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","
sixteen","seventeen","eighteen","nineteen"};
String hundreds[]={"","one hundred","two hundred","three hundred","four
hundred","five hundred","six hundred","seven hundred","eight hundred","nine
hundred"};
String tens[]={ "",
"","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"};
String
ten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","s
ixteen","seventeen","eighteen","nineteen"};
String units[]={"" ,"one","two","three","four","five","six","seven","eight","nine"};
int s=0,remim=0;
int r=verb;
{
int arr[]=new int[5];
int z=verb;
int t6=0;
while(z!=0)
{
arr[t6]=z%10;
z=z/10;
t6++;
}
if(arr[4]!=1)
{
for(t6=0;t6<20;t6++)
{
if(arr[4]==t6)
{
inst=tenths[t6];
System.out.print(inst+" ");

}
}
for(t6=0;t6<10;t6++)
{
if(arr[3]==t6)
{
inst2=thousands[t6];
System.out.print(inst2);
}
if(inst2.compareTo("")!=0)
{
System.out.print(" thousand ");
break;

}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}
else
{
int sum2=arr[4]*10+arr[3];
for(t6=0;t6<20;t6++)
{
if(t6==sum2)
{
System.out.print(tten[t6]+" thousand ");
}
}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}

}
System.out.println();
System.out.println("Enter the amount you are going to pay");
float mone=Float.parseFloat(br.readLine());
float bal=(float)(mone-vat1);
bal=Math.abs(bal);
while(bal!=0)
{
if(bal>0)
{
System.out.println();
bal=Math.abs(bal);
System.out.println("Here is your balance of Rs."+bal);
break;
}
else
{
bal=Math.abs(bal);
System.out.println("You still have to pay Rs."+bal);
mone=Float.parseFloat(br.readLine());
bal=(float)(mone-bal);
}
}
System.out.println();
System.out.println("Thank you.");
System.out.println("Have a nice day!");
System.out.println("Do visit again!");
System.out.println();

}
}

else if(dis[0]>=20&&dis[0]<=31&&dis[1]==8)
{
System.out.println("Ganesh Chaturthi offer!!! 25% off on total!!");
discount=(float)0.25*(float)bill;
System.out.println("Your festival season discount= Rs."+discount);
discount1=bill-discount;
System.out.println("Your Total with discount= Rs."+discount1);
System.out.println("VAT is of 12.5%");
System.out.print("Your total is ");
float vat=discount1+((float)(12.5/100)*discount1);
double vat1=Math.round(vat);
System.out.print("Rs."+vat1);
System.out.println("");
System.out.print("Rupees ");
int rem[]= new int [5];
int verb=(int)vat1;
String inst="",inst2="",inst3="";
String tenths[]={ "", "","twenty ","thirty ","forty ","fifty ","sixty ","seventy ","eighty
","ninety "};
String thousands[]={"","one ","two ","three ","four ","five ","six ","seven ","eight
","nine "};
String
tten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","
sixteen","seventeen","eighteen","nineteen"};
String hundreds[]={"","one hundred","two hundred","three hundred","four
hundred","five hundred","six hundred","seven hundred","eight hundred","nine
hundred"};
String tens[]={ "",
"","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"};
String
ten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","s
ixteen","seventeen","eighteen","nineteen"};
String units[]={"" ,"one","two","three","four","five","six","seven","eight","nine"};
int s=0,remim=0;
int r=verb;
{
int arr[]=new int[5];
int z=verb;
int t6=0;
while(z!=0)
{
arr[t6]=z%10;
z=z/10;
t6++;
}
if(arr[4]!=1)
{
for(t6=0;t6<20;t6++)
{
if(arr[4]==t6)
{
inst=tenths[t6];
System.out.print(inst+" ");

}
}
for(t6=0;t6<10;t6++)
{
if(arr[3]==t6)
{
inst2=thousands[t6];
System.out.print(inst2);
}
if(inst2.compareTo("")!=0)
{
System.out.print(" thousand ");
break;
}

}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}
else
{
int sum2=arr[4]*10+arr[3];
for(t6=0;t6<20;t6++)
{
if(t6==sum2)
{
System.out.print(tten[t6]+" thousand ");
}
}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}

}
System.out.println();
System.out.println("Enter the amount you are going to pay");
float mone=Float.parseFloat(br.readLine());
float bal=(float)(mone-vat1);
bal=Math.abs(bal);
while(bal!=0)
{
if(bal>0)
{
System.out.println();
bal=Math.abs(bal);
System.out.println("Here is your balance of Rs."+bal);
break;
}
else
{
bal=Math.abs(bal);
System.out.println("You still have to pay Rs."+bal);
mone=Float.parseFloat(br.readLine());
bal=(float)(mone-bal);
}
}
System.out.println();
System.out.println("Thank you.");
System.out.println("Have a nice day!");
System.out.println("Do visit again!");
System.out.println();

}
else if(dis[0]>=13&&dis[0]<=30&&dis[1]==10)
{
System.out.println("Diwali offer!! Flat 40% off on total!!!");
discount=(float)0.4*(float)bill;
System.out.println("Your festival season discount= Rs."+discount);
discount1=bill-discount;
System.out.println("Your Total with discount= Rs."+discount1);
System.out.println("VAT is of 12.5%");
System.out.print("Your total is ");
float vat=discount1+((float)(12.5/100)*discount1);
double vat1=Math.round(vat);
System.out.println("Rs."+vat1);
System.out.println("");
System.out.print("Rupees ");
int rem[]= new int [5];
int verb=(int)vat1;
String inst="",inst2="",inst3="";
String tenths[]={ "", "","twenty ","thirty ","forty ","fifty ","sixty ","seventy ","eighty
","ninety "};
String thousands[]={"","one ","two ","three ","four ","five ","six ","seven ","eight
","nine "};
String
tten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","
sixteen","seventeen","eighteen","nineteen"};
String hundreds[]={"","one hundred","two hundred","three hundred","four
hundred","five hundred","six hundred","seven hundred","eight hundred","nine
hundred"};
String tens[]={ "",
"","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"};
String
ten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","s
ixteen","seventeen","eighteen","nineteen"};
String units[]={"" ,"one","two","three","four","five","six","seven","eight","nine"};
int s=0,remim=0;
int r=verb;
{
int arr[]=new int[5];
int z=verb;
int t6=0;
while(z!=0)
{
arr[t6]=z%10;
z=z/10;
t6++;
}
if(arr[4]!=1)
{
for(t6=0;t6<20;t6++)
{
if(arr[4]==t6)
{
inst=tenths[t6];
System.out.print(inst+" ");

}
}
for(t6=0;t6<10;t6++)
{
if(arr[3]==t6)
{
inst2=thousands[t6];
System.out.print(inst2);
}
if(inst2.compareTo("")!=0)
{
System.out.print(" thousand ");
break;

}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}
else
{
int sum2=arr[4]*10+arr[3];
for(t6=0;t6<20;t6++)
{
if(t6==sum2)
{
System.out.print(tten[t6]+" thousand ");
}
}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}

}
System.out.println();

System.out.println("Enter the amount you are going to pay");


float mone=Float.parseFloat(br.readLine());
float bal=(float)(mone-vat1);
while(bal!=0)
{
if(bal>0)
{
System.out.println();
bal=Math.abs(bal);
System.out.println("Here is your balance of Rs."+bal);
break;
}
else
{
bal=Math.abs(bal);
System.out.println("You still have to pay Rs."+bal);
mone=Float.parseFloat(br.readLine());
bal=(float)(mone-bal);
}
}
System.out.println();
System.out.println("Thank you.");
System.out.println("Have a nice day!");
System.out.println("Do visit again!");
System.out.println();

}
else
{
discount=(float)0.0;
double discy=Math.round(discount);
System.out.println("Your festival season discount= Rs."+discy);
discount1=bill-discount;
double discount2=Math.round(discount1);
System.out.println("Your Total with discount= Rs."+discount2);
System.out.println("VAT is of 12.5%");
System.out.print("Your total is ");
float vat=discount1+((float)(12.5/100)*discount1);
double vat1=Math.round(vat);
System.out.println("Rs."+vat1);
System.out.println("");
System.out.print("Rupees ");
int rem[]= new int [5];
int verb=(int)vat1;
String inst="",inst2="",inst3="";
String tenths[]={ "", "","twenty ","thirty ","forty ","fifty ","sixty ","seventy ","eighty
","ninety "};
String thousands[]={"","one ","two ","three ","four ","five ","six ","seven ","eight
","nine "};
String
tten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","
sixteen","seventeen","eighteen","nineteen"};
String hundreds[]={"","one hundred","two hundred","three hundred","four
hundred","five hundred","six hundred","seven hundred","eight hundred","nine
hundred"};
String tens[]={ "",
"","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"};
String
ten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","s
ixteen","seventeen","eighteen","nineteen"};
String units[]={"" ,"one","two","three","four","five","six","seven","eight","nine"};
int s=0,reamainder=0;
int r=verb;
{
int arr[]=new int[5];
int z=verb;
int t6=0;
while(z!=0)
{
arr[t6]=z%10;
z=z/10;
t6++;
}
if(arr[4]!=1)
{
for(t6=0;t6<20;t6++)
{
if(arr[4]==t6)
{
inst=tenths[t6];
System.out.print(inst+" ");

}
}
for(t6=0;t6<10;t6++)
{
if(arr[3]==t6)
{
inst2=thousands[t6];
System.out.print(inst2);
}
if(inst2.compareTo("")!=0)
{
System.out.print(" thousand ");
break;

}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}
else
{
int sum2=arr[4]*10+arr[3];
for(t6=0;t6<20;t6++)
{
if(t6==sum2)
{
System.out.print(tten[t6]+" thousand ");
}
}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}

}
System.out.println();
System.out.println("Enter the amount you are going to pay");
float mone=Float.parseFloat(br.readLine());
float bal=(float)(mone-vat1);
while(bal!=0)
{
if(bal>0)
{
System.out.println();
bal=Math.abs(bal);
System.out.println("Here is your balance of Rs."+bal);
break;

}
else
{
bal=Math.abs(bal);
System.out.println("You still have to pay Rs."+bal);
mone=Float.parseFloat(br.readLine());
bal=(float)(mone-bal);

}
}
System.out.println();
System.out.println("Thank you.");
System.out.println("Have a nice day!");
System.out.println("Do visit again!");
System.out.println();

}
}
else
{
float bill2=bill;
String date1=date;
int ll=date.length();
int ii;
float discount1;
float discount;
String t="";
char ch;
int jj=0;
int dis[]=new int[3];
ii=0;
while(ii<ll)
{
ch=date.charAt(ii);

if(ch=='/')
{
dis[jj]=Integer.parseInt(date.substring(0,ii));
t=date.substring(ii+1,ll);
date=t;
ll=date.length();
jj++;
ii=0;

}
else
{
ii++;
}
}
if(dis[1]==12)
{
if(dis[0]>=20&&dis[0]<=31)
{
System.out.println("Christmas offer!!! 30% off on total!!");
discount=(float)0.3*(float)bill2;
System.out.println("Your festival season discount= Rs."+discount);
discount1=bill2-discount;
System.out.println("Your Total with discount= Rs."+discount1);
System.out.println("VAT is of 12.5%");
System.out.print("Your total is ");
float vat=discount1+((float)(12.5/100)*discount1);
double vat1=Math.round(vat);
System.out.print("Rs."+vat1);
System.out.println("");
System.out.print("Rupees ");
int rem[]= new int [5];
int verb=(int)vat1;
String inst="",inst2="",inst3="";
String tenths[]={ "", "","twenty ","thirty ","forty ","fifty ","sixty ","seventy ","eighty
","ninety "};
String thousands[]={"","one ","two ","three ","four ","five ","six ","seven ","eight
","nine "};
String
tten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","
sixteen","seventeen","eighteen","nineteen"};
String hundreds[]={"","one hundred","two hundred","three hundred","four
hundred","five hundred","six hundred","seven hundred","eight hundred","nine
hundred"};
String tens[]={ "",
"","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"};
String
ten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","s
ixteen","seventeen","eighteen","nineteen"};
String units[]={"" ,"one","two","three","four","five","six","seven","eight","nine"};
int s=0,reamainder=0;
int r=verb;
{
int arr[]=new int[5];
int z=verb;
int t6=0;
while(z!=0)
{
arr[t6]=z%10;
z=z/10;
t6++;
}
if(arr[4]!=1)
{
for(t6=0;t6<20;t6++)
{
if(arr[4]==t6)
{
inst=tenths[t6];
System.out.print(inst+" ");

}
}
for(t6=0;t6<10;t6++)
{
if(arr[3]==t6)
{
inst2=thousands[t6];
System.out.print(inst2);
}
if(inst2.compareTo("")!=0)
{
System.out.print(" thousand ");
break;

}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];
}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}
else
{
int sum2=arr[4]*10+arr[3];
for(t6=0;t6<20;t6++)
{
if(t6==sum2)
{
System.out.print(tten[t6]+" thousand ");
}
}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}

}
System.out.println();
System.out.println("Enter the amount you are going to pay");
float mone=Float.parseFloat(br.readLine());
float bal=(float)(mone-vat1);
bal=Math.abs(bal);
while(bal!=0)
{
if(bal>0)
{
System.out.println();
bal=Math.abs(bal);
System.out.println("Here is your balance of Rs."+bal);
break;
}
else
{
bal=Math.abs(bal);
System.out.println("You still have to pay Rs."+bal);
mone=Float.parseFloat(br.readLine());
bal=(float)(mone-bal);
}
}
System.out.println();
System.out.println("Thank you.");
System.out.println("Have a nice day!");
System.out.println("Do visit again!");
System.out.println();

}
}
else if(dis[1]==01)
{
if(dis[0]<=5)
{
System.out.println("Christmas offer!!! 30% off on total!!");
discount=(float)0.3*(float)bill2;
System.out.println("Your festival season discount= Rs."+discount);
discount1=bill2-discount;
System.out.println("Your Total with discount= Rs."+discount1);
System.out.println("VAT is of 12.5%");
System.out.print("Your total is ");
float vat=discount1+((float)(12.5/100)*discount1);
double vat1=Math.round(vat);
System.out.print("Rs."+vat1);
System.out.println("");
System.out.print("Rupees ");
int rem[]= new int [5];
int verb=(int)vat1;
String inst="",inst2="",inst3="";
String tenths[]={ "", "","twenty ","thirty ","forty ","fifty ","sixty ","seventy ","eighty
","ninety "};
String thousands[]={"","one ","two ","three ","four ","five ","six ","seven ","eight
","nine "};
String
tten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","
sixteen","seventeen","eighteen","nineteen"};
String hundreds[]={"","one hundred","two hundred","three hundred","four
hundred","five hundred","six hundred","seven hundred","eight hundred","nine
hundred"};
String tens[]={ "",
"","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"};
String
ten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","s
ixteen","seventeen","eighteen","nineteen"};
String units[]={"" ,"one","two","three","four","five","six","seven","eight","nine"};
int s=0,reamainder=0;
int r=verb;
{
int arr[]=new int[5];
int z=verb;
int t6=0;
while(z!=0)
{
arr[t6]=z%10;
z=z/10;
t6++;
}
if(arr[4]!=1)
{
for(t6=0;t6<20;t6++)
{
if(arr[4]==t6)
{
inst=tenths[t6];
System.out.print(inst+" ");

}
}
for(t6=0;t6<10;t6++)
{
if(arr[3]==t6)
{
inst2=thousands[t6];
System.out.print(inst2);
}
if(inst2.compareTo("")!=0)
{
System.out.print(" thousand ");
break;

}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}
else
{
int sum2=arr[4]*10+arr[3];
for(t6=0;t6<20;t6++)
{
if(t6==sum2)
{
System.out.print(tten[t6]+" thousand ");
}
}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}

}
System.out.println();
System.out.println("Enter the amount you are going to pay");
float mone=Float.parseFloat(br.readLine());
float bal=(float)(mone-vat1);
bal=Math.abs(bal);
while(bal!=0)
{
if(bal>0)
{
System.out.println();
bal=Math.abs(bal);
System.out.println("Here is your balance of Rs."+bal);
break;
}
else
{
bal=Math.abs(bal);
System.out.println("You still have to pay Rs."+bal);
mone=Float.parseFloat(br.readLine());
bal=(float)(mone-bal);
}
}
System.out.println();
System.out.println("Thank you.");
System.out.println("Have a nice day!");
System.out.println("Do visit again!");
System.out.println();

}
}

else if(dis[0]>=20&&dis[0]<=31&&dis[1]==8)
{
System.out.println("Ganesh Chaturthi offer!!! 25% off on total!!");
discount=(float)0.25*(float)bill2;
System.out.println("Your festival season discount= Rs."+discount);
discount1=bill2-discount;
System.out.println("Your Total with discount= Rs."+discount1);
System.out.println("VAT is of 12.5%");
System.out.print("Your total is ");
float vat=discount1+((float)(12.5/100)*discount1);
double vat1=Math.round(vat);
System.out.print("Rs."+vat1);
System.out.println();
System.out.print("Rupees ");
int rem[]= new int [5];
int verb=(int)vat1;
String inst="",inst2="",inst3="";
String tenths[]={ "", "","twenty ","thirty ","forty ","fifty ","sixty ","seventy ","eighty
","ninety "};
String thousands[]={"","one ","two ","three ","four ","five ","six ","seven ","eight
","nine "};
String
tten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","
sixteen","seventeen","eighteen","nineteen"};
String hundreds[]={"","one hundred","two hundred","three hundred","four
hundred","five hundred","six hundred","seven hundred","eight hundred","nine
hundred"};
String tens[]={ "",
"","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"};
String
ten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","s
ixteen","seventeen","eighteen","nineteen"};
String units[]={"" ,"one","two","three","four","five","six","seven","eight","nine"};
int s=0,reamainder=0;
int r=verb;
{
int arr[]=new int[5];
int z=verb;
int t6=0;
while(z!=0)
{
arr[t6]=z%10;
z=z/10;
t6++;
}
if(arr[4]!=1)
{
for(t6=0;t6<20;t6++)
{
if(arr[4]==t6)
{
inst=tenths[t6];
System.out.print(inst+" ");

}
}
for(t6=0;t6<10;t6++)
{
if(arr[3]==t6)
{
inst2=thousands[t6];
System.out.print(inst2);
}
if(inst2.compareTo("")!=0)
{
System.out.print(" thousand ");
break;

}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}
else
{
int sum2=arr[4]*10+arr[3];
for(t6=0;t6<20;t6++)
{
if(t6==sum2)
{
System.out.print(tten[t6]+" thousand ");
}
}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}

}
System.out.println();
System.out.println("Enter the amount you are going to pay");
float mone=Float.parseFloat(br.readLine());
float bal=(float)(mone-vat1);
bal=Math.abs(bal);
while(bal!=0)
{
if(bal>0)
{
System.out.println();
bal=Math.abs(bal);
System.out.println("Here is your balance of Rs."+bal);
break;
}
else
{
bal=Math.abs(bal);
System.out.println("You still have to pay Rs."+bal);
mone=Float.parseFloat(br.readLine());
bal=(float)(mone-bal);
}
}
System.out.println();
System.out.println("Thank you.");
System.out.println("Have a nice day!");
System.out.println("Do visit again!");
System.out.println();

}
else if(dis[0]>=13&&dis[0]<=30&&dis[1]==10)
{
System.out.println("Diwali offer!! Flat 40% off on total!!!");
discount=(float)0.4*(float)bill2;
System.out.println("Your festival season discount= Rs."+discount);
discount1=bill2-discount;
System.out.println("Your Total with discount= Rs."+discount1);
System.out.println("VAT is of 12.5%");
System.out.print("Your total is ");
float vat=discount1+((float)(12.5/100)*discount1);
double vat1=Math.round(vat);
System.out.print("Rs."+vat1);
System.out.println("");
System.out.print("Rupees ");
int rem[]= new int [5];
int verb=(int)vat1;
String inst="",inst2="",inst3="";
String tenths[]={ "", "","twenty ","thirty ","forty ","fifty ","sixty ","seventy ","eighty
","ninety "};
String thousands[]={"","one ","two ","three ","four ","five ","six ","seven ","eight
","nine "};
String
tten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","
sixteen","seventeen","eighteen","nineteen"};
String hundreds[]={"","one hundred","two hundred","three hundred","four
hundred","five hundred","six hundred","seven hundred","eight hundred","nine
hundred"};
String tens[]={ "",
"","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"};
String
ten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","s
ixteen","seventeen","eighteen","nineteen"};
String units[]={"" ,"one","two","three","four","five","six","seven","eight","nine"};
int s=0,reamainder=0;
int r=verb;
{
int arr[]=new int[5];
int z=verb;
int t6=0;
while(z!=0)
{
arr[t6]=z%10;
z=z/10;
t6++;
}
if(arr[4]!=1)
{
for(t6=0;t6<20;t6++)
{
if(arr[4]==t6)
{
inst=tenths[t6];
System.out.print(inst+" ");

}
}
for(t6=0;t6<10;t6++)
{
if(arr[3]==t6)
{
inst2=thousands[t6];
System.out.print(inst2);
}
if(inst2.compareTo("")!=0)
{
System.out.print(" thousand ");
break;

}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{
System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}
else
{
int sum2=arr[4]*10+arr[3];
for(t6=0;t6<20;t6++)
{
if(t6==sum2)
{
System.out.print(tten[t6]+" thousand ");
}
}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}

}
System.out.println();

System.out.println("Enter the amount you are going to pay");


float mone=Float.parseFloat(br.readLine());
float bal=(float)(mone-vat1);
while(bal!=0)
{
if(bal>0)
{
System.out.println();
bal=Math.abs(bal);
System.out.println("Here is your balance of Rs."+bal);
break;
}
else
{
bal=Math.abs(bal);
System.out.println("You still have to pay Rs."+bal);
mone=Float.parseFloat(br.readLine());
bal=(float)(mone-bal);
}
}
System.out.println();
System.out.println("Thank you.");
System.out.println("Have a nice day!");
System.out.println("Do visit again!");
System.out.println();

}
else
{
discount=(float)0.0;
double discy=Math.round(discount);
System.out.println("Your festival season discount= Rs."+discy);
discount1=bill2-discount;
double discount2=Math.round(discount1);
System.out.println("Your Total with discount= Rs."+discount2);
System.out.println("VAT is of 12.5%");
System.out.print("Your total is ");
float vat=discount1+((float)(12.5/100)*discount1);
double vat1=Math.round(vat);

System.out.println("Rs."+vat1);
System.out.println();
System.out.print("Rupees ");
int rem[]= new int [5];
int verb=(int)vat1;
String inst="",inst2="",inst3="";
String tenths[]={ "", "","twenty ","thirty ","forty ","fifty ","sixty ","seventy ","eighty
","ninety "};
String thousands[]={"","one ","two ","three ","four ","five ","six ","seven ","eight
","nine "};
String
tten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","
sixteen","seventeen","eighteen","nineteen"};
String hundreds[]={"","one hundred","two hundred","three hundred","four
hundred","five hundred","six hundred","seven hundred","eight hundred","nine
hundred"};
String tens[]={ "",
"","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"};
String
ten[]={"","","","","","","","","","","ten","eleven","twelve","thirteen","fouteen","fifteen","s
ixteen","seventeen","eighteen","nineteen"};
String units[]={"" ,"one","two","three","four","five","six","seven","eight","nine"};
int s=0,reamainder=0;
int r=verb;
{
int arr[]=new int[5];
int z=verb;
int t6=0;
while(z!=0)
{
arr[t6]=z%10;
z=z/10;
t6++;
}
if(arr[4]!=1)
{
for(t6=0;t6<20;t6++)
{
if(arr[4]==t6)
{
inst=tenths[t6];
System.out.print(inst+" ");

}
}
for(t6=0;t6<10;t6++)
{
if(arr[3]==t6)
{
inst2=thousands[t6];
System.out.print(inst2);
}
if(inst2.compareTo("")!=0)
{
System.out.print(" thousand ");
break;

}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}

}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}
else
{
int sum2=arr[4]*10+arr[3];
for(t6=0;t6<20;t6++)
{
if(t6==sum2)
{
System.out.print(tten[t6]+" thousand ");
}
}
for(t6=0;t6<10;t6++)
{
if(arr[2]==t6)
{
System.out.print(hundreds[t6]+" ");
}
}
if(arr[1]!=1)
{
for(t6=0;t6<10;t6++)
{
if(arr[1]==t6)
{
System.out.print(tens[t6]+" ");
inst3=tens[t6];

}
}
for(t6=0;t6<10;t6++)
{
if(t6==arr[0])
{

System.out.print(units[t6]);
}
}
}
else
{
int sum=arr[1]*10+arr[0];
for(t6=0;t6<20;t6++)
{
if(sum==t6)
{
System.out.print(ten[t6]);
}
}
}
}

}
System.out.println();
System.out.println("Enter the amount you are going to pay");
float mone=Float.parseFloat(br.readLine());
float bal=(float)(mone-vat1);
while(bal!=0)
{
if(bal>0)
{
System.out.println();
bal=Math.abs(bal);
System.out.println("Here is your balance of Rs."+bal);
break;
}
else
{
bal=Math.abs(bal);
System.out.println("You still have to pay Rs."+bal);
mone=Float.parseFloat(br.readLine());
bal=(float)(mone-bal);
}
}
System.out.println();
System.out.println("Thank you.");
System.out.println("Have a nice day!");
System.out.println("Do visit again!");
System.out.println();
}
}

System.out.println("Do you want to continue shopping? Please Note- All previous


records will be deleted");
cont=br.readLine();
}
}

Potrebbero piacerti anche