You are on page 1of 4

ICSE COMPUTER APPLICATIONS BLUEJ PROJECT BY WWW.THEEXAMPAPERS.

COM written by Chi


rag Agarwal import java.io.*;
import java.util.*;
class ares
{
double cart; void flo() throws Exception {
BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
String flch,num,choice;
int ch,n;
do{System.out.println("** WELCOME TO Lenovo Computers **"); System.out.println("
\n************************\n\t1. Lenovo 3000 H10053118BQ Desktop Computer\n*****
****************************************\n\t2. Lenovo 3000 H10053118AQ Desktop C
omputer\n*********************************************\n\t3. Lenovo 3000 H100531
19AQ Desktop Computer"); System.out.println("********************************\n\
t4. Lenovo 3000 N2000769A29 Notebook\n******************************************
********\n\t5. Lenovo 3000 N1000768HBQ Notebook\n*******************************
*******************\n\t6. Lenovo 3000 N1000689A65 Notebook\n********************
******************************\n\t7. Lenovo 3000 N1000689AQ1 Notebook"); System.
out.println("Type the number 1/2/3/4/5/6/7 to indicate the choice of Laptop you
intend to buy..");
flch=buf.readLine();
ch=Integer.parseInt(flch);
System.out.println("Type the number of Computers/Laptops you intend to buy of
the above choice...");
num=buf.readLine();
n=Integer.parseInt(num);
if(ch==1)
{
System.out.println("Each Lenovo 3000 H10053118BQ Desktop Computer cost Rs. 20,25
0"); System.out.println("you pay Rs. "+(n*20250)+" for the Lenovo 3000 H10053118
BQ Desktop Computer(s)"); cart=n*20250; }else if(ch==2) { System.out.println("Ea
ch Lenovo 3000 H10053118AQ Desktop Computer cost Rs. 21,750"); System.out.printl
n("you pay Rs. "+(n*21750)+" for the Desktop Computer(s)"); cart=n*21750; }else
if(ch==3) { System.out.println("Each Lenovo 3000 H10053119AQ Desktop Computer co
st Rs. 22,250"); System.out.println("you pay Rs. "+(n*22250)+" for the Desktop C
omputer(s)"); cart=n*22250; }else if(ch==4) { System.out.println("Each Lenovo 30
00 N2000769A29 Notebook cost Rs. 34,990");
System.out.println("you pay Rs. "+(n*34990)+" for the Notebook)");
cart=n*34990;
}else if(ch==5) { System.out.println("Each Lenovo 3000 N1000768HBQ Notebook cost
Rs. 38,500");
System.out.println("you pay Rs. "+(n*38500)+" for the Notebook");
cart=n*38500;
}else if(ch==6) { System.out.println("Each Lenovo 3000 N1000689A65 Notebook cost
Rs. 52,000");
System.out.println("you pay Rs. "+(n*52000)+" for the Notebook");
cart=n*52000;
}else if(ch==7)
{System.out.println("Each Lenovo 3000 N1000689AQ1 Notebook cost Rs. 52,000");
System.out.println("you pay Rs. "+(n*52000)+" for the Notebook");
cart=n*52000;
}else System.out.println("********** SORRY !!!**********\n\t The Lenovo Product(
s) ordered by you are not available. "); System.out.println("Type 'c' to continu
e buying the Desktops/Notebooks......"); choice=buf.readLine();
}while(choice.equalsIgnoreCase("c"));
}void mobilestore() throws Exception
{
BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
String flch,num,choice;

int ch,n;
do{System.out.println("** WELCOME TO THE NOKIA GALLERY**"); System.out.println("
\n************************\n\t1. Nokia 2310\n***********************************
**********\n\t2. Nokia 3110 classic\n*******************************************
**\n\t3. Nokia 5070"); System.out.println("********************************\n\t4
. Nokia
5300\n**************************************************\n\t5. Nokia
7610\n**************************************************\n\t6. Nokia N73
M\n**************************************************\n\t7. Nokia N93i");
System.out.println("Type the number 1/2/3/4/5/6/7 to indicate the choice of Noki
a Handset you intend to buy..");
flch=buf.readLine();
ch=Integer.parseInt(flch);
System.out.println("Type the number of Nokia Handsets you intend to buy of the
above choice...");
num=buf.readLine();
n=Integer.parseInt(num);
if(ch==1)
{
System.out.println("EachNokia 2310 cost Rs. 3115");
System.out.println("You pay Rs. "+(n*3115)+" for theHandset(s)");
cart=n*3115;
}else if(ch==2) {
System.out.println("Each Nokia 3110 classic cost Rs. 4250");
System.out.println("You pay Rs. "+(n*4250)+" for theHandset(s)(s)");
cart=n*4250;
}else if(ch==3) {
System.out.println("Each Nokia 5070 cost Rs. 6250");
System.out.println("You pay Rs. "+(n*6250)+" for theHandset(s)");
cart=n*6250;
}else if(ch==4) {
System.out.println("Each Nokia 5300 cost Rs. 6500");
System.out.println("You pay Rs. "+(n*6500)+" for the Handset(s)");
cart=n*6500;
}else if(ch==5) {
System.out.println("Each Nokia 7610 cost Rs. 9500");
System.out.println("You pay Rs. "+(n*9500)+" for the Handset(s)");
cart=n*9500;
}else if(ch==6) { System.out.println("Each Nokia N73 M (2GB Memory Card Free) co
st Rs. 15500");
System.out.println("You pay Rs. "+(n*15500)+" for the Handset(s)");
cart=n*15500;
}else if(ch==7) {
System.out.println("Each Nokia N93i cost Rs. 32000");
System.out.println("You pay Rs. "+(n*32000)+" for the Desktop
Computer(s)"); cart=n*32000; }else
System.out.println("********** SORRY !!!**********\n\t The Nokia Product(s) orde
red by you are not available. "); System.out.println("Type 'c' to continue buyin
g Nokia Handsets......"); choice=buf.readLine();
}while(choice.equalsIgnoreCase("c"));
}
voidclothesrack() throws Exception { BufferedReader buf=new BufferedReader(new I
nputStreamReader(System.in));
String chc,num,choice;
int ch,n,i;
char sz;
do{System.out.println("WELCOME TO THE LEGANZA SHOWROOM");
System.out.println("\n***************************\n\t 1.DARK
BLUE JEANS\n***************************\n\t 2.LIGHT BLUE
JEANS\n***************************\n\t 3.BLACK

\n***************************\n\t 4.BROWN");
System.out.println("\n \n 15% discount on shirts \n 30% discount on trousers");
System.out.println("Each item will cost you Rs.699");
System.out.println("Type the number that indicates your choice of item to
buy 1/2/3/4/5"); chc=buf.readLine();
ch=Integer.parseInt(chc);
switch(ch)
{
case 1:
case 2:
case 3:
case 4:
case 5:
System.out.println("Enter the number of items you want: ");
num=buf.readLine();
n=Integer.parseInt(num);
for(i=1;i<=n;i++)
{
System.out.println("Enter the waist length: ");
String w=buf.readLine();
System.out.println("The item has been added to your shopping cart");
cart=cart+699;
}break; default: System.out.println("The choice entered is incorrect"); }System.
out.println("Type 'cont' to continue shopping in the Leganza Showroom"); choice=
buf.readLine(); }while(choice.equalsIgnoreCase("cont")); }void kids() throws Exc
eption { BufferedReader buf=new BufferedReader(new InputStreamReader(System.in))
;
String chc,num,choice,d,chhh;
int ch,n,i,j;
double cost=0;
char sz;
System.out.println("WELCOME TO KIDS CORNER"); do{System.out.println("We have the
following sections in our store: "); System.out.println("**** 1.INFANTS (0 TO 1
YR.)****\n**** 2.KIDS (2 TO 12 YRS.)****\n****3.TEEN AGERS(13 TO 19 YRS.)****")
; System.out.println("Enter the section in which you would like to shop: ");
chc=buf.readLine();
ch=Integer.parseInt(chc);
switch(ch) {
case 1:
do{System.out.println("******* WELCOME TO INFANTS SECTION
OF KIDS CORNER*******"); System.out.println("1. BATTERTY OPERATED TOYS \n\t 2. M
ANUALLY OPERATED TOYS \n\t 3.STROLLER \n\t 4.PREM \n\t 5.CRIB \n\t 6.CAPS"); Sys
tem.out.println("Type the number corresponding to the item that you want to shop
..");
d=buf.readLine();
j=Integer.parseInt(d);
switch(j)
{
case 1:cost=350;
System.out.println("Each Article will cost you Rs. "+cost);
System.out.println("Enter the number of items to buy..");
num=buf.readLine();
n=Integer.parseInt(num);
cart=n*cost;
break;
case 2:cost=250;
System.out.println("Each Article will cost you Rs. "+cost);
System.out.println("Enter the number of items to buy..");
num=buf.readLine();
n=Integer.parseInt(num);

cart=n*cost;
break;
case 3:cost=2500;
System.out.println("Each Article will cost you Rs. "+cost);
System.out.println("Enter the number of items to buy..");
num=buf.readLine();
n=Integer.parseInt(num);
cart=n*cost;
break;
case 4:cost=2000;
System.out.println("Each Article will cost you Rs. "+cost);
System.out.println("Enter the number of items to buy..
TheExamPapers.com ");
num=buf.readLine();
n=Integer.parseInt(num);
cart=n*cost;
break;
case 5:cost=1800;
System.out.println("Each Article will cost you Rs. "+cost);
System.out.println("Enter the number of items to buy..");
num=buf.readLine();
n=Integer.parseInt(num);
cart=n*cost;
break;
case 6:cost=50;break;
default: System.out.println("Sorry the item with this number doesn't exist!!!");
}System.out.println("Type 'cont' to continue shopping in the infants section...
"); chhh=buf.readLine();
}while(chhh.equalsIgnoreCase("cont"));
break;

You might also like