Professional Documents
Culture Documents
1|Page
import java.util.*;
class billing_software{
int d,vstr,tvstr=0,nvstr,tnvstr=0,nvfd,tnvfd=0,fd,tfd=0,hi,thi=0,df,tdf=0,ds,tds=0;
int sn,tsn=0,si,tsi=0,st,tst=0,amt=0,tamt=0;
int tamt1=0,tamt2=0,tamt3=0,tamt4=0,tamt5=0,tamt6=0,tamt7=0;
int ch,g,tg=0,s,ts=0;
int c1=0,c2=0,c3=0,c4=0,c5=0,c6=0,c7=0,c8=0;
double gst=0,tot,gtotal;
String str="",choice,choice1="Y";
while(choice1.equalsIgnoreCase("Y"))
System.out.println();
System.out.println("7: Groceries");
System.out.println("8: Stationary");
System.out.println();
2|Page
System.out.println("Enter your choice:");
ch=in.nextInt();
switch(ch)
case 1:
c1++;
str=in.next();
if(str.equalsIgnoreCase("M"))
System.out.println("1.Pork \t\t\t350");
System.out.println("2.Beef \t\t\t185");
System.out.println("3.Mutton \t\t\t745");
System.out.println("4.Chicken lolipop\t\t\t250");
System.out.println("6.Venison \t\t\t310");
System.out.println("7.Chicken(Boneless)\t\t\t235");
System.out.println();
choice="Y";
while(choice.equalsIgnoreCase("Y"))
3|Page
vstr=in.nextInt();
tvstr=in.nextInt();
if(vstr==1)
amt=tvstr*350;
if(vstr==2)
amt=tvstr*185;
if(vstr==3)
amt=tvstr*745;
if(vstr==4)
amt=tvstr*250;
if(vstr==5)
amt=tvstr*260;
if(vstr==6)
amt=tvstr*310;
if(vstr==7)
amt=tvstr*235;
tamt=tamt+amt;
choice=in.next();
if(str.equalsIgnoreCase("SF"))
{
4|Page
System.out.println("Sea Foods \t\t\tPrice in Rs.");
System.out.println("1.Shrimps \t\t\t350");
System.out.println("2.Catfish \t\t\t170");
System.out.println("3.Crab \t\t\t1100");
System.out.println("4.Clams \t\t\t140");
System.out.println("6.Pomfret fish\t\t\t790");
System.out.println("8.Alaska Pallock\t\t\t260");
System.out.println();
choice="Y";
while(choice.equalsIgnoreCase("Y"))
nvstr=in.nextInt();
tnvstr=in.nextInt();
if(nvstr==1)
amt=tnvstr*350;
if(nvstr==2)
amt=tnvstr*170;
if(nvstr==3)
amt=tnvstr*1100;
5|Page
if(nvstr==4)
amt=tnvstr*140;
if(nvstr==5)
amt=tnvstr*182;
if(nvstr==6)
amt=tnvstr*790;
if(nvstr==7)
amt=tnvstr*289;
if(nvstr==8)
amt=tnvstr*260;
if(nvstr==9)
amt=tnvstr*140;
tamt=tamt+amt;
Y/N");
choice=in.next();
break;
case 2:
c2++;
System.out.println();
6|Page
System.out.println("1.Milk \t\t\t38");
System.out.println("2.Cheese \t\t\t300");
System.out.println("3.Butter \t\t\t210");
System.out.println("5.Yogurt \t\t\t42");
System.out.println("7.Paneer \t\t\t340");
System.out.println("8.Ghee \t\t\t509");
System.out.println();
choice="Y";
while(choice.equalsIgnoreCase("Y"))
nvfd=in.nextInt();
tnvfd=in.nextInt();
if(nvfd==1)
amt=tnvfd*38;
if(nvfd==2)
amt=tnvfd*300;
if(nvfd==3)
amt=tnvfd*210;
if(nvfd==4)
amt=tnvfd*205;
7|Page
if(nvfd==5)
amt=tnvfd*42;
if(nvfd==6)
amt=tnvfd*210;
if(nvfd==7)
amt=tnvfd*340;
if(nvfd==8)
amt=tnvfd*509;
tamt1=tamt1+amt;
choice=in.next();
break;
case 3:
c3++;
System.out.println();
System.out.println("1.Breads \t\t\t55");
System.out.println("2.Rolls \t\t\t90");
System.out.println("3.Cakes \t\t\t280");
System.out.println("4.Pasteries \t\t\t450");
System.out.println("5.Rusk \t\t\t170");
System.out.println("6.Buns \t\t\t110");
8|Page
System.out.println("7.Cookies \t\t\t115");
System.out.println("10.Cinnamon Rolls\t\t114");
System.out.println("11.Muffins \t\t\t90");
System.out.println();
choice="Y";
while(choice.equalsIgnoreCase("Y"))
fd=in.nextInt();
tfd=in.nextInt();
if(fd==1)
amt=tfd*55;
if(fd==2)
amt=tfd*90;
if(fd==3)
amt=tfd*280;
if(fd==4)
amt=tfd*450;
if(fd==5)
amt=tfd*170;
if(fd==6)
9|Page
amt=tfd*110;
if(fd==7)
amt=tfd*115;
if(fd==8)
amt=tfd*150;
if(fd==9)
amt=tfd*99;
if(fd==10)
amt=tfd*114;
if(fd==11)
amt=tfd*90;
tamt2=tamt2+amt;
choice=in.next();
break;
case 4:
c4++;
System.out.println();
System.out.println("3.Mop \t\t\t350");
10 | P a g e
System.out.println("4.Soft Scrub \t\t\t32");
System.out.println("6.Detergent \t\t\t75");
System.out.println("7.Bleach \t\t\t125");
System.out.println("9.Shampoo \t\t\t102");
System.out.println("10.Conditioner \t\t\t35");
System.out.println("14.Toothpaste \t\t\t45");
System.out.println("15.Mouthwash \t\t\t447");
System.out.println("16.Deodrant \t\t\t345");
System.out.println("18.Razors \t\t\t83");
System.out.println("19.Band-Aids \t\t\t110");
System.out.println("20.Hand Sanitizer\t\t\t199");
System.out.println("22.Battery Cells\t\t\t15");
System.out.println("23.Tissue Papers\t\t\t60");
System.out.println("24.Bottles \t\t\t135");
System.out.println("26.Candle \t\t\t15");
11 | P a g e
System.out.println();
choice="Y";
while(choice.equalsIgnoreCase("Y"))
hi=in.nextInt();
thi=in.nextInt();
if(hi==1)
amt=thi*108;
if(hi==2)
amt=thi*270;
if(hi==3)
amt=thi*350;
if(hi==4)
amt=thi*32;
if(hi==5)
amt=thi*55;
if(hi==6)
amt=thi*75;
if(hi==7)
amt=thi*125;
if(hi==8)
amt=thi*399;
12 | P a g e
if(hi==9)
amt=thi*102;
if(hi==10)
amt=thi*35;
if(hi==11)
amt=thi*240;
if(hi==12)
amt=thi*185;
if(hi==13)
amt=thi*199;
if(hi==14)
amt=thi*45;
if(hi==15)
amt=thi*447;
if(hi==16)
amt=thi*345;
if(hi==17)
amt=thi*140;
if(hi==18)
amt=thi*83;
if(hi==19)
amt=thi*110;
if(hi==20)
amt=thi*199;
13 | P a g e
if(hi==21)
amt=thi*450;
if(hi==22)
amt=thi*15;
if(hi==23)
amt=thi*60;
if(hi==24)
amt=thi*135;
if(hi==25)
amt=thi*25;
if(hi==26)
amt=thi*15;
if(hi==27)
amt=thi*10;
tamt3=tamt3+amt;
choice=in.next();
break;
case 5:
c5++;
System.out.println();
System.out.println("3.Cashewnuts \t\t\t1200");
System.out.println("4.Dates \t\t\t380");
System.out.println("7.Foxnuts \t\t\t400");
System.out.println("8.Walnuts \t\t\t1600");
System.out.println("9.Peanut \t\t\t190");
System.out.println("11.Pistachios \t\t\t1330");
System.out.println("12.Raisins \t\t\t410");
System.out.println("13.Saffron \t\t\t120000");
System.out.println("15.Sunflower Seeds\t\t\t450");
System.out.println();
choice="Y";
while(choice.equalsIgnoreCase("Y"))
df=in.nextInt();
tdf=in.nextInt();
15 | P a g e
if(df==1)
amt=tdf*1100;
if(df==2)
amt=tdf*600;
if(df==3)
amt=tdf*1200;
if(df==4)
amt=tdf*380;
if(df==5)
amt=tdf*480;
if(df==6)
amt=tdf*650;
if(df==7)
amt=tdf*400;
if(df==8)
amt=tdf*1600;
if(df==9)
amt=tdf*190;
if(df==10)
amt=tdf*4100;
if(df==11)
amt=tdf*1330;
if(df==12)
amt=tdf*410;
16 | P a g e
if(df==13)
amt=tdf*120000;
if(df==14)
amt=tdf*450;
if(df==15)
amt=tdf*450;
if(df==16)
amt=tdf*595;
tamt4=tamt4+amt;
choice=in.next();
break;
case 6:
c6++;
System.out.println();
System.out.println("1.Coca-Cola \t\t\t57");
System.out.println("2.Pepsi \t\t\t40");
System.out.println("3.Sprite \t\t\t40");
System.out.println("4.Thumbsup \t\t\t40");
System.out.println("5.Fanta \t\t\t40");
System.out.println("6.Maaza \t\t\t40");
17 | P a g e
System.out.println("7.7Up \t\t\t40");
System.out.println("8.Mirinda \t\t\t50");
System.out.println("9.Limca \t\t\t40");
System.out.println("10.Mountain Dew\t\t\t40");
System.out.println("11.Sting \t\t\t20");
System.out.println("12.Frooti \t\t\t10");
System.out.println("14.Bindu \t\t\t40");
System.out.println("15.Fizz \t\t\t15");
System.out.println("16.Appy \t\t\t10");
System.out.println();
choice="Y";
while(choice.equalsIgnoreCase("Y"))
ds=in.nextInt();
tds=in.nextInt();
if(ds==1)
amt=tds*57;
if(ds==2)
amt=tds*40;
if(ds==3)
amt=tds*40;
18 | P a g e
if(ds==4)
amt=tds*40;
if(ds==5)
amt=tds*40;
if(ds==6)
amt=tds*40;
if(ds==7)
amt=tds*40;
if(ds==8)
amt=tds*50;
if(ds==9)
amt=tds*40;
if(ds==10)
amt=tds*40;
if(ds==11)
amt=tds*20;
if(ds==12)
amt=tds*10;
if(ds==13)
amt=tds*440;
if(ds==14)
amt=tds*40;
if(ds==15)
amt=tds*15;
19 | P a g e
if(ds==16)
amt=tds*10;
tamt5=tamt5+amt;
choice=in.next();
break;
case 7:
c7++;
str=in.next();
if(str.equalsIgnoreCase("V"))
System.out.println("1.Broccoli \t\t\t80");
System.out.println("2.Cauliflower \t\t\t40");
System.out.println("3.Mushroom \t\t\t55");
System.out.println("4.Onions \t\t\t28");
System.out.println("6.Radish \t\t\t37");
System.out.println("7.Carrot \t\t\t77");
System.out.println("8.Cucumber \t\t\t45");
System.out.println("9.Corn \t\t\t19");
20 | P a g e
System.out.println("10.Green Chilli \t\t\t89");
System.out.println("11.Garlic \t\t\t141");
System.out.println("12.Spring Onions\t\t\t12");
System.out.println("13.Tomato \t\t\t17");
System.out.println("14.Peas \t\t\t215");
System.out.println("16.Potato \t\t\t39");
System.out.println("17.Ginger \t\t\t97");
System.out.println("18.Pumpkin \t\t\t20");
System.out.println("19.Corriander \t\t\t40");
System.out.println("20.Mint \t\t\t20");
System.out.println();
choice="Y";
while(choice.equalsIgnoreCase("Y"))
sn=in.nextInt();
tsn=in.nextInt();
if(sn==1)
amt=tsn*80;
if(sn==2)
amt=tsn*40;
21 | P a g e
if(sn==3)
amt=tsn*55;
if(sn==4)
amt=tsn*28;
if(sn==5)
amt=tsn*49;
if(sn==6)
amt=tsn*37;
if(sn==7)
amt=tsn*77;
if(sn==8)
amt=tsn*45;
if(sn==9)
amt=tsn*19;
if(sn==10)
amt=tsn*89;
if(sn==11)
amt=tsn*141;
if(sn==12)
amt=tsn*12;
if(sn==13)
amt=tsn*17;
if(sn==14)
amt=tsn*215;
22 | P a g e
if(sn==15)
amt=tsn*34;
if(sn==16)
amt=tsn*39;
if(sn==17)
amt=tsn*97;
if(sn==18)
amt=tsn*20;
if(sn==19)
amt=tsn*40;
if(sn==20)
amt=tsn*20;
if(sn==21)
amt=tsn*10;
tamt6=tamt6+amt;
choice=in.next();
if(str.equalsIgnoreCase("F"))
System.out.println("1.Apple \t\t\t149");
System.out.println("2.Banana \t\t\t51");
23 | P a g e
System.out.println("3.Guava \t\t\t59");
System.out.println("4.Mango \t\t\t130");
System.out.println("6.Water Melon\t\t\t40");
System.out.println("7.Papaya \t\t\t49");
System.out.println("8.Peach \t\t\t250");
System.out.println("9.Pineapple \t\t\t250");
System.out.println("10.Pomegranate\t\t\t210");
System.out.println("11.Grapes \t\t\t236");
System.out.println("12.Mosambi \t\t\t51");
System.out.println("13.Orange \t\t\t1270");
System.out.println();
choice="Y";
while(choice.equalsIgnoreCase("Y"))
st=in.nextInt();
tst=in.nextInt();
if(st==1)
amt=tst*49;
if(st==2)
amt=tst*51;
if(st==3)
24 | P a g e
amt=tst*59;
if(st==4)
amt=tst*30;
if(st==5)
amt=tst*89;
if(st==6)
amt=tst*40;
if(st==7)
amt=tst*49;
if(st==8)
amt=tst*250;
if(st==9)
amt=tst*250;
if(st==10)
amt=tst*210;
if(st==11)
amt=tst*236;
if(st==12)
amt=tst*51;
if(st==13)
amt=tst*270;
tamt6=tamt6+amt;
choice=in.next();
25 | P a g e
}
break;
case 8:
c8++;
System.out.println();
System.out.println("1.Stappler \t\t\t34");
System.out.println("2.Drawing Pins\t\t\t10");
System.out.println("4.Rubber Stamp\t\t\t147");
System.out.println("5.Highlighter \t\t\t65");
System.out.println("6.Fountain Pen\t\t\t45");
System.out.println("7.Pencil \t\t\t20");
System.out.println("8.Marker \t\t\t110");
System.out.println("10.Pen-Pencil \t\t\t15");
System.out.println("11.Pencil Sharpener\t\t20");
System.out.println("12.Label \t\t\t30");
System.out.println("13.Calculator \t\t\t155");
System.out.println("14.Glue \t\t\t20");
System.out.println("15.Scissors \t\t\t45");
System.out.println("16.Sticky Notes\t\t\t55");
26 | P a g e
System.out.println("17.Paper \t\t\t265");
System.out.println("18.Notebook \t\t\t120");
System.out.println("19.Envelope \t\t\t02");
System.out.println("20.Files \t\t\t15");
System.out.println();
choice="Y";
while(choice.equalsIgnoreCase("Y"))
si=in.nextInt();
tsi=in.nextInt();
if(si==1)
amt=tsi*34;
if(si==2)
amt=tsi*10;
if(si==3)
amt=tsi*10;
if(si==4)
amt=tsi*147;
if(si==5)
amt=tsi*65;
if(si==6)
amt=tsi*45;
27 | P a g e
if(si==7)
amt=tsi*20;
if(si==8)
amt=tsi*110;
if(si==9)
amt=tsi*35;
if(si==10)
amt=tsi*15;
if(si==11)
amt=tsi*20;
if(si==12)
amt=tsi*30;
if(si==13)
amt=tsi*155;
if(si==14)
amt=tsi*20;
if(si==15)
amt=tsi*45;
if(si==16)
amt=tsi*55;
if(si==17)
amt=tsi*65;
if(si==18)
amt=tsi*20;
28 | P a g e
if(si==19)
amt=tsi*2;
if(si==20)
amt=tsi*15;
tamt7=tamt7+amt;
choice=in.next();
break;
default:
choice1=in.next();
if(c1>0){
System.out.println("**********Food Items**************");
if(c2>0){
System.out.println("**********Dairy Products**********");
if(c3>0){
29 | P a g e
System.out.println("**********Bakery Items************");
if(c4>0){
System.out.println("**********Household Items*********");
if(c5>0){
System.out.println("**********Dry Fruits**************");
if(c6>0){
System.out.println("**********Soft Drinks*************");
if(c7>0){
System.out.println("**********Groceries***************");
if(c8>0){
System.out.println("**********Stationery**************");
tot=tamt+tamt1+tamt2+tamt3+tamt4+tamt5+tamt6+tamt7;
30 | P a g e
gst=tot*(5.0/100.0);
System.out.println("\n\n\n");
System.out.println("GST =Rs."+gst);
gtotal=tot+gst;
System.out.println("Visit Again!!!");
31 | P a g e
Output:-
32 | P a g e
33 | P a g e
int c1=0,c2=0,c3=0,c4=0,c5=0,c6=0,c7=0,c8=0;
double gst=0,tot,gtotal;
34 | P a g e
VARIABLE DESCRIPTION TABLE
36 | P a g e
Conclusion
After doing this project, I became very interested in this
subject and might look towards a future in this field. I
thought of all the different things I could create with
computer programming and the possibilities are
limitless.
THANK YOU!!
37 | P a g e
BIBLIOGRAPHY
I Prajwal Gowda. G of Grade 10, have done this project
with the help of my parents,subject teacher and friends.
I used:-
BlueJ Application.
Internet Explorer.
Textbook of APC Computer Application.
For finalizing this project.
Thank you……! .
38 | P a g e