0% found this document useful (0 votes)
9 views

Computer Project

Uploaded by

dakshguy04
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Computer Project

Uploaded by

dakshguy04
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

KENNETH GEORGE ENGLISH

SCHOOL

Name:

Class: 10A

Subject: computeR

Submitted to Mrs.
Kenneth George English school

Certificate

This is to certify that the computer project titled


“Online Shopping” had successfully completed by
Miss/Mr………………………….... of class 10 in fulfilment
of curriculum of secondary education (ICSE) leading
to the award of annual examination of year 2023-
2024.

Date…………………………

Internal Examiner External Examiner


Develop a java program as project work to manage and
maintain the billing system of multiple products that
customers needs. The Specifications are as listed below.

1. The shop provides following products: a. Women’s wear


b. Men’s wear c. Surprise Section d. Kid’s Wear.

2. On specifying the option the system will display the


list of the products available in certain group.

3. Enter the number which you like among the given list.

4. If the number is available in the list it gives you the


price and with calculating the discounts its available.

5. If you want to continue the shopping you can enter


the number else stop it comes out of the shopping
site.

6. The same process is used for other selected products


of the list.
import java.io.*;
import java.util.*;
class Website
{
double cost=0;
double s=100.0; int n=100;
int z=0; double disc=0;
String name[]=new String[n]; double price[]=new double[n];
public static void main(String args[]) throws IOException
{
Scanner sc= new Scanner(System.in); double Billamt=0;
String st; while(true)
{
System.out.println("*********");
System.out.println("**** WEL COME TO Website*******");
System.out.println("*********");
System.out.println("The Clothing Store where all your needs for clothes and a
little bit of accessories");
System.out.println("If your in mood for Shopping then..... YOUR ARE IN THE
RIGHTB PLACE ");
Website ob=new Website(); do
{

System.out.println("We allow our customer to shop conveniently and provide


them a wide variety of choice to choose from");
System.out.println("The choices are \n 1.WOMEN'S WEAR \n 2.MENS'S
WEAR \n 3.SURPISE SECTION!! \n 4.KIDS WEAR \n5.ACCESSORIES \n 6.
SHOES");
System.out.println("Enter your choices");
int c=sc.nextInt();
switch(c)
{
case 1: ob.Women(); break;
case 2: ob.Men(); break;
case 3: ob.Suprise(); break;
case 4: ob.Kids(); break;
case 5: ob.Accessories(); break;
case 6: ob.Shoes(); break;
default:System.out.println("please check your input");
}
System.out.println("please type'stop' if you want to stop");
System.out.println(" Type anything else if you want to continue shopping");
st=sc.nextLine();
}
while((st.equalsIgnoreCase("stop"))); System.out.println("your Bill");
System.out.println("SI.no \t Item name\t\t\t\tcost of the Item");
for(int i=0; i<ob.z; i++)
{
System.out.println(i+1+"/t" +ob.name[i]+"RS"+ob.price[i]);
}
Billamt=ob.cost+Billamt;
System.out.println("Total cost to be paid= Rs"+Billamt);
System.out.println("Hope you enjoyed Shopping! and please do come back
Soon!!");
System.out.println("Are there anymorre customers");
System.out.println("Enter no if there are no more customers");
String str=sc.nextLine(); if(str.equalsIgnoreCase("no")) break;
}
}
public void Women()throws IOException
{
Scanner sc=new Scanner(System.in);
System.out.println("Welcome to the women's clothing Section!!");
System.out.println("We provide a wide range of selections so...");

System.out.println("Kindly enter the numbers as given in menu");


System.out.println("1. Ethnic Wear \n 2. Casual wear \n 3. Formal wear \n 4.
Western wear \n 5. Party Wear");
System.out.println(" We are Extermely Delighted to announce that");
System.out.println(" We provide 15% discount in teh CASUAL WEAR section
and 25% discount on ");
System.out.println("All in the PARTY WEAR!!"); int chow=sc.nextInt();
switch(chow)
{
case 1:
System.out.println("This is the Ethnic");
System.out.println("Section and we are very glad to announce that the latest
designs have just come in!!");
System.out.println("The Ethnic section provide size ranging from small(s),
Medium(M), Large(L) and Extra Large(XL)");
System.out.println("Please enter the numbers according to your choice");
System.out.println("Enter 1. Saree\n 2. Pattiyallas\n 3. Chuddidhars\n 4.
Salwars Kameez\n 5. Kurtis\n 6.Ghagras");
int num=sc.nextInt(); if(num==1)
{
name[z]="Saree"; price[z]=900; z++;
System.out.println("The cost for your choice is RS:900");

cost=cost+900;
}
else if(num==2)
{
name[z]="pattiyallas"; price[z]=500;
z++;
System.out.println("The cost for your choice is RS:500"); cost=cost+500;
}
else if(num==3)
{
name[z]="Chuddidhars"; price[z]=400;
z++;
System.out.println("The cost for your choice is RS:400"); cost=cost+400;
}
else if(num==4)
{
name[z]="Salawar Kameez"; price[z]=650;
z++;
System.out.println("The cost for your choice is RS:650");

cost=cost+650;
}
else
if (num==5)
{
name[z]="kurtis"; price[z]=150; z++;
System.out.println("The cost for your choice is RS. 150"); cost=cost+150;
}
else if(num==6)
{
name[z]="Ghadras"; price[z]=550;
z++;
System.out.println("The cost for your choice is RS:550"); cost=cost+550;
}
else
System.out.println("Please check your input"); break;
case 2:
System.out.println("This is the casual Wear section and we are very glad to
announce rhat we have received the latest designs");
System.out.println("The Casual wear section provide size ranging from
small(s), Medium(M), Large(L) and Extra Large(XL)");
System.out.println("Please enter the numbers according to your choice");
System.out.println("Enter 1. Casual pants\n 2. Casual shirts\t t- shirts \n 3.
Casual Skirts\n 4. Sweaters/jackets\n 5.dresses");
num=sc.nextInt(); if(num==1)
{
disc=599-(0.15*599);
name[z]="Casual pants"; price[z]=disc;
z++;
System.out.println("The cost for your choice is RS:599 after discount it is
Rs."+disc);
cost=cost+disc;
}
else if(num==2)
{
disc=399-(0.15*399);
name[z]="Casual Shirts \t T-shirts"; price[z]=disc;
z++;
System.out.println("The cost for your choice is RS:399 after discount it is
Rs."+disc);
cost=cost+disc;
}

else if(num==3)
{
disc=499-(0.15*499);
name[z]="Casual skirts"; price[z]=disc;
z++;
System.out.println("The cost for your choice is RS:499 after discount it is
Rs."+disc);
cost=cost+disc;
}
else if(num==4)
{
disc=299-(0.15*299);
name[z]="Sweaters \t Jackets"; price[z]=disc;
z++;
System.out.println("The cost for your choice is RS:599 after discount it is
Rs."+disc);
cost=cost+disc;
}
else if(num==5)
{
disc=750-(0.15*750);
name[z]="Dresses"; price[z]=disc;

z++;
System.out.println("The cost for your choice is RS:599 after discount it is
Rs."+disc);
cost=cost+disc;
}
else
System.out.println("please check the your input"); break;
case 3:System.out.println("This is the Formal Wear section and we are very
glad to announce that we have received the latest designs");
System.out.println("The Formal wear section provide size ranging from
small(s), Medium(M), Large(L) and Extra Large(XL)");
System.out.println("Please enter the numbers according to your choice");
System.out.println("Enter 1. Formal pants\n 2. Formal shirts\t t-shirts \n
3.Formal Skits\n 4.Coats");
num=sc.nextInt(); if(num==1)
{
name[z]="Formal Pants"; price[z]=599;
z++;
System.out.println("The cost for your choice is RS:299"); cost=cost+599;
}
else if(num==2)

{
name[z]=" Formal shirts"; price[z]=399;
z++;
System.out.println("The cost for your choice is RS:199"); cost=cost+399;
}
else if(num==3)
{
name[z]="Formal Skits"; price[z]=499;
z++;
System.out.println("The cost for your choice is RS:199"); cost=cost+499;
}
if(num==4)
{
name[z]="Coats"; price[z]=350; z++;
System.out.println("The cost for your choice is RS:199"); cost=cost+350;
}
System.out.println("please check your input"); break;

case 4:System.out.println("This is the Western Wear section and we are very


glad to announce that we have received the latest designs");
System.out.println("The western wear section provide size ranging from
small(s), Medium(M), Large(L) and Extra Large(XL)");
System.out.println("Please enter the numbers according to your choice");
System.out.println("Enter 1. Jeans\n 2. Fancy Tops "); num=sc.nextInt();
if(num==1)
{
name[z]="Jeans"; price[z]=299; z++;
System.out.println("The cost for your choice is RS:299"); cost=cost+299;
}
else if(num==2)
{
name[z]="fancy tops"; price[z]=199;
z++;
System.out.println("The cost for your choice is RS:199"); cost=cost+199;
}
else

System.out.println("please check your input"); break;


case 5:System.out.println("This is the Party Wear section and we are very glad
to announce that we have received the latest designs");
System.out.println("The Party wear section provide size ranging from small(s),
Medium(M), Large(L) and Extra Large(XL)");
System.out.println("Please enter the numbers according to your choice");
System.out.println("Enter 1. cocktail dresses\n 2. Disco Dresss \n 3. Strapless
dress"); num=sc.nextInt();
if(num==1)
{
disc=1000-(0.25*1000);
name[z]="cocktail dresses"; price[z]=disc;
z++;
cost=cost+disc;
System.out.println("The cost for your choice is RS:1000 after discount it is
Rs."+cost);

}
else if(num==2)
{
disc=1500-(0.25*1500);
name[z]="Disco Dress";

price[z]=disc; z++;
cost=cost+disc;
System.out.println("The cost for your choice is RS:1500 after discount it is
Rs."+cost);

}
else if(num==3)
{
disc=2500-(0.25*2500);
name[z]="strapless dress"; price[z]=disc;
z++;
cost=cost+disc;
System.out.println("The cost for your choice is RS:599 after discount it is
Rs."+cost);
}
else
System.out.println("please check your choice"); break;
default:
System.out.println("please check your choice");
}
}
//Mens Started

public void Men() throws IOException


{
Scanner sc= new Scanner(System.in);

System.out.println("Welcome to the Men's clothing Section!!");


System.out.println("We provide a wide range of selections so...");
System.out.println("Kindly enter the numbers as given in menu");
System.out.println("1. Ethnic Wear \n 2. Casual wear \n 3. Formal wear \n 4.
Western wear \n 5. Party Wear");
System.out.println(" We are Extermely Delighted to announce that");
System.out.println(" We provide 20% discount on all section in the CASUAL
WEAR s and 25% discount on ");
System.out.println("All in the PARTY WEAR!!"); int chow=sc.nextInt();
switch(chow)
{
case 1:
System.out.println("This is the Ethnic");
System.out.println("Section and we are very glad to announce that the latest
designs have just come in!!");
System.out.println("The Ethnic section provide size ranging from small(s),
Medium(M), Large(L) and Extra Large(XL)");
System.out.println("Please enter the numbers according to your choice");
System.out.println("Enter 1. Kurtas\n 2. Traditional Sharwanis \n 3. Jodhpuri\n
4. Kurta pyjama"); int num=sc.nextInt();
if(num==1)
{
name[z]="Kurta";

price[z]=699; z++;
System.out.println("The cost for your choice is RS:699"); cost=cost+699;
}
else if(num==2)
{
name[z]="Traditional Sharwanis"; price[z]=1999;
z++;
System.out.println("The cost for your choice is RS:1999"); cost=cost+1999;
}
else if(num==3)
{
name[z]="Jodhpuri"; price[z]=2999;
z++;
System.out.println("The cost for your choice is RS:2999"); cost=cost+2999;
}
else if(num==4)
{
name[z]="Kurta pyjam";

price[z]=1750; z++;
System.out.println("The cost for your choice is RS:1750"); cost=cost+1750;
}
else
System.out.println("please check your choice"); break;
case 2:System.out.println("This is the Casual Wear");
System.out.println("Section and we are very glad to announce that the latest
designs have just come in!!");
System.out.println("The Casual Wear section provide size ranging from
small(s), Medium(M), Large(L) and Extra Large(XL)");
System.out.println("Please enter the numbers according to your choice");
System.out.println("Enter 1. Casual Pants\n 2. Casual Shirts \n 3. Casual t-
shirts\n 4. Sweaters/Jackets \n 5. Trousers/shorts");
num=sc.nextInt(); if(num==1)
{
disc=1000-(0.20*1000);
name[z]="Casual Pants"; price[z]=disc;
z++;
cost=cost+disc;
System.out.println("The cost for your choice is RS:1000 after discount it is
Rs."+cost);

}
else if(num==2)
{
disc=750-(0.20*750);
name[z]="Casual Shirts"; price[z]=disc;
z++;
cost=cost+disc;
System.out.println("The cost for your choice is RS:1000 after discount it is
Rs."+cost);

}
else if(num==3)
{
disc=800-(0.20*800);
name[z]="Casual t-Shirts"; price[z]=disc;
z++;
cost=cost+disc;
System.out.println("The cost for your choice is RS:1000 after discount it is
Rs."+cost);

}
else if(num==4)

{
disc=1500-(0.20*1500);
name[z]="Sweaters/Jackets"; price[z]=disc;
z++;
cost=cost+disc;
System.out.println("The cost for your choice is RS:1000 after discount it is
Rs."+cost);
}
else if(num==5)
{
disc=1250-(0.20*1250);
name[z]="Trousers/Shorts"; price[z]=disc;
z++;
cost=cost+disc;
System.out.println("The cost for your choice is RS:1000 after discount it is
Rs."+cost);

}
else
System.out.println("Please check your input"); break;
case 3:System.out.println("This is the Formal Wear");
System.out.println("Section and we are very glad to announce that the latest
designs have just come in!!");

System.out.println("The Formal Wear section provide size ranging from


small(s), Medium(M), Large(L) and Extra Large(XL)");
System.out.println("Please enter the numbers according to your choice");
System.out.println("Enter 1. Formal Pants\n 2. Formal Shirts \n 3. Suits\n 4.
Tuxedoes \n 5. Coats and Blazers");
num=sc.nextInt(); if(num==1)
{
disc=1999-(0.25*1999);
name[z]="formal Pants"; price[z]=disc;
z++;
cost=cost+disc;
System.out.println("The cost for your choice is RS:1000 after discount it is
Rs."+cost);

}
else if(num==2)
{
disc=1000-(0.25*1000);
name[z]="Formal Shirts"; price[z]=disc;
z++;
cost=cost+disc;
System.out.println("The cost for your choice is RS:1000 after discount it is
Rs."+cost);

}
else if(num==3)
{
disc=3999-(0.25*3999);
name[z]="Suits"; price[z]=disc; z++;
cost=cost+disc;
System.out.println("The cost for your choice is RS:1000 after discount it is
Rs."+cost);

}
else if(num==4)
{
disc=3999-(0.25*3999);
name[z]="Tuxedoes"; price[z]=disc;
z++;
cost=cost+disc;
System.out.println("The cost for your choice is RS:1000 after discount it is
Rs."+cost);

}
else if(num==5)

{
disc=2950-(0.25*2950);
name[z]="Coats and Blazers"; price[z]=disc;
z++;
cost=cost+disc;
System.out.println("The cost for your choice is RS:1000 after discount it is
Rs."+cost);

}
else
System.out.println("Please check your input"); break;
case 4:System.out.println("This is the Western Wear section and we are very
glad to announce that we have received the latest designs");
System.out.println("The western wear section provide size ranging from
small(s), Medium(M), Large(L) and Extra Large(XL)");
System.out.println("Please enter the numbers according to your choice");
System.out.println("Enter 1. Jeans\n 2. Western Design Tops ");
num=sc.nextInt();
if(num==1)
{
name[z]="Jeans"; price[z]=499; z++;
System.out.println("The cost for your choice is RS:499");

cost=cost+499;
}
else if(num==2)
{
name[z]="Western Design Tops"; price[z]=299;
z++;
System.out.println("The cost for your choice is RS:499");
cost=cost+299;
}
else
System.out.println("please check your input"); break;
case 5:System.out.println("This is the Party Wear section and we are very glad
to announce that we have received the latest designs");
System.out.println("The Party wear section provide size ranging from small(s),
Medium(M), Large(L) and Extra Large(XL)");
System.out.println("Please enter the numbers according to your choice");
System.out.println("Enter 1. Party Wear Suits\n 2. Funky Party Wear Outfit");
num=sc.nextInt(); if(num==1)
{
name[z]="Party Wear Suits"; cost=cost+2000;

z++;
System.out.println("The cost for your choice is RS:2000");

}
else if(num==2)
{
name[z]="Funky Party Wear Outfit"; cost=cost+2500;
z++;
System.out.println("The cost for your choice is RS:2500");

}
else
System.out.println("please check your choice"); break;
default:
System.out.println("please check your choice");
}
}
//surprise

public void Suprise() throws IOException


{
Scanner sc= new Scanner(System.in);
System.out.println("Welcome to the Suprise clothing Section!!");
System.out.println("This section is solely dedicated to all those young couple
out there who have decided to tie the kmot");

System.out.println("We try to make it special by providing a wide range of


bridal wear for the brides and Designer wear for Grooms to choose from. So,
please enter the number that you want!");
System.out.println("All you need to do is look around and find the outfit of your
size!");
System.out.println("Enter 1. Gowns\n 2. Designer Saree\n 3. Designer Suits \n
4.Designer Sherwanis");
int chow=sc.nextInt(); switch(chow)
{
case 1:System.out.println("The cost of Your purchase is Rs.5999");
cost=cost+5999; name[z]="Gowns"; price[z]=5999; z++;
break;
case 2:System.out.println("The cost of Your purchase is Rs.7999");
cost=cost+7999; name[z]="Designer Saree"; price[z]=7999;
z++;
break;
case 3:System.out.println("The cost of Your purchase is Rs.5999");
cost=cost+7999; name[z]="Designer Suits";

price[z]=5999; z++;
break;
case 4:System.out.println("The cost of Your purchase is Rs.7999");
cost=cost+7999; name[z]="Designer Sherwanis"; price[z]=7999;
z++;
break;
default:System.out.println("Please check the input");
}
}
// Accessories

public void Accessories() throws IOException


{
Scanner sc=new Scanner(System.in); System.out.println("Welcome to the
Accessories Section");
System.out.println("We provide a wide range of selections of Accessories to
choose from");
System.out.println("If your looking for the basic necessities then your in the
right place");
System.out.println("The Accessories available are give below so please enter
the number of your choice");
System.out.println("enter 1. Cosmetics \n 2. Belt \n 3. Bangles/bracelets \n 4.
chain with Beautiful Pendants \n 5. Hairbands/Clips \n 6.Ties");
int chwo=sc.nextInt(); switch(chwo)
{
case 1: System.out.println("We are glad to announce that there is 15% discount
on your PURCHASE of Rs.2000");
disc=2000-(0.15*2000);
cost=cost+disc; name[z]="Cosmetics"; price[z]=disc;

z++;
System.out.println("The cost of your purchase after calculating discount is
Rs."+disc);
break;
case 2: System.out.println("We are glad to announce that there is 5% discount
on your PURCHASE of Rs.500");
disc=500-(0.5*500);
cost=cost+disc; name[z]="Belt"; price[z]=disc; z++;
System.out.println("The cost of your purchase after calculating discount is
Rs."+disc);
break;
case 3: System.out.println("We are glad to announce that there is 5% discount
on your PURCHASE of Rs.299");
disc=299-(0.5*299);
cost=cost+disc; name[z]="Bangles/Bracelets"; price[z]=disc;
z++;
System.out.println("The cost of your purchase after calcukating discount is
Rs."+disc);
break;
case 4: System.out.println("We are glad to announce that there is 2% discount
on your PURCHASE of Rs.250");
disc=250-(0.2*250);
cost=cost+disc; name[z]="Chains";

price[z]=disc; z++;
System.out.println("The cost of your purchase after calcukating discount is
Rs."+disc);
break;
case 5: System.out.println("We are glad to announce that there is 2% discount
on your PURCHASE of Rs.150");
disc=150-(0.2*150);
cost=cost+disc; name[z]="Hairbands/clips"; price[z]=disc;
z++;
System.out.println("The cost of your purchase after calcukating discount is
Rs."+disc);
break; case 6:
System.out.println("We are glad to announce that there is 2% discount on your
PURCHASE of Rs.250");
disc=175-(0.2*175);
cost=cost+disc; name[z]="Ties"; price[z]=disc; z++;
System.out.println("The cost of your purchase after calcukating discount is
Rs."+disc);
break;
default:System.out.println("Please check the input");
}
}

public void Shoes() throws IOException


{
Scanner sc=new Scanner(System.in); System.out.println("Welcome to the
Shoes Section!!");
System.out.println("We provide a wide range of shoes for all those shoe lovers
out there");
System.out.println("All you need to do is look around find What You like in
your Size");
System.out.println("For more convenience we have grouped Mens footwear and
women Footwear");
System.out.println("Enter \n 1.Mens Footwear \n 2. Women Footwear!");
int chow=sc.nextInt(); switch(chow)
{
case 1:System.out.println("Welcome to the Mens Footwear Section!!");
System.out.println("We hope to fulfill your need and thus provide you with a
range of choice to choose from!");
System.out.println("Enter /n 1.Normal/running shoes/ converse \n 2.Boots \n 3.
Sandals \n 4. Leather shoes");
int num=sc.nextInt(); if(num==1)
{
name[z]="Normal/running shoes/ converse"; price[z]=3000;

z++;
System.out.println("The cost for your Purchase is Rs.3000");
cost=cost+3000;
}
else if(num==2)
{
name[z]="Boots"; price[z]=6500; z++;
System.out.println("The cost for your Purchase is Rs.6500");
cost=cost+6500;
}
else if(num==3)
{
name[z]="Sandals"; price[z]=2000; z++;
System.out.println("The cost for your Purchase is Rs.2000");
cost=cost+2000;
}
else if(num==4)
{

name[z]="Leather Shoes"; price[z]=4000;


z++;
System.out.println("The cost for your Purchase is Rs.4000");
cost=cost+4000;
}
else
System.out.println("Please check your input"); break;

case 2:System.out.println("Welcome to the Womens Footwear Section!!");


System.out.println("We hope to fulfill your need and thus provide you with a
range of choice to choose from!");
System.out.println("Enter /n 1.Normal/running shoes \n 2.Boots \n 3. Sandals \n
4. Stilletos \n 5. Mid heels \n 6.High heels");
num=sc.nextInt(); if(num==1)
{
name[z]="Normal/running shoes"; price[z]=3000;
z++;
System.out.println("The cost for your Purchase is Rs.3000");
cost=cost+3000;
}
else

if(num==2)
{
name[z]="Boots"; price[z]=6500; z++;
System.out.println("The cost for your Purchase is Rs.6500");
cost=cost+6500;
}
else if(num==3)
{
name[z]="Sandals"; price[z]=2000; z++;
System.out.println("The cost for your Purchase is Rs.2000");
cost=cost+2000;
}
else if(num==4)
{
name[z]="Stilletos"; price[z]=5400;
z++;
System.out.println("The cost for your Purchase is Rs.5400");
cost=cost+5400;

}
else if(num==5)
{
name[z]="Mid Heels"; price[z]=4000;
z++;
System.out.println("The cost for your Purchase is Rs.4000");
cost=cost+4000;
}
else if(num==6)
{
name[z]="High Heels"; price[z]=4500;
z++;
System.out.println("The cost for your Purchase is Rs.4500");
cost=cost+4500;
}
else
System.out.println("Please check your input"); break;
default:
System.out.println("Please check your Input");
}
}

//Kids
public void Kids() throws IOException
{
Scanner sc=new Scanner(System.in); System.out.println("Welcome to the kids
clothing Section!!");
System.out.println("We provide certain categories for your kids!!");
System.out.println("The categories are for \n 1. 0-12 months(Infants) \n 2. 1-6
years \n 3. 7-12 years \n 4. 7-15 years");
System.out.println("Please enter the number of your choice");
int chow=sc.nextInt(); switch(chow)
{

case 1:System.out.println("Please enter the gender of a baby. female or male");


String sex=sc.nextLine(); if(sex.equalsIgnoreCase("female"))
{
System.out.println("We are glad to announce that is in store for your young
baby girl");
System.out.println("kindly look around and choose the correct size for your
kids");
System.out.println("please enter \n 1. Skirts/T-shirts \n 2. plain frocks \n 3.
frilled frocks");
int num=sc.nextInt(); if(num==1)
{
name[z]="Skirts/t-shirts"; price[z]=299;
z++;
System.out.println("The cost for your purchase is Rs.299");
cost=cost+299;

}else if(num==2)
{

name[z]="plain Frocks"; price[z]=250;


z++;
System.out.println("The cost for your purchase is Rs.250");

cost=cost+250;
}
else if(num==3)
{

name[z]="Frilled frocks"; price[z]=325;


z++;
System.out.println("The cost for your purchase is Rs.325");
cost=cost+325;

}else{
System.out.println("Please check your input");
}}
else if(sex.equalsIgnoreCase("male"))
{
System.out.println("We are glad to announce that is in store for your young
baby boy");
System.out.println("kindly look around and choose the correct size for your
kids");
System.out.println("please enter \n 1. Pants/T-shirts \n 2. Shorts/tops");
int num=sc.nextInt(); if(num==1)
{
name[z]="Pants/T-shirts";

price[z]=199; z++;
System.out.println("The cost for your purchase is Rs.199");
cost=cost+199;
}
else if(num==2)
{
name[z]="Shorts/tops"; price[z]=225;
z++;
System.out.println("The cost for your purchase is Rs.225");
cost=cost+225;

}}else{
System.out.println("Please check your input"); break;
}
case 2:
System.out.println("Welcome to the 1-6 yeras category section and we are very
glad to help you choose clopthes for your little Angles");
System.out.println("Polease enter the gender of the kid. female or male");
sex=sc.nextLine();
if(sex.equalsIgnoreCase("female"))

{
System.out.println("We are glad to announce that is in store for your young
baby girl");
System.out.println("kindly look around and choose the correct size for your
kids");
System.out.println("please enter \n 1. Skirts/T- shirts/shorts \n 2. plain frocks \n
3. frilled frocks \n 4.Pretty dresses \n 5. dungrees and pants \n 6. Ghagras");
int num=sc.nextInt(); if(num==1)
{
name[z]="Skirts/t-shirts/Shorts"; price[z]=299;
z++;
System.out.println("The cost for your purchase is Rs.299");
cost=cost+299;

}else if(num==2)
{
name[z]="plain Frocks"; price[z]=265;
z++;
System.out.println("The cost for your purchase is Rs.265");
cost=cost+265;

}else if(num==3)
{

name[z]="Frilled frocks"; price[z]=325;


z++;
System.out.println("The cost for your purchase is Rs.325");
cost=cost+325;

}else if(num==4)
{

name[z]="Pretty Dresses"; price[z]=300;


z++;
System.out.println("The cost for your purchase is Rs.300");
cost=cost+300;

}else if(num==5)
{

name[z]="Dungrees and pants/Jeans"; price[z]=299;


z++;
System.out.println("The cost for your purchase is Rs.299");
cost=cost+299;

}
else if(num==6)
{

name[z]="Ghagaras"; price[z]=399;
z++;
System.out.println("The cost for your purchase is Rs.399");
cost=cost+399;

}else{
System.out.println("Please check your input"); break;
}}
else if(sex.equalsIgnoreCase("male"))
{
System.out.println("We are glad to announce that is in store for your young
baby boy");
System.out.println("kindly look around and choose the correct size for your
kids");
System.out.println("please enter \n 1. Pants/T-shirts- \n 2. Shorts/tops \n
3.Trousers \n 4.Sherwani");
} int num=sc.nextInt();
if(num==1)
{
name[z]="Pants/T-shirts"; price[z]=299;

z++;
System.out.println("The cost for your purchase is Rs.299");
cost=cost+299;

}else if(num==2)
{
System.out.println("The cost for your purchase is Rs.225");
name[z]="Shorts/tops"; price[z]=225;
z++;
System.out.println("The cost for your purchase is 255");
cost=cost+225;

}if(num==3)
{
System.out.println("The cost for your purchase is Rs.399");

name[z]="Trousers"; price[z]=399;
z++;
System.out.println("The cost for your purchase is 399");
cost=cost+399;

}else if(num==4)
{
name[z]="Sherwanis";

price[z]=399; z++;
System.out.println("The cost for your purchase is Rs.399");
cost=cost+399;

}else{

System.out.println("Please check your input"); break;


}
case 3:System.out.println("Welcome to the 7-12 yeras category section and we
are very glad to help you choose clopthes for your little Angles");
System.out.println("Polease enter the gender of the kid. female or male");

sex=sc.nextLine(); if(sex.equalsIgnoreCase("female"))
{
System.out.println("We are glad to announce that is in store for your young
baby girl");
System.out.println("kindly look around and choose the correct size for your
kids");
System.out.println("please enter \n 1. Skirts/T- shirts/shorts \n 2.Pretty dresses
\n 3. dungrees and pants \n 4. Ghagras");
int nume=sc.nextInt(); if(nume==1)
{
name[z]="Skirts/t-shirts/Shorts"; price[z]=399;
z++;
System.out.println("The cost for your purchase is Rs.399");
cost=cost+399;

}else if(nume==2)
{
name[z]="Pretty Dresses"; price[z]=295;
z++;
System.out.println("The cost for your purchase is Rs.295");
cost=cost+295;
}else if(nume==3)
{
name[z]="Dungrees and pants/Jeans"; price[z]=325;
z++;
System.out.println("The cost for your purchase is Rs.325");
cost=cost+325;
}else if(nume==4)
{

name[z]="Ghagaras"; price[z]=300;
z++;
System.out.println("The cost for your purchase isRs.300");
cost=cost+300;

}else{
System.out.println("Please check your input"); break;
}
}
else if(sex.equalsIgnoreCase("male"))
{
System.out.println("We are glad to announce that is in store for your young
baby boy");
System.out.println("kindly look around and choose the correct size for your
kids");
System.out.println("please enter \n 1. Pants/T-shirts \n 2. Shorts/tops \n
3.Trousers \n 4.Sherwani");
int numeric=sc.nextInt();
if(numeric==1)
{
name[z]="Pants/T-shirts"; price[z]=299;

z++;
System.out.println("The cost for your purchase is Rs.299"); cost=cost+299;

}else if(numeric==2)
{

name[z]="Shorts/tops"; price[z]=225;
z++;
System.out.println("The cost for your purchase isRs.225");
cost=cost+225;
}else if(numeric==3)
{

name[z]="Trousers"; price[z]=399;
z++;
System.out.println("The cost for your purchase is Rs.399");
cost=cost+399;

}else if(numeric==4)
{
name[z]="Sherwanis"; price[z]=399;
z++;
System.out.println("The cost for your purchase isRs.399"); cost=cost+399;

}else{

System.out.println("Please check your input"); break;


}}
case 4:System.out.println("Welcome to the 1-6 yeras category section and we
are very glad to help you choose clopthes for your little Angles");
System.out.println("Polease enter the gender of the kid. female or male");
sex=sc.nextLine(); if(sex.equalsIgnoreCase("female"))
{
System.out.println("We are glad to announce that is in store for your young
baby girl");
System.out.println("kindly look around and choose the correct size for your
kids");
System.out.println("please enter \n 1. Skirts/T- shirts/shorts \n 2. plain frocks \n
3. frilled frocks \n 4.Pretty dresses \n 5. dungrees and pants \n 6. Ghagras");
int numer=sc.nextInt(); if(numer==1)

{
name[z]="Skirts/t-shirts/Shorts"; price[z]=299;
z++;
System.out.println("The cost for your purchase is Rs.299");cost=cost+299;

}else if(numer==2)
{

name[z]="plain Frocks"; price[z]=265;


z++;
System.out.println("The cost for your purchase is Rs.265");
cost=cost+265;

}else if(numer==3)
{

name[z]="Frilled frocks"; price[z]=325;


z++;
System.out.println("The cost for your purchase is Rs.325"); cost=cost+325;

}else if(numer==4)
{

name[z]="Pretty Dresses"; price[z]=300;


z++;
System.out.println("The cost for your purchase is Rs.300");
cost=cost+300;

}else if(numer==5)
{

name[z]="Dungrees and pants/Jeans"; price[z]=299;


z++;
System.out.println("The cost for your purchase is Rs.299");
cost=cost+299;

}else if(numer==6)
{

name[z]="Ghagaras"; price[z]=399;
z++;
System.out.println("The cost for your purchase is Rs.399");

cost=cost+399;

}else{
System.out.println("Please check your input"); break;
}

}
else if(sex.equalsIgnoreCase("male"))
{
System.out.println("We are glad to announce that is in store for your young
baby boy");
System.out.println("kindly look around and choose the correct size for your
kids");
System.out.println("please enter \n 1. Pants/T-shirts \n 2. Shorts/tops \n
3.Trousers \n 4.Sherwani"); int numeri=sc.nextInt();
if(numeri==1)
{

name[z]="Pants/T-shirts"; price[z]=299;
z++;
System.out.println("The cost for your purchase is Rs.299");
cost=cost+299;

}else if(numeri==2)
{
name[z]="Shorts/tops";
price[z]=225; z++;
System.out.println("The cost for your purchase is Rs.225");
cost=cost+225;
}
if(numeri==3)
{

name[z]="Trousers"; price[z]=399;
z++;
System.out.println("The cost for your purchase is Rs.399");
cost=cost+399;

}else if(numeri==4)
{

name[z]="Sherwanis"; price[z]=399;
z++;
System.out.println("The cost for your purchase is Rs.399");
cost=cost+399;

}else

System.out.println("Please check your input");

break;
}
case 5:System.out.println("Welcome to the 8-15 yeras category section and we
are very glad to help you choose clopthes for your little Angles");
System.out.println("Please enter the gender of the kid. female or male");
sex=sc.nextLine(); if(sex.equalsIgnoreCase("female"))
{
System.out.println("We are glad to announce that is in store for your young
baby girl");
System.out.println("kindly look around and choose the correct size for your
kids");
System.out.println("please enter \n 1. Skirts/T- shirts/shorts \n 2.Pretty dresses
\n 3. dungrees and pants \n 4. Ghagras");
int numb=sc.nextInt(); if(numb==1)
{

name[z]="Skirts/t-shirts/Shorts"; price[z]=399;
z++;
System.out.println("The cost for your purchase is Rs.399"); cost=cost+399;

}else if(numb==2)

{
name[z]="Pretty Dresses"; price[z]=295;
z++;
System.out.println("The cost for your purchase is Rs.295");
cost=cost+295;
}
else if(numb==3)
{

name[z]="Dungrees and pants/Jeans"; price[z]=325;


z++;
System.out.println("The cost for your purchase is Rs.325");
cost=cost+325;

}else if(numb==4)
{
name[z]="Ghagaras"; price[z]=300;
z++;
System.out.println("The cost for your purchase is Rs.300");
cost=cost+300;

}else{
System.out.println("Please check your input"); break;
}}
else if(sex.equalsIgnoreCase("male"))
{
System.out.println("We are glad to announce that is in store for your young
baby boy");
System.out.println("kindly look around and choose the correct size for your
kids");
System.out.println("please enter \n 1. Pants/T-shirts \n 2. Shorts/tops \n
3.Trousers \n 4.Sherwani");
int numbe=sc.nextInt();
if(numbe==1)
{

name[z]="Pants/T-shirts"; price[z]=399;
z++;
System.out.println("The cost for your purchase is Rs.399");
cost=cost+399;
}
else if(numbe==2)
{
name[z]="Shorts/tops"; price[z]=325;

z++;
System.out.println("The cost for your purchase is Rs.325");
cost=cost+325;

}else if(numbe==3){

name[z]="Trousers"; price[z]=299;
z++;
System.out.println("The cost for your purchase is Rs.299");
cost=cost+299;

}else if(numbe==4)
{

name[z]="Sherwanis"; price[z]=399;
z++;
System.out.println("The cost for your purchase is Rs.399");
cost=cost+399;
}
else
System.out.println("Please check your input");
break;
}
default:
System.out.println("please Check the input");
}
}

You might also like