JAVA60分及格_student 假定根据学生的5门学位课程的分数决定其是否可以拿到 ,对于本科生,如果5门 Java Develop 238万源代码下载- www.pudn.com...

详细说明:假定根据学生的5门学位课程的分数决定其是否可以拿到学位,对于本科生,如果5门课程的平均分数超过60分即表示通过,而对于研究生,则需要3门课平均分超过80分并且论文60分才能够通过。

根据上述要求,请完成以下Java接口和类:

(1)设计一个接口Passable,其中约定判断学生成绩是否通过的方法。

(2)设计一个描述本科生的类Undergraduate,该类实现接口,给出判断成绩是否通过的方法的实现。

(3)设计一个描述研究生的类Graduate,该类实现接口,给出判断成绩是否通过的方法的实现。

(4)学生成绩存放在文件如score1.txt中,从文件中读取数据,

-Assumed based on student scores five degree programs determine whether you can get a degree for undergraduates, if the average score five courses over 60 minutes means that through, and for graduate students, the course requires 3 points average over 80 Articles 60 and able to pass.

According to the above requirements, please complete the following Java interfaces and classes:

(1) Design an interface Passable, which agreed method for determining whether student achievement through.

(2) a description of the design Undergraduate undergraduate class, the class that implements the interface, given the results to determine whether the implementation of the method adopted.

(3) a description of the design class Graduate graduate, class implements an interface, given the results achieved to determine whether the method adopted.

(4) student achievement as score1.txt stored in the file, the data is read from the file,

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值