-
设计一个学生类,学生类中应包括学号,姓名,语文成绩,数学成绩,英语成绩,同时还要提供两个方法,一个方法计算总成绩,一个方法计算平均成绩。
现在有一个文本文...
设计一个学生类,学生类中应包括学号,姓名,语文成绩,数学成绩,英语成绩,同时还要提供两个方法,一个方法计算总成绩,一个方法计算平均成绩。
现在有一个文本文件,该文件有若干行,每一行存放着某个学生的数据,包括:学号,姓名,语文成绩,数学成绩,英语成绩。数据与数据之间用空格隔开,例如:
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
-
Ray dug java version of the game program to imitate Windows easy
java 版的挖雷程序 模仿Windows的游戏程序 简单易用-Ray dug java version of the game program to imitate Windows easy-to-use procedures
- 2022-08-16 21:04:30下载
- 积分:1
-
用JAVA编写的记事本,简洁实用。
用JAVA编写的记事本,简洁实用。-prepared using JAVA notebook, simple and practical.
- 2022-03-10 05:16:41下载
- 积分:1
-
用java 做的扫雷游戏,用了递归算法,原来递归也不难的
用java 做的扫雷游戏,用了递归算法,原来递归也不难的-do with the mine java games, with a recursive algorithm, the original will not be difficult for the recursive
- 2022-03-18 21:35:16下载
- 积分:1
-
java入门的几个代码,很实用,初学者不可错过
java入门的几个代码,很实用,初学者不可错过-Some entry-java code, it is useful, for beginners not to be missed
- 2022-02-11 19:30:46下载
- 积分:1
-
文件过滤器,可以对某一文件夹下所有文本文件进行过滤,搜索含有指定字符串的文件...
文件过滤器,可以对某一文件夹下所有文本文件进行过滤,搜索含有指定字符串的文件-Paper filter, to a specific folder to filter all text files, search the documents containing the specified string
- 2022-01-27 23:00:53下载
- 积分:1
-
c++原代码编译程序
c++原代码编译程序-c-source compiler
- 2022-01-28 18:25:48下载
- 积分:1
-
MVC模式sdfsd SDF SDF SDSD SD F
MVC Patterns sdfsd sdf sdf sdsd sd f -MVC Patterns sdfsd sdf sdf sdf sdsd sdf sdsd sdf
- 2022-11-09 18:00:04下载
- 积分:1
-
jgen generator flash
jgen generator flash
- 2022-06-19 20:26:09下载
- 积分:1
-
图书馆管理系统,用jsp写的,内附使用说明,希望对大家能有所帮助...
图书馆管理系统,用jsp写的,内附使用说明,希望对大家能有所帮助-the manage system of library
- 2022-11-28 17:10:03下载
- 积分:1