第一篇:学生成绩管理系统 java源代码
package com.student.enty;
//姓名学号语文数学英语public class Student {
private String name;
private int num;
private double chi;
private double mat;
private double eng;//声明成员变量 public String getName(){
return name;
}
public void setName(String name){this.name = name;
}
public int getNum(){
return num;
}
public void setNum(int num){this.num = num;
}
public double getChi(){
return chi;
}
public void setChi(double chi){this.chi = chi;
}
public double getMat(){
return mat;
}
public void setMat(double mat){this.mat = mat;
}
public double getEng(){
return eng;
}
public void setEng(double eng){this.eng = eng;
}
}
第二篇:java书店管理系统源代码
Java 源代码
public class loaduser { public String user;public String password;boolean b1;loaduser(String s1,String s2){
user=s1;
password=s2;} void load(){
System.out.println(“ 书店管理销售系统”);
System.out.println(“**************************************”);System.out.println(“
1、登录系统”);System.out.println(“
2、退出系统”);
System.out.println(“**************************************”);System.out.println(“请选择:”);
int m;Scanner s=new Scanner(System.in);m=s.nextInt();
if(m==1){
for(int i=0;i<3;i++){
System.out.println(“请输入账户名和密码”);
String s3,s4;
Scanner ss=new Scanner(System.in);
s3=s.next();
s4=s.next();
if(user.equals(s3)&&password.equals(s4))b1=true;
else b1=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);}
package manger;import java.util.ArrayList;import java.util.Scanner;import manger.vip;import System.menu;public class vipmanger { static ArrayList
vipgroup.add(new vip(“001”,“王芳”,100));
vipgroup.add(new vip(“002”,“李娜”,60));
vipgroup.add(new vip(“003”,“杨丽”,50));
vipgroup.add(new vip(“004”,“孙洁”,150));
vipgroup.add(new vip(“005”,“肖青”,300));} static void addd(){ System.out.println(“请一次输入编号,姓名,积分”);
String S1,S2;
int A;
Scanner s=new Scanner(System.in);
S1=s.next();
S2=s.next();
A=s.nextInt();
vip v1=new vip(S1,S2,A);vipgroup.add(v1);}
static void delete(){ System.out.println(“请输入要求删除的会员编号:”);String s;Scanner me=new Scanner(System.in);s=me.next();
boolean b1=true;
for(int i=0;i if(s.equals(vipgroup.get(i).ID)){vipgroup.remove(i);b1=false;} if(b1)System.out.println(“查无此会员!”);} static void correct(){ System.out.println(“请输入要修改信息的会员编号:”);String sss;Scanner s=new Scanner(System.in);sss=s.next(); boolean b1=true; for(int i=0;i if(sss.equals(vipgroup.get(i).ID)){ b1=false; System.out.println(“请输入新的姓名和积分:”); String ss1;Scanner s7=new Scanner(System.in);ss1=s7.next();vipgroup.get(i).name=ss1;int b; Scanner s8=new Scanner(System.in); b=s8.nextInt(); vipgroup.get(i).score=b;} if(b1==true)System.out.println(“查无此会员!”);} static void select(){ System.out.println(“请输入要查询的会员编号:”);String s;Scanner me=new Scanner(System.in);s=me.next(); boolean b1=true; for(int i=0;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(“查无此会员!”);} static void show(){ for(int i=0;i System.out.println(vipgroup.get(i).ID+“ ”+vipgroup.get(i).name+“ ”+vipgroup.get(i).score);} public static void exchange(String s1,int a,int b){ boolean b1=true; for(int i=0;i if(s1.equals(vipgroup.get(i).ID)) {if(vipgroup.get(i).score<(a*b))System.out.println(“积分不足,不能兑换!”); else vipgroup.get(i).score-=a*b; b1=false; } if(b1==true)System.out.println(“查无此会员,不能兑换!”);} public static void shop(String s1,int a,int b){ boolean b1=true; for(int i=0;i if(b1==true)System.out.println(“查无此会员,不能购买!”);} public static boolean start(){ menu m=new menu();m.vip(); int x;Scanner me= new Scanner(System.in);x=me.nextInt(); switch(x){ case 1:show();break; case 2:delete();break; case 3:addd();break; case 4:correct();break; case 5:select();break; case 6:return false;} return true;} } public class book { public String number; public String name; public int price; public int jf;book(String s1,String s2,int a,int b){ number=s1; name=s2; price=a; jf=b;} } package manger;import java.util.ArrayList;import java.util.Scanner;import System.menu;public class bookmanger { static ArrayList for(i=0;i return a;} public static String name(String s1){ String a = “无此书”;for(int i=0;i return a;} public static boolean start(){ menu m=new menu();m.bookmanger();int x;Scanner me= new Scanner(System.in);x=me.nextInt();switch(x){ case 1:show();break;case 2:delete();break;case 3:addd();break;case 4:return false;} return true;} } public class gift { public String number;public String caption;public int costjf;gift(String s1,String s2,int a){ number=s1;caption=s2;costjf=a;} } package manger;import java.util.ArrayList;import java.util.Scanner;import manger.vipmanger;import manger.vip;import System.menu;import manger.gift;public class giftmanger { static ArrayList giftgroup.add(new gift(“001”,“鼠标垫”,100)); giftgroup.add(new gift(“002”,“书夹子”,50)); giftgroup.add(new gift(“003”,“中性笔”,30));} static void show(){ for(int i=0;i System.out.println(“请输入要删除的礼品编号:”); String s; Scanner ss=new Scanner(System.in); s=ss.next(); boolean b1=true; for(int i=0;i if(s.equals(giftgroup.get(i).number)) {giftgroup.remove(i); b1=false; } if(b1)System.out.println(“查无此礼品!”);} static void addd(){ System.out.println(“请输入要添加的礼品编号,名称,所需积分:”); String s1,s2; int a; Scanner me=new Scanner(System.in); s1=me.next(); s2=me.next(); a=me.nextInt(); gift g1=new gift(s1,s2,a); giftgroup.add(g1);} static void exchange(){ String s1,s2,c=“无此礼品”; int a,b=0; giftmanger.show(); Scanner me=new Scanner(System.in); System.out.println(“请输入您的会员编号:”); s1=me.next(); System.out.println(“请输入您要兑换的礼品编号:”); s2=me.next(); System.out.println(“请输入您要兑换的礼品数量:”); a=me.nextInt(); boolean b1=true; for(int i=0;i {b=giftgroup.get(i).costjf; c=giftgroup.get(i).caption; b1=false; } if(b1==true)System.out.println(“查无此礼品!”); else vipmanger.exchange(s1, a, b); System.out.println(“兑换结果:”); System.out.println(“礼品名称”+“ ”+“礼品积分”+“ ”+“礼品数量”+“ ”+“消耗积分”); System.out.println(c+“ ”+b+“ ”+a+“ ”+(a*b));} public static boolean start(){ menu m=new menu(); m.gift(); int x; Scanner me= new Scanner(System.in); x=me.nextInt(); switch(x){ case 1:show();break; case 2:delete();break; case 3:addd();break; case 4:exchange();break; case 5:return false; } return true;} } public class shoping { static void shop(){ bookmanger.show();String s1,s2,s3; int a,b=0;Scanner me=new Scanner(System.in);System.out.println(“请输入您的会员编号:”);s1=me.next();System.out.println(“请输入书籍编号:”);s2=me.next();System.out.println(“请输入购买数量:”);a=me.nextInt();b=bookmanger.price(s2);s3=bookmanger.name(s2);System.out.println(“书名”+“ ”+“单价”+“ ”+“数量”+“ ”+“总价”);System.out.println(s3+“ ”+b+“ ”+a+“ ”+(a*b));vipmanger.shop(s1, a, b);} public static boolean start(){ menu m=new menu(); m.shopping(); int x; Scanner me= new Scanner(System.in); x=me.nextInt(); switch(x){ case 1:shop();break; case 2:return false; } return true;} } public class menu { void mainmenu(){ System.out.println(“ 书店管理系统”); System.out.println(“****************************”); System.out.println(“书店管理系统”); System.out.println(“ 1、会员管理”); System.out.println(“ 2、书籍管理”); System.out.println(“ 3、购物结算”); System.out.println(“ 4、积分兑换礼品”); System.out.println(“ 5、注销”); System.out.println(“****************************”); } public void vip(){ System.out.println(“书店管理系统>会员管理:”); System.out.println(“****************************”); System.out.println(“ 1、显示会员信息”); System.out.println(“ 2、删除会员”); System.out.println(“ 3、添加会员”); System.out.println(“ 4、修改会员信息”); System.out.println(“ 5、查询会员”); System.out.println(“ 6、返回上层菜单”); System.out.println(“****************************”); } public void bookmanger(){ System.out.println(“书店管理系统>书籍管理:”); System.out.println(“****************************”); System.out.println(“ 1、书籍信息查询”); System.out.println(“ 2、删除书籍”); System.out.println(“ 3、添加书籍”); System.out.println(“ 4、返回上层菜单”); System.out.println(“****************************”); } public void shopping(){ System.out.println(“书店管理系统>购物结算:”); System.out.println(“****************************”); System.out.println(“ 1、购物”); System.out.println(“ 2、返回上层菜单”); System.out.println(“****************************”); } public void gift(){ System.out.println(“书店管理系统>礼品兑换:”); System.out.println(“****************************”); System.out.println(“ 1、礼品信息”); System.out.println(“ 2、删除礼品”); System.out.println(“ 3、添加礼品”); System.out.println(“ 4、兑换礼品”); System.out.println(“ 5、返回上层菜单”); System.out.println(“****************************”); } public static void main(String[] args){ loaduser u1=new loaduser(“manger”,“416426”); u1.load();menu m1=new menu(); vipmanger vip=new vipmanger();bookmanger book=new bookmanger();giftmanger gi=new giftmanger(); while(true){ m1.mainmenu(); int x; Scanner me=new Scanner(System.in); x=me.nextInt(); switch(x){ case 1:while(vipmanger.start());break; case 2:while(bookmanger.start());break; case 3:while(shoping.start());break; case 4:while(giftmanger.start());break; case 5:u1.load(); } } } } package cn.pab.manager; import java.util.List;import java.util.Scanner; import cn.pab.dao.PersonDao;import cn.pab.dao.TypeDao;import cn.pab.dao.UserDao;import cn.pab.dao.impl.PersonDaoImpl;import cn.pab.dao.impl.TypeDaoImpl;import cn.pab.dao.impl.UserDaoImpl;import cn.pab.entity.Person;import cn.pab.entity.Type;/** * 业务类 */ public class PABmanager { /** * 系统启动 */ public static void main(String[] args){ Scanner input = new Scanner(System.in); UserDao userDao = new UserDaoImpl(); TypeDao typeDao = new TypeDaoImpl(); PersonDao personDao = new PersonDaoImpl(); System.out.println(“***********欢迎使用个人通讯录管理系统**********”); System.out.print(“n请选择操作(1.系统登录 2.密码修改 3.取消):”); String in = input.next(); if(“1”.equals(in)){ boolean islogin = userDao.login(); if(islogin){ System.out.println(“***********成功登录个人通讯录管理系统**********”); //System.out.print(“n请选择操作(1.类别管理 2.联系人管理 3.退出系统):”); }else{ System.out.println(“用户名或密码错误,不能登录!”); System.exit(-1); } }else if(“2”.equals(in)){ boolean modiFlag = userDao.modify(); if(modiFlag){ System.out.println(“密码修改成功!”);}else{ System.out.println(“密码修改失败!”);} System.exit(-1);}else{ System.out.println(“您已经退出系统!”);System.exit(-1);} while(true){ System.out.print(“n请选择操作(1.类别管理 2.联系人管理 3.退出系统):”);String in2 = input.next();if(“1”.equals(in2)){ while(true){ System.out.print(“n请继续选择操作(1.新建类别 2.查询类别 3.删除类别 4.返回):”); String num = input.next(); if(“1”.equals(num)){ System.out.print(“请输入类别的名称:”);String lbmc = input.next(); System.out.print(“请输入类别的说明:”);String lbsm = input.next();System.out.print(“请输入类别的备注:”);String lbbz = input.next(); Type type = new Type(lbmc,lbsm,lbbz); typeDao.createType(type);}else if(“2”.equals(num)){ List System.out.println(“tt类别信息列表”); System.out.println(“类别名称tt类别说明tt类别备注”); for(int i = 0;i < types.size();i++){ Type type =types.get(i); System.out.print(type.getLbmc()+“t”); System.out.print(type.getLbsm()+ “tt”); System.out.println(type.getLbbz()); } }else if(“3”.equals(num)){ System.out.print(“请输入类别的名称:”); String lbmc = input.next(); Type type = new Type(lbmc,null,null); typeDao.deleteType(type);}else if(“4”.equals(num)){ break;}else{ System.out.println(“您输入不合法,请重新选择!”); } } }else if(“2”.equals(in2)){ while(true){ System.out.print(“n请继续选择操作(1.新建联系人 2.查询联系人 3.更新联系人 4.删除联系人 5.返回):”); String num = input.next(); if(“1”.equals(num)){ System.out.print(“请输入联系人的类别名称:”);String lb = input.next(); System.out.print(“请输入联系人的姓名:”);String xm = input.next(); System.out.print(“请输入联系人的电话:”);String dh = input.next(); System.out.print(“请输入联系人的手机号:”);String sjh = input.next(); System.out.print(“请输入联系人的工作单位:”);String gzdw = input.next(); System.out.print(“请输入联系人的住址:”); String zz = input.next(); System.out.print(“请输入联系人的邮政编码:”); String yzbm = input.next(); Person person = new Person(lb,xm,dh,sjh,gzdw,zz,yzbm); personDao.createPerson(person); }else if(“2”.equals(num)){ System.out.print(“请输入联系人的姓名:”); String name = input.next(); Person p = personDao.queryPerson(name); System.out.println(“tt查询到的联系人信息”); System.out.println(“类别t姓名t电话tt手机号tt工作单位t住址t邮政编码”); System.out.print(p.getLb()+ “t”); System.out.print(p.getXm()+ “t”); System.out.print(p.getDh()+ “t”); System.out.print(p.getSjh()+ “t”); System.out.print(p.getGzdw()+ “t”); System.out.print(p.getZz()+ “t”); System.out.println(p.getYzbm()); } } } }else if(“3”.equals(num)){ System.out.print(“请输入需更新的联系人编号:”); int id = input.nextInt(); System.out.print(“请输入需更新的联系人信息选项:”); String item = input.next(); System.out.print(“请输入联系人信息选项的值:”); String val = input.next(); personDao.updatePerson(id,item, val); }else if(“4”.equals(num)){ System.out.print(“请输入要删除联系人的姓名:”); String name = input.next(); personDao.deletePerson(name); }else if(“5”.equals(num)){ break; }else{ System.out.println(“您输入不合法,请重新选择!”); } } }else if(“3”.equals(in2)){ System.out.println(“您已经退出系统!”);System.exit(-1);}else{ System.out.println(“您输入不合法,请重新选择!”);} VB2005+SQL2005学生成绩管理系统(论文+源码) 出售 一个功能完善的学生成绩管理系统,这个系统是用VB和SLQ server2005制作的,内容主要涉及到学生的基本信息的管理、学生成绩的管理和用户权限的管理,严密的思路和友好的界面给管理者带了极大地方便。登陆这个界面可方便快捷的管理学生信息。 有意者和本人直接联系,(只限乌市可看观看系统操作与功能实现,当面演示,包教包会。现金支付,一手交钱以后交货!)电话:***唐先生(乌市) 非诚勿扰! 以下是界面的截图, //*学生成绩管理系统*// #include #define N 3 struct student { int no; char name[20]; float english; float computer; float math; float average; }; void getclass(struct student *class_gishui) { int i; printf(“请输入%d个学生的学号 姓名 英语 计算机 数学n”,N); for(i=0;i { printf(“第%d个学生”,i+1); scanf(“%d%s%f%f%f”,&class_gishui[i].no,&class_gishui[i].name,&class_gishui[i].english,&class_gishui[i].computer,&class_gishui[i].math); } } void print_class(struct student *class_gishui) { int i; for(i=0;i { class_gishui[i].average=(class_gishui[i].english+class_gishui[i].computer+class_gishui[i].math)/3; } printf(“学生信息表如下:n”); printf(“学号tt姓名tt英语tt计算机tt数学tt平均成绩n”); for(i=0;i printf(“%dtt%stt%ft%ft%ft%fn”,class_gishui[i].no,class_gishui[i].name,class_gishui[i].english,class_gishui[i].computer,class_gishui[i].math,class_gishui[i].average); } void paixu(struct student *class_gishui) { int i,j,flag; struct student t[1]; for(i=0;(i { flag=0; for(j=0;j if(class_gishui[j].average>class_gishui[j+1].average) { t[0]=class_gishui[j]; class_gishui[j]=class_gishui[j+1]; class_gishui[j+1]=t[0]; flag=1; } if(flag==0) break; } printf(“排序后学生成绩为:n”); printf(“学号t姓名t英语tt计算机tt数学tt平均成绩n”); for(i=0;i printf(“%dt%st%ft%ft%ft%fn”,class_gishui[i].no,class_gishui[i].name,class_gishui[i].english,class_gishui[i].computer,class_gishui[i].math,class_gishui[i].average); } void main() { struct student class_gishui[N]; getclass(class_gishui); print_class(class_gishui); paixu(class_gishui); }第三篇:个人通讯录管理系统,java源代码
第四篇:出售VB+SQL学生成绩管理系统(论文+源代码)
第五篇:学生成绩管理系统