注册 登录
查看: 2704|回复: 1
打印 上一主题 下一主题

英文作业:IO流读取txt文件,并计算最高分 文件复制 查找

[复制链接]

该用户从未签到

3524

主题

3538

帖子

67万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
673178
QQ
跳转到指定楼层
#
发表于 2018-11-1 13:16:22 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
Assignment #8
The records of the students enrolled in a hypothetical computer science class, along with all the relevant information, are kept in the data file classLis.txt
Design and implement a java application to facilitate access to the student records.

The following is a screen sample of the program:
  Please enter:
1. To display a specific student’s record.
2. To calculate the final exam average.
3. To find a student with the highest score on the final exam.
4. To copy the students’ record to another file.
5. To terminate the program.

1
Please enter the student’s name: Annette Adams  
   Name: Annette Adams
   ID: 18273640
   Final: 98
Please enter:
1. To display a specific student’s record.
2. To calculate the final exam average.
3. To find a student with the highest score on the final exam.
4. To copy the students’ record to another file.
5. To terminate the program.

1
Please enter the student’s name: Mark Smith
   No match
Please enter:
1. To display a specific student’s record.
2. To calculate the final exam average.
3. To find a student with the highest score on the final exam.
4. To copy the students’ record to another file.
5. To terminate the program.
2
The final exam average is: 80.43478
Please enter:
1. To display a specific student’s record.
2. To calculate the final exam average.
3. To find a student with the highest score on the final exam.
4. To copy the students’ record to another file.
5. To terminate the program.
3
The student with highest score to the final exam:
     Name: Aleksei Titov
     ID: 92839443
     Final exam score: 99
Please enter:
1. To display a specific student’s record.
2. To calculate the final exam average.
3. To find a student with the highest score on the final exam.
4. To copy the students’ record to another file.
5. To terminate the program.

4
Please enter the file name:
ClassListCopy.txt
Please enter:
1. To display a specific student’s record.
2. To calculate the final exam average.
3. To find a student with the highest score on the final exam.
4. To copy the students’ record to another file.
5. To terminate the program.

5
Program terminates
The classList.txt file has been created for you.
               
Marking Scheme
[2 marks] Presentation/Style: Organization, readability, descriptive identifier,
                 indentation, bracket placement
[16 marks] Correctness: Program works without bugs. Use of appropriate methods.
[2 marks] Comments


此源码经过详细测试 保证能运行!!!


下载地址:
游客,本付费内容需要支付 100金币 才能浏览支付

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
java无忧网(http://www.javawyw.com),专业提供Java大作业,小作业,课程设计,毕业设计源码,答辩辅导,作业排错,bug修复,专业解答,远程部署运行项目等服务
本网站所有源码,保证能运行!
QQ:1399491757
回复

使用道具 举报

  • TA的每日心情
    开心
    2022-6-19 22:06
  • 签到天数: 255 天

    [LV.8]以坛为家I

    5

    主题

    273

    帖子

    723

    积分

    高级会员

    Rank: 4

    积分
    723
    楼主
    发表于 2018-11-18 14:50:53 | 只看该作者
    英文作业:IO流读取txt文件,并计算最高分 文件复制 查找

    报空指针异常:
    Exception in thread "main" java.lang.NullPointerException
            at java.io.Reader.<init>(Unknown Source)
            at java.io.InputStreamReader.<init>(Unknown Source)
            at a8.main(a8.java:23)

    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    快速回复 返回列表 返回顶部