欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

學(xué)分管理java系統(tǒng)代碼,java教務(wù)系統(tǒng)代碼

求用Java編寫的學(xué)生成績管理系統(tǒng)的完整代碼,要能運(yùn)行的

以下方法實(shí)現(xiàn)了用戶界面登陸

目前創(chuàng)新互聯(lián)已為千余家的企業(yè)提供了網(wǎng)站建設(shè)、域名、網(wǎng)絡(luò)空間、綿陽服務(wù)器托管、企業(yè)網(wǎng)站設(shè)計(jì)、庫倫網(wǎng)站維護(hù)等服務(wù),公司將堅(jiān)持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長,共同發(fā)展。

import java.awt.*;

import java.awt.event.*;

public class DengLuJieMian extends Frame implements ActionListener

{

Label username=new Label("用戶名:");//使用文本創(chuàng)建一個(gè)用戶名標(biāo)簽

TextField t1=new TextField();//創(chuàng)建一個(gè)文本框?qū)ο?/p>

Label password=new Label("密碼:");//創(chuàng)建一個(gè)密碼標(biāo)簽

TextField t2=new TextField();

Button b1=new Button("登陸");//創(chuàng)建登陸按鈕

Button b2=new Button("取消");//創(chuàng)建取消按鈕

public DengLuJieMian()

{

this.setTitle("學(xué)生信息管理系統(tǒng)");//設(shè)置窗口標(biāo)題

this.setLayout(null);//設(shè)置窗口布局管理器

username.setBounds(50,40,60,20);//設(shè)置姓名標(biāo)簽的初始位置

this.add(username);// 將姓名標(biāo)簽組件添加到容器

t1.setBounds(120,40,80,20);// 設(shè)置文本框的初始位置

this.add(t1);// 將文本框組件添加到容器

password.setBounds(50,100,60,20);//密碼標(biāo)簽的初始位置

this.add(password);//將密碼標(biāo)簽組件添加到容器

t2.setBounds(120,100,80,20);//設(shè)置密碼標(biāo)簽的初始位置

this.add(t2);//將密碼標(biāo)簽組件添加到容器

b1.setBounds(50,150,60,20);//設(shè)置登陸按鈕的初始位置

this.add(b1);//將登陸按鈕組件添加到容器

b2.setBounds(120,150,60,20);//設(shè)置取消按鈕的初始位置

this.add(b2);// 將取消按鈕組件添加到容器

b1.addActionListener(this);//給登陸按鈕添加監(jiān)聽器

b2.addActionListener(this);// 給取消按鈕添加監(jiān)聽器

this.setVisible(true);//設(shè)置窗口的可見性

this.setSize(300,200);//設(shè)置窗口的大小

addWindowListener(new WindowAdapter()

{

public void windowClosing(WindowEvent e)

{

System.exit(0);

}

});//通過內(nèi)部類重寫關(guān)閉窗體的方法

}

public void actionPerformed(ActionEvent e)

{

if(e.getSource()==b1)//處理登陸事件

{

String name=t1.getText();

String pass=t2.getText();

if(name!=nullpass.equals("000123"))//判斷語句

{

new StudentJieMian();

}

}

}

public static void main(String args[])//主函數(shù)

{

new DengLuJieMian();

}

}

以下方法實(shí)現(xiàn)了學(xué)生界面設(shè)計(jì)

import java.awt.*;

import java.awt.event.*;

class StudentJieMian extends Frame implements ActionListener

{

MenuBar m=new MenuBar();//創(chuàng)建菜單欄

Menu m1=new Menu("信息");//創(chuàng)建菜單“信息”

MenuItem m11=new MenuItem("插入");//創(chuàng)建“插入”的菜單項(xiàng)

MenuItem m12=new MenuItem("查詢");

Menu m2=new Menu("成績");//創(chuàng)建菜單“成績”

MenuItem m21=new MenuItem("查詢");

public StudentJieMian()

{

this.setTitle("學(xué)生界面");//設(shè)置窗口標(biāo)題

this.setLayout(new CardLayout());//設(shè)置窗口布局管理器

this.setMenuBar(m);//將菜單欄組件添加到容器

m.add(m1);//將信息菜單放入菜單欄

m.add(m2);

m1.add(m11);//將“插入”菜單項(xiàng)添加到“信息”菜單

m1.add(m12); //將“查詢”菜單項(xiàng)添加到“信息”菜單

m2.add(m21); //將“查詢”菜單項(xiàng)添加到“成績”菜單

m11.addActionListener(this); //給“插入”菜單項(xiàng)添加監(jiān)聽器

m12.addActionListener(this); //給“查詢”菜單項(xiàng)添加監(jiān)聽器

m21.addActionListener(this); //給“查詢”菜單項(xiàng)添加監(jiān)聽器

this.setVisible(true); //設(shè)置窗口的可見性

this.setSize(300,200); //設(shè)置窗口的大小

addWindowListener(new WindowAdapter()

{

public void windowClosing(WindowEvent e)

{

System.exit(0);//關(guān)閉窗口

}

});

}

public void actionPerformed(ActionEvent e)

{

if(e.getSource()==m11) //處理“添加信息”事件

{

new AddStudent();

}

if(e.getSource()==m12) //處理“查詢信息”事件

{

new SelectStudent();

}

if(e.getSource()==m21) //處理“查詢成績”事件

{

new ChengJiStudent();

}

}

public static void main(String args[])

{ new StudentJieMian(); //創(chuàng)建一個(gè)對象 }

如何用Java語言編寫學(xué)生成績管理系統(tǒng)

package student;

import java.util.Scanner;

public class teststudent {

public static void main(String args[]){

System.out.println("************************學(xué)生成績管理系統(tǒng)*********************");

System.out.println("請輸入要管理的學(xué)生人數(shù):");

Scanner sc = new Scanner(System.in);

int n = sc.nextInt();

studentMassage stum = new studentMassage(n);

int flag = 1;

while(flag == 1){

System.out.println("1.輸入學(xué)生信息");

System.out.println("2.通過姓名查找學(xué)生信息");

System.out.println("3.顯示全部學(xué)生信息");

System.out.println("4.退出系統(tǒng)");

int op = sc.nextInt();

switch(op){

case 1:stum.addStudent(n);

new Scanner(System.in).nextLine();

break;

case 2:

System.out.println("輸入學(xué)生姓名:");

String name = sc.next();

stum.FindStudent(name);

new Scanner(System.in).nextLine();

break;

case 3:

stum.showallStudent();

new Scanner(System.in).nextLine();

break;

case 4:

flag = 0;

System.out.println("已退出系統(tǒng)!");

break;

default:

System.out.println("輸入有誤!");

new Scanner(System.in).nextLine();

}

}

}

}

class Date{

int year;

int month;

int day;

/*public Date(int year,int month,int day){

this.year = year;

this.month = month;

this.day = day;

}

public Date(){}*/

public String showDate(){

return year + "/"+ month+"/"+day;

}

}

class student{

int id;

String name;

Date date;

float score;

public student(){

id = 0;

name = null;

date = null;

score = 0f;

}

public void showStudent(){

System.out.println( id + " " + name + " "+ " " + date.showDate()+" "+score);

}

}

class studentMassage{

private student[] stu;

private int flag;

public studentMassage(int n){

flag = 0;

if(stu == null){

stu = new student[n];

for(int i =0;in;++i){

stu[i] = new student();

}

}

}

public void addStudent(int n){

flag = 1;

Scanner sc = new Scanner(System.in);

System.out.println("請輸入"+n+"個(gè)學(xué)生信息");

for(int i = 0 ;istu.length;++i){

stu[i].date = new Date();

System.out.println("請輸入第"+(i+1)+"個(gè)學(xué)生學(xué)號:");

stu[i].id = sc.nextInt();

System.out.println("請輸入第"+(i+1)+"個(gè)學(xué)生姓名:");

stu[i].name = sc.next();

System.out.println("請輸入第"+(i+1)+"個(gè)學(xué)生出生年份:");

stu[i].date.year = sc.nextInt();

System.out.println("請輸入第"+(i+1)+"個(gè)學(xué)生出生月份:");

stu[i].date.month = sc.nextInt();

System.out.println("請輸入第"+(i+1)+"個(gè)學(xué)生出生日期:");

stu[i].date.day = sc.nextInt();

//stu[i].date = new Date(year,month,day);

System.out.println("請輸入第"+(i+1)+"個(gè)學(xué)生分?jǐn)?shù):");

stu[i].score = sc.nextFloat();

}

}

public void FindStudent(String sname){

student find = null;

if(flag != 0){

for(int i = 0;istu.length;++i){

if(sname.equals(stu[i].name))

find = stu[i];

}

if(find == null)

System.out.println("查無此人!");

else

find.showStudent();

}else

System.out.println("沒有輸入學(xué)生信息!");

}

public void showallStudent(){

System.out.println("所有學(xué)生的信息如下:");

System.out.println("學(xué)號 姓名 生日 分?jǐn)?shù)");

for(int i = 0;istu.length;++i){

stu[i].showStudent();

}

}

}

如何用java來編一個(gè)學(xué)生成績管理系統(tǒng)的程序?

同意上面的說法..

你需要一個(gè)IO包.實(shí)例化輸入輸出流.對文件進(jìn)行輸入輸出的操作.

你先把這些類文件都寫好.這些類文件都很簡單.寫一個(gè)實(shí)例,省去一些代碼..

public class Person

{

public string studentName;

public string studentAge;

//省略其它成員變量

public void setStudentName(string strName)

{

this.studentName=strName;

}

public string getStudentName()

{

return this.studentName;

}

//其它成員函數(shù)類似

}

上面一個(gè)類的實(shí)例..其他類差不多,然后寫一個(gè)類.實(shí)例化這些類,用文件IO輸入輸出流,對文件進(jìn)行操作.這里代碼你自己去寫,不會網(wǎng)上多的是.

文章名稱:學(xué)分管理java系統(tǒng)代碼,java教務(wù)系統(tǒng)代碼
標(biāo)題來源:http://aaarwkj.com/article28/dsshccp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站建設(shè)、搜索引擎優(yōu)化、微信公眾號、響應(yīng)式網(wǎng)站、網(wǎng)站導(dǎo)航網(wǎng)站制作

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

小程序開發(fā)
日韩女同一区二区三区在线观看| 欧美偷拍一区二区三区| 九九热视频这里是精品| 给我搜亚洲免费播放黄色大片| 亚洲精品国产自在现线| 亚洲乱色一区二区三区丝袜| 国产白丝精品爽爽久久| 亚洲精品在线免费av| 日韩精品在线观看你懂的| 成人18禁视频免费看| 同为人妻一区二区三区| 高潮少妇水多毛多av| 国产三级国产剧情国产av| 亚洲热久久国产经典视频| 在线观看日韩精品电影| 日本a级片免费在线观看| 国产亚洲精品麻豆一区二区| 天天操夜夜操白天操晚上操| 国产91九色在线播放| 一区二区在线观看激情| 亚洲欧美日韩精品麻豆| 青青草原精品视频在线| 97在线视频这里只有精品| 欧美日韩亚洲精品瑜伽裤| 91九色国产在线视频| 国产一区二区欧美日本| 夜夜操狠狠操天天摸| 亚洲av久久一区二区| av毛片在线播放免费| 国产怡红院在线视频观看| 森泽佳奈在线视频观看| 亚洲 精品一区二区| 亚洲麻豆精品午夜免费| 久久精品中文字幕有码日本道| 女同亚洲一区二区三区| 公交车上没穿内裤被插高潮不断| 欧美日韩国产天堂一区| 久久国产精品一区av瑜伽| 国产91日韩欧美在线观看| 国产一区二区三区在线观看俏佳人| 亚洲综合国产一区二区|