Computer Project
Computer Project
SCHOOL
Name:
Class: 10A
Subject: computeR
Submitted to Mrs.
Kenneth George English school
Certificate
Date…………………………
3. Enter the number which you like among the given list.
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;
}
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
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!!");
}
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
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
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");
}
}
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)
{
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)
{
}else if(num==2)
{
cost=cost+250;
}
else if(num==3)
{
}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)
{
}else if(num==4)
{
}else if(num==5)
{
}
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{
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{
{
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)
{
}else if(numer==3)
{
}else if(numer==4)
{
}else if(numer==5)
{
}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
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)
{
}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");
}
}