-
设计一个学生类,学生类中应包括学号,姓名,语文成绩,数学成绩,英语成绩,同时还要提供两个方法,一个方法计算总成绩,一个方法计算平均成绩。
现在有一个文本文...
设计一个学生类,学生类中应包括学号,姓名,语文成绩,数学成绩,英语成绩,同时还要提供两个方法,一个方法计算总成绩,一个方法计算平均成绩。
现在有一个文本文件,该文件有若干行,每一行存放着某个学生的数据,包括:学号,姓名,语文成绩,数学成绩,英语成绩。数据与数据之间用空格隔开,例如:
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
-
java API 在包java.util中有一个GregorianCalendar类,使用它可以得到一年内某个月的日历。...
java API 在包java.util中有一个GregorianCalendar类,使用它可以得到一年内某个月的日历。-java API in the package java.util contains a GregorianCalendar class, using it can be a month of the calendar year.
- 2022-11-23 08:05:03下载
- 积分:1
-
邮件是一个服务器应用程序允许互联网服务供应商提供一个网络接口…
WebMail is a server application that allows ISPs to provide a WWW interface for each user to his mailbox(es)
- 2022-11-15 14:15:03下载
- 积分:1
-
MFC扩展界面库的文件
MFC扩展界面库的文件-MFC expansion interface library of documents
- 2023-07-05 13:20:03下载
- 积分:1
-
Internet banking system (struts+ Hibernate) attached to a database.
网上银行系统(struts+hibernate)附带数据库。-Internet banking system (struts+ Hibernate) attached to a database.
- 2022-02-21 13:30:59下载
- 积分:1
-
java的事件处理之关于鼠标!
java的事件处理之关于鼠标!-events processed on the mouse!
- 2023-03-04 11:55:03下载
- 积分:1
-
该代码用JAVA语言编写了一个聊天室,可多人同时开启客户端,进行会话。...
该代码用JAVA语言编写了一个聊天室,可多人同时开启客户端,进行会话。-The code written in JAVA using a chat room can be open at the same time more than the client, the conversation.
- 2022-02-04 15:43:58下载
- 积分:1
-
通过控制台猜100以内数字,直到才对为止。
通过控制台猜100以内数字,直到才对为止。-Guess the number within the 100 through the console until Caidui up.
- 2023-07-13 04:30:03下载
- 积分:1
-
JAVA聊天室程序。使用socket连接,多线程。
JAVA聊天室程序。使用socket连接,多线程。-JAVA chat room program. The use of socket connections, multi-threaded.
- 2022-01-21 05:10:38下载
- 积分:1
-
a similar bubble appear chariot games
一个类似泡泡堂的战车游戏-a similar bubble appear chariot games
- 2022-04-07 22:21:27下载
- 积分:1