-
设计一个学生类,学生类中应包括学号,姓名,语文成绩,数学成绩,英语成绩,同时还要提供两个方法,一个方法计算总成绩,一个方法计算平均成绩。
现在有一个文本文...
设计一个学生类,学生类中应包括学号,姓名,语文成绩,数学成绩,英语成绩,同时还要提供两个方法,一个方法计算总成绩,一个方法计算平均成绩。
现在有一个文本文件,该文件有若干行,每一行存放着某个学生的数据,包括:学号,姓名,语文成绩,数学成绩,英语成绩。数据与数据之间用空格隔开,例如:
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日期选择控件完整源代码
Java语言开发的简洁实用的日期选择控件,源码文件功能说明: [DateChooser.java] Java 日期选择...
Java日期选择控件完整源代码
Java语言开发的简洁实用的日期选择控件,源码文件功能说明: [DateChooser.java] Java 日期选择-Select the date a complete Java source code control, Java-developed simple and practical choices of date control, source code file Function Description: [DateChooser.java] Java Date selection
- 2022-03-21 09:05:27下载
- 积分:1
-
The ID3 decision tree algorithm for Data Mining .
基于决策树的数据挖掘算法,是很不错的Java版的ID3算法,大家可以看看。- The ID3 decision tree algorithm for Data Mining .
- 2022-12-20 17:00:03下载
- 积分:1
-
Swing组件演示
Swing组件演示-Swing components demo
- 2022-02-11 22:04:49下载
- 积分:1
-
java基础编程示例2
java基础编程示例2-java based programming paradigm 2
- 2022-02-04 11:51:03下载
- 积分:1
-
jsp shop
jsp shop
- 2022-04-19 21:30:51下载
- 积分:1
-
最近在新浪"读书频道"下载了一个小说,有40多个页面,后缀全是shtml的,发现改成html就可以在本地看了,但改起来太麻烦,就写了这个程序,专门用来批量修改某...
最近在新浪"读书频道"下载了一个小说,有40多个页面,后缀全是shtml的,发现改成html就可以在本地看了,但改起来太麻烦,就写了这个程序,专门用来批量修改某目录下的文件后缀.-recently in Sina, "Read channel" downloaded a novel, more than 40 pages, suffixes are shtml, changed html found on the local read, but the fact that too much of a hassle, it was made for the process, specifically designed to modify a volume"s directory file extension.
- 2022-02-01 14:47:43下载
- 积分:1
-
串的基本操作 主要是对串的比较,求串长等
串的基本操作 主要是对串的比较,求串长等-The basic operation of the main string of string comparison, and long strings
- 2022-01-22 00:31:49下载
- 积分:1
-
实现整数和浮点数的加,减,乘,除计算
实现整数和浮点数的加,减,乘,除计算-achieve the integer and floating-point, plus or minus, multiplication and calculation
- 2022-01-25 22:12:58下载
- 积分:1
-
我们上课老师做的详细的笔记,有关JSP的,以后会持续上传。...
我们上课老师做的详细的笔记,有关JSP的,以后会持续上传。-Our teachers do a detailed class notes, the JSP, and the future will continue to upload.
- 2022-03-28 19:10:37下载
- 积分:1