Exercise 1: Write a Java application that reads scores of students from a user and display the course grades and Student Information. There are two types of students: undergraduates and postgraduates....


Exercise 1:<br>Write a Java application that reads scores of students from a user and display the course grades and<br>Student Information. There are two types of students: undergraduates and postgraduates. Every student<br>will have an ID, a name, and college. The undergraduate students are assessed by three components:<br>test one (40%), test two (40%) and quizzes (20%). The postgraduate students are also assessed by three<br>components: test one (30%), test two (30%) and a project (40%).<br>You should develop your application according to the following specifications:<br>Create Student class as superclass and undergraduates and postgraduates as subclasses.<br>Every student has an id, a name, and a college.<br>• Both undergraduates and postgraduates will have two exams (with different weights as<br>explained above). An undergraduate is a student who has also quizzes. Similarly, a<br>postgraduate is a student who has a project. All assessment components are out of 100.<br>The final score of an undergraduate or a postgraduate is calculated differently according to the<br>weights of the assessment components as described above.<br>• Every class should have constructor(s), set/get functions and a display function.<br>The main program should read the students data from user. While reading students information<br>should construct an object to represent a student (either undergraduate or postgraduate) and<br>keep them into one array list. Write a method public static Student readStudentInfo(char type),<br>where type represents student type, that reads student information regardless of student type<br>and return the student object to be inserted into the array list. Check Figure 1 for a sample run.<br>

Extracted text: Exercise 1: Write a Java application that reads scores of students from a user and display the course grades and Student Information. There are two types of students: undergraduates and postgraduates. Every student will have an ID, a name, and college. The undergraduate students are assessed by three components: test one (40%), test two (40%) and quizzes (20%). The postgraduate students are also assessed by three components: test one (30%), test two (30%) and a project (40%). You should develop your application according to the following specifications: Create Student class as superclass and undergraduates and postgraduates as subclasses. Every student has an id, a name, and a college. • Both undergraduates and postgraduates will have two exams (with different weights as explained above). An undergraduate is a student who has also quizzes. Similarly, a postgraduate is a student who has a project. All assessment components are out of 100. The final score of an undergraduate or a postgraduate is calculated differently according to the weights of the assessment components as described above. • Every class should have constructor(s), set/get functions and a display function. The main program should read the students data from user. While reading students information should construct an object to represent a student (either undergraduate or postgraduate) and keep them into one array list. Write a method public static Student readStudentInfo(char type), where type represents student type, that reads student information regardless of student type and return the student object to be inserted into the array list. Check Figure 1 for a sample run.
Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here