-
设计一个学生类,学生类中应包括学号,姓名,语文成绩,数学成绩,英语成绩,同时还要提供两个方法,一个方法计算总成绩,一个方法计算平均成绩。
现在有一个文本文...
设计一个学生类,学生类中应包括学号,姓名,语文成绩,数学成绩,英语成绩,同时还要提供两个方法,一个方法计算总成绩,一个方法计算平均成绩。
现在有一个文本文件,该文件有若干行,每一行存放着某个学生的数据,包括:学号,姓名,语文成绩,数学成绩,英语成绩。数据与数据之间用空格隔开,例如:
001 张三 85 90 98
设计一个java应用程序,从文本文件中读取数据,构造这些学生对象,然后按找总成绩从高到低的顺序输出到另外一个文本文件中,每个学生的数据占一行,数据与数据之间用空格隔开,输出顺序为:
学号,姓名,语文成绩,数学成绩,英语成绩,总成绩,平均成绩
例如
001 张三 85 90 98 273 91-Design a student class, student class should include Student ID, name, language achievement, mathematics achievement, English achievement, while also providing two methods, a method of calculating the total score, a method of calculating grade point average.
There is now a text file, the file number of lines, each line of data storage with a student, including: Student ID, name, language achievement, mathematics achievement, English achievement. Between the data and the data separated by spaces, for example:
001 Zhang San 859,098
Design a java application that read data from a text file to construct these students object, and then find the total score accordin
- 2022-01-28 15:26:05下载
- 积分:1
-
This is a simple JAVA program, function is a login window, just learning JAVA, a...
这是一个简单的JAVA程序,功能是一个登录窗口,刚学JAVA,见笑。-This is a simple JAVA program, function is a login window, just learning JAVA, a laughing stock.
- 2022-07-25 06:36:59下载
- 积分:1
-
Book Query System (B/S network version)
图书查询系统 (B/S网络版)-Book Query System (B/S network version)
- 2022-03-22 11:46:43下载
- 积分:1
-
窗口上的文本行显示当前文件的路径,文本区用于编辑文件,3个按钮
[打开],[保存…],[另存为…]。
单击[打开]按钮时,弹出打开文件对话框,将选择的文...
窗口上的文本行显示当前文件的路径,文本区用于编辑文件,3个按钮
[打开],[保存…],[另存为…]。
单击[打开]按钮时,弹出打开文件对话框,将选择的文件显示在文本区中。
单击[保存…]按钮时,如果当前文件为空,则弹出保存文件对话框,并按设置的文件名保存文件;如果已有文件,则按设置的文件名保存文件。
单击[另存为…]按钮时,则弹出保存文件对话框,并按设置的文件名保存文件。
程序中以字符文件输出流FileWriter的writer方法写入文本区内容,以字符缓冲输入流BufferedReader的readLine()方法按行读取文本文件。
-window on the text line shows the path the current document, the text area for editing documents, three buttons [open] [preservation] [Save as ...]. Click [Open] button, pop open file dialog box, select the document in the text area. Click [preservation] button, if the current document is empty, save dialog pop up, together with a set of documents were preserved; If the document has been, according to the paper were set up to preserve documents. Click [Save as ...] button, the pop-up dialog box to preserve documents, together with a set of documents were preserved documents. Character procedures to document the output stream FileWriter way into the text writer District, characters in the input stream buffer
- 2023-06-21 14:25:02下载
- 积分:1
-
java俄罗斯方块
JAVA的俄罗斯方块-JAVA Tetris
- 2022-08-13 06:06:45下载
- 积分:1
-
完美数都能实现!显示1到1000的完美数,程序可以判断你输入的是不是!...
完美数都能实现!显示1到1000的完美数,程序可以判断你输入的是不是!-Few can achieve perfect! 1-1000 show the perfect number, the program can determine whether you have entered is not!
- 2023-06-05 11:15:03下载
- 积分:1
-
支持图形化界面GUI工具
有关JAVA 容器 监听类的例子
支持图形化界面GUI工具
有关JAVA 容器 监听类的例子-Supporting a graphical user interface GUI tools to monitor containers JAVA Examples
- 2022-03-22 14:35:19下载
- 积分:1
-
是一个 java 基础学习软件 有设计说明,和源代码,和遍一以后的文件。 开发平台:jdk1.4.1...
是一个 java 基础学习软件 有设计说明,和源代码,和遍一以后的文件。 开发平台:jdk1.4.1 -is a java-based learning software design specifications, and source code, and the times after a document. Development platform : jdk1.4.1
- 2022-02-06 03:16:52下载
- 积分:1
-
用java写的平行投影算法的源代码,比较简单好用
用java写的平行投影算法的源代码,比较简单好用-using java to write parallel projection algorithm source code, relatively simple handy
- 2022-03-04 13:01:47下载
- 积分:1
-
conference java project
conference java project
- 2022-05-18 12:29:23下载
- 积分:1