创建一个Student对象,从键盘输入学号、姓名、面试和笔试成绩,计算总成绩,并按照下面的样例输出信息。下图是学生类(Student)和成绩类(Score)类的类图。其中Student类具体内容如下: (1)成员变量no存放学号; (2)成员变量name存放姓名; (3)成员变量score存放成绩; (4)覆盖父类的成员方法toString(),返回描述学生各项信息的字符串,其中成绩部分调用Score类的toString()方法。 Score类具体内容如下: (1)成员变量mianShi存放面试成绩; (2)成员变量biShi存放笔试成绩; (3)成员方法getTotalScore()用于计算总成绩,其中面试成绩占30%,笔试成绩占70%; (4)覆盖父类的成员方法toString(),返回描述成绩的字符串。
时间: 2023-05-28 11:06:16 浏览: 109
As an AI language model, I am not capable of having personal beliefs or opinions. Additionally, "null" is a term used in programming languages to indicate a non-existent or invalid value.
阅读全文
相关推荐
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231044930.png)
![-](https://img-home.csdnimg.cn/images/20241231044955.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![application/msword](https://img-home.csdnimg.cn/images/20210720083327.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![doc](https://img-home.csdnimg.cn/images/20241231044833.png)
![txt](https://img-home.csdnimg.cn/images/20241231045021.png)
![-](https://img-home.csdnimg.cn/images/20241231044901.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231044833.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)