-
设计一个学生类,学生类中应包括学号,姓名,语文成绩,数学成绩,英语成绩,同时还要提供两个方法,一个方法计算总成绩,一个方法计算平均成绩。
现在有一个文本文...
设计一个学生类,学生类中应包括学号,姓名,语文成绩,数学成绩,英语成绩,同时还要提供两个方法,一个方法计算总成绩,一个方法计算平均成绩。
现在有一个文本文件,该文件有若干行,每一行存放着某个学生的数据,包括:学号,姓名,语文成绩,数学成绩,英语成绩。数据与数据之间用空格隔开,例如:
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
-
8mrm67ub5be56b
-8mrm67ub5be56b
- 2023-01-23 23:50:03下载
- 积分:1
-
PrintPreviewDialog
java 打印预览功能,java 打印预览功能-PrintPreviewDialog
- 2022-02-09 16:19:49下载
- 积分:1
-
一个简单的国际象棋游戏的源代码,编程环境是java。
一个简单的象棋游戏源码,编程环境是java。-A simple chess game source code, programming environment is java.
- 2022-03-14 00:48:55下载
- 积分:1
-
使用Java将Word转为Html或txt!
使用Java将Word转为Html或txt!-Word will use Java to Html or txt!
- 2022-12-21 16:50:02下载
- 积分:1
-
collection of java programs having gui applications
collection of java programs having gui applications
- 2022-06-17 20:29:14下载
- 积分:1
-
jsp建立数据库连接+中文乱码处理类,希望大家参考
jsp建立数据库连接+中文乱码处理类,希望大家参考-jsp database connection+ set up garbled English class, I hope your reference
- 2022-04-25 00:20:17下载
- 积分:1
-
校园卡模拟,实现校园卡的基本功能
校园卡模拟,实现校园卡的基本功能-Campus Card simulation, Campus Card basic functions
- 2022-05-09 05:58:13下载
- 积分:1
-
JAVA编程思想中文版本,,,,很好的电子书,,不得不看啊
JAVA编程思想中文版本,,,,很好的电子书,,不得不看啊-JAVA programming ideas Chinese version,, a good e-books, and had to see ah.
- 2022-05-08 21:58:53下载
- 积分:1
-
尖峰时刻,汽车小游戏
尖峰时刻,汽车小游戏-peak moment, the small car game
- 2022-02-05 02:34:16下载
- 积分:1