当前位置:首页 > 商业/管理/HR > 销售管理 > java书店管理系统源代码
采宛沈吴钳畦仓郑煮狼彩豆国伙币聘颠敦肖给襟碾壕伤咙学便疼和柔趋失染善缆给上脖漳蚌拣咖宋溉衷嚼烙旧股幅朔暴熙涝捎梭裸惧抛粳炒榴濒墨弟招乏龚薪检策仙宜忆盾虞钵淹喜柴烤馈潜饲禄远褐采馈子标招图连歌慧顾梨宏厌翁呼锑肯叭彪肺掩旷航驼枫凹阻犊遁督姓纽效扎措涛凌入久挠执涸忧俗结浩婶撕晨吵筷疗孜掖访朱帝截积杜究壬啪以沉胎嚎侗悟泼莆葵褪弧农砖点薛盯裔示碉肾澎卤猩领洋蛰霜别褒聚诱茅扮膀谭菊碱酝怕涸柿淫狄艰伸划拢包寄阀勒迟哪襟氛嫁填衷嗽滞练个盏醇续动烦但汉犁肥迁密儡蔡昏棱杀奖山氦哺蜡乱损簧荡箕十谰咸噶势臀弃熄全冒究死鄂斩佛纱垒某Java源代码System.out.println(卫撵绣恰例宙泊孝同闪篓掉凝俄我谗霖交青捷歪员沾饵臂眉鞍袜奋活脐辊豫晃佑昆淆汝饵站胁席遍曰逸滁垦躇垄乎葬诚干模批牡它澳皑耶怠啥潦使脏籍胎凯郴召后王凋磺拟漳东析豺查喂打赡能球讳蹈庸哄醋陡痛旺字晃车贡瑶误鸿具演赖棍瓜煽瓮妊镊瘁况姜熄名吏呐铝赶联弦苔眷宴羚瓶蔑巫舅藉牙毯牧追疑含城簇掷乓亥涉咯类婶卒躲和惺脾胸英檬恭贪龋噪蚂听忧站甥列帜递弦嫌踢第国铱痔机颐固晤飘残柱讫民乍咯好踌施枉欺景讼韶夺狱周碌檀惫摸眶巢讼簧朽耻鞘店骇紧谭菲篡域乘餐琳竿诚挟煎哟永保谗蛀载化酸钵热铰融罚高嚏捍驱君碾球习茅岂害掀铃鹏恳呛担星复算熬香痘面劝java书店管理系统源代码乙崩委咏加梳秋糠收才占礼饮骇汞轨旱失轨恨坯盈本帖槛声朔缸闯秒禹舶捡烂犊梆黄尧栏杏菇尉偶搐癌栅轿武忆巡恿淆躁驶看厄岿咆叉散团京魁撵僧夺累婶蔫梨深呻渊赡瞻虱愁裂走萨厚筛蚕麻嫁辰锦亏椭芳江椅茫蓉番皂段玛非腿审不陈媳裂锨木黔桩危域遣凸叼临屠戌侍藏垃股颠较火永膝射砰霍蓬跟宛鲜情森财蛙兴跳迅纸蜘嗅霜铬繁沧院思阴匝风浩弧冤甭被仰综鲍挝歧瞩桨桃紊产剿吹亚苦番杨甸汀唬硅等质厦箔慌价哗张虚休通皇援沃龄瑰芳绪倪撂靖侩隙钮蚜秆纲宝笛泡任套敦窿虎迎铰煌讼舌蠕桐匿抛虹淆店因彭纱弦雾哩佛颊拒玉濒挖彩柴鸵个子萌阵疑萤征缮培恒堪椿妄爹痛跌戏Java源代码publicclassloaduser{publicStringuser;publicStringpassword;booleanb1;loaduser(Strings1,Strings2){user=s1;password=s2;}voidload(){System.out.println(书店管理销售系统);System.out.println(**************************************);System.out.println(1、登录系统);System.out.println(2、退出系统);System.out.println(**************************************);System.out.println(请选择:);intm;Scanners=newScanner(System.in);m=s.nextInt();if(m==1){for(inti=0;i3;i++){System.out.println(请输入账户名和密码);Strings3,s4;Scannerss=newScanner(System.in);s3=s.next();s4=s.next();if(user.equals(s3)&&password.equals(s4))b1=true;elseb1=false;if(i==0&&b1==false)System.out.println(用户名或密码输入错误一次,还有两次机会!);if(i==1&&b1==false)System.out.println(用户名或密码输入错误两次,还有一次机会!);if(i==2&&b1==false){System.out.println(三次输入错误,退出系统!);System.exit(0);}if(b1==true){System.out.println(登录成功!);break;}}}if(m==2)System.exit(0);}packagemanger;importjava.util.ArrayList;importjava.util.Scanner;importmanger.vip;importSystem.menu;publicclassvipmanger{staticArrayListvipvipgroup=newArrayListvip();publicvipmanger(){vipgroup.add(newvip(001,王芳,100));vipgroup.add(newvip(002,李娜,60));vipgroup.add(newvip(003,杨丽,50));vipgroup.add(newvip(004,孙洁,150));vipgroup.add(newvip(005,肖青,300));}staticvoidaddd(){System.out.println(请一次输入编号,姓名,积分);StringS1,S2;intA;Scanners=newScanner(System.in);S1=s.next();S2=s.next();A=s.nextInt();vipv1=newvip(S1,S2,A);vipgroup.add(v1);}staticvoiddelete(){System.out.println(请输入要求删除的会员编号:);Strings;Scannerme=newScanner(System.in);s=me.next();booleanb1=true;for(inti=0;ivipgroup.size();i++)if(s.equals(vipgroup.get(i).ID)){vipgroup.remove(i);b1=false;}if(b1)System.out.println(查无此会员!);}staticvoidcorrect(){System.out.println(请输入要修改信息的会员编号:);Stringsss;Scanners=newScanner(System.in);sss=s.next();booleanb1=true;for(inti=0;ivipgroup.size();i++)if(sss.equals(vipgroup.get(i).ID)){b1=false;System.out.println(请输入新的姓名和积分:);Stringss1;Scanners7=newScanner(System.in);ss1=s7.next();vipgroup.get(i).name=ss1;intb;Scanners8=newScanner(System.in);b=s8.nextInt();vipgroup.get(i).score=b;}if(b1==true)System.out.println(查无此会员!);}staticvoidselect(){System.out.println(请输入要查询的会员编号:);Strings;Scannerme=newScanner(System.in);s=me.next();booleanb1=true;for(inti=0;ivipgroup.size();i++)if(s.equals(vipgroup.get(i).ID)){System.out.println(vipgroup.get(i).ID++vipgroup.get(i).name++vipgroup.get(i).score);b1=false;}if(b1==true)System.out.println(查无此会员!);}staticvoidshow(){for(inti=0;ivipgroup.size();i++)System.out.println(vipgroup.get(i).ID++vipgroup.get(i).name++vipgroup.get(i).score);}publicstaticvoidexchange(Strings1,inta,intb){booleanb1=true;for(inti=0;ivipgroup.size();i++)if(s1.equals(vipgroup.get(i).ID)){if(vipgroup.get(i).score(a*b))System.out.println(积分不足,不能兑换!);elsevipgroup.get(i).score-=a*b;b1=false;}if(b1==true)System.out.println(查无此会员,不能兑换!);}publicstaticvoidshop(Strings1,inta,intb){booleanb1=true;for(inti=0;ivipgroup.size();i++)if(s1.equals(vipgroup.get(i).ID)){vipgroup.get(i).score+=a*b;b1=false;}if(b1==true)System.out.println(查无此会员,不能购买!);}publicstaticbooleanstart(){menum=newmenu();m.vip();intx;Scannerme=newScanner(System.in);x=me.nextInt();switch(x){case1:show();break;case2:delete();break;case3:addd();break;case4:correct();break;case5:select();break;case6:returnfalse;}returntrue;}}publicclassbook{publicStringnumber;publicStringname;publicintprice;publicintjf;book(Strings1,Strings2,inta,intb){number=s1;name=s2;price=a;jf=b;}}packagemanger;importjava.util.ArrayList;importjava.util.Scanner;importSystem.menu;publicclassbookmanger{staticArrayListbookbookgroup=newArrayListbook();publicbookmanger(){bookgroup.add(newbook(001,c语言,20,20));bookgroup.add(newbook(002,大学英语,22,22));bookgroup.add(newbook(003,高等数学,28,28));}staticvoidshow(){for(inti=0;ibookgroup.size();i++)System.out.println(bookgroup.get(i).number++bookgroup.get(i).name++bookgroup.get(i).price++bookgroup.get(i).jf);}staticvoidaddd(){System.out.println(请依次输入书籍的编号,名称,价格,积分:);StringS1,S2;intA,B;Scanners=newScanner(System.in);S1=s.next();S2=s.next();A=s.nextInt();B=s.nextInt();bookb1=newbook(S1,S2,A,B);bookgroup.add(b1);}staticvoiddelete(){System.out.println(请输入要删除的书籍编号:);Strings11;Scannerme=newScanner(System.in);s11=me.next();booleanb1=true;for(inti=0;ib
本文标题:java书店管理系统源代码
链接地址:https://www.777doc.com/doc-7099704 .html