Student Application
Create a base class Student that has Student ID (int), Student’s name (String), student’s address (String), and letterGrade (char). Now create classes UnderGradStudent, GradStudent and NonDegreeStudent that inherit from Student.
The UnderGradStudent has additional properties such as major (String), year (freshman, sophomore, etc), exam1Score (double), exam2Score (double), and exam3Score (double).
GradStudent has properties such as department (String), advisor (Person), thesisGrade (char) and examScore (double).
The NonDegreeStudent has properties such as creditHours (int), assignScore (double) and examScore (double). Create constructor, accessor, mutator methods for all these classes.
Letter Grade for each student type is to be computed as follows:
1. UnderGradStudent: gpa is computed based on the following information
Graded activity
|
Maximum Score
|
Weight
|
Exam1Score
|
50
|
25%
|
Exam2Score
|
100
|
45%
|
Exam3Score
|
250
|
30%
|
TotalScore
|
LetterGrade
|
>=85
|
A
|
>=70
|
B
|
>=60
|
C
|
< 60
|
F
|
2. GradStudent:
ThesisGrade
|
ExamScore
|
LetterGrade
|
A
|
Does not matter
|
A
|
B
|
>= 90
|
A
|
B
|
>= 80
|
B
|
B
|
< 80
|
C
|
C
|
>=80
|
C
|
C
|
< 80
|
F
|
3. NonDegreeStudent:
Graded activity
|
Maximum Score
|
Weight
|
AssgnScore
|
250
|
25%
|
ExamScore
|
100
|
75%
|
TotalScore
|
LetterGrade
|
>=80
|
A
|
>=70
|
B
|
>=55
|
C
|
< 55
|
F
|
Now write a driver program to do the following:
1. Accept input for new Students
2. Accept advisor details for an advisor and then list the names of all Students who have the same advisor. You will use the method in the Person class for this functionality.
3. List the name of the Students along with their letter grade.
4. Display student information for all the students that are there in the system.
5. Exit the system after writing all information to a file. //写文件
The Person class is as described below:
It contains four instance variables: one each for the name, area, title, andyearsOfEmployment. It should have appropriate constructors andaccessor and
mutator methods. In addition, it should have a method to check if two persons are the same. This method will accept another person object as a parameter and check if the calling object and the parameter object both have the same name,
area, title and yearsOfEmployment. If so, the method should return true, else it returns false. The GradStudent class definition should include a Person type as an instance variable.
See sample .jar (and .dat) program provided.
To execute the jar file
· Download the .jar file and the .dat file. Put them in the same folder. At the command prompt type injava –jar StudentApp.jar.
· This will enable you to see how the application should work.
StudentApp.jar:
分享到:
相关推荐
java学习参数传递 杨辉三角,大学java作业题
这份Java试题是上届东华理工大学的考试题 很有价值看下
包含期末工程作业以及两个原型
包含全部的四川大学JAVA课程的课后习题,即使没有教材也可使用,代码格式规范,名称清晰,适合初学者练习以提高自己
Java作业题,关于Java的所有题目,可以学习Java的好多题目
陕西师范大学-《java程序设计》(专升本)考评作业-含答案.pdf
这个文件里包含的是南京大学数据结构的日常java作业,包含答案。
合肥工业大学宣城校区JAVA作业问答题
北交大java习题(大一版)和卡内基题目并用,还不错,能锻炼一下
1. 编写程序实现单链表,要提供插入,删除,排序,统计等功能,链表节点中的数据要求是整数。 2. 定义直线类,并提供判断两条直线是否相交等功能。
大学计算机基础综合大作业试题及答案.pdf
java基础课件中作业的java源码,如果你是初级的应该可以很容易的看懂。
作业都是老师课件后的习题,格式都是一样的,把文件夹名称改成自己的姓名学号就可以了
JAVA的一道作业,关于应聘者的,就是普通的功能
一个作业题喜欢的可以看看.
某内API金典作业题,自己感觉还可以,可以对Java API方面的巩固
人大网络教育作业题练习题,课后章节练习题,网络教育考试复习资料, 人大网络教育作业题练习题,课后章节练习题,网络教育考试复习资料
(2020年更新)电大《信息管理概论》教学考一体化网考形考作业试题和答案.docx(2020年更新)电大《信息管理概论》教学考一体化网考形考作业试题和答案.docx(2020年更新)电大《信息管理概论》教学考一体化网考形考作业...
东北农业大学网络教育学院计算机应用基础网上作业题及参考答案.pdf
非常好的练习题 新西兰奥克兰大学出品 世界排名前五十 计算机方面的