Question: In JAVA: Exercise1:[Student.java] A Student has a name, an ID, a gender, an email address, major, college and number of minors. a. Define a class

In JAVA:

Exercise1:[Student.java]

A Student has a name, an ID, a gender, an email address, major, college and number of minors.

a. Define a class called Student with appropriate fields and provide the required constructor, accessor (get) and mutator (set) methods. The students email address can be created with the gender and id provided (e.g., b0001234@aus.edu).

b. Override the toString() method to have the students details.

c. Develop a program that prompts the user to enter the students details and creates an array of students using values provided by the user. Each line of the user input represents name, ID, gender, a major, a college and the number of minors of a student. The user can end the input sequence by entering no.

d. Print the number of students entered by the user and the details of the students entered.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!