Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 2: Develop an application that can store and manage information about students taking courses at a university First create a Student class (similar to

image text in transcribedimage text in transcribed

Exercise 2: Develop an application that can store and manage information about students taking courses at a university First create a Student class (similar to Expense.java) that can hold the following pieces of information Student ID First Name Last NameEmail Major Faculty Add appropriate methods to this class Next create a StudentList class (similar to ExpenseList.java) that has as its attribute an unordered list of student records, and the following methods . Add a student record to the list: public void addRecord (Student s) Delete a student record with the specified ID number: . public void deleteRecord(int ID) Display records of all the students taking a specifiied major: public void displayMajors(String major) Display records of all students belonging to a particular faculty: public void displayFaculty (String faculty) Display records of all students with the specified last name . public void displayName (String lName) Search for a student's record given an ID number: * public Student searchID(int ID) You may add other methods as necessa Next, create a client demo program (similar to ExpenseListDemo.java) that reads a file such as the one given below, creates an unordered list, and demonstrates all the methods that you have developed. The text file has the Student ID number, First name, Last name, email address, Major and Faculty of one student on each line. Each item on the line is separated by a space 201820 Kate West kwest@email.com Music Arts 201821 Julie McLain jmclain@email.com Finance Business 201822 Tom Elrich telrichSemail.com Sculpture Arts 201823 Mark Smith msmith@email.com Biology science 201824 Ian Foster ifosteremail.com Physics Science 201825 Zhilei Wang zwang@email.com Finance Business 201826 Matt Knight mknight@email.com Music Arts 201827 John Smith jsmith@email.com CS ComputerScience 201828 Craig Cambell ccambell:email.com Linguistics Humanities 201829 Mike Williams mwilliams@email.com Music Arts 201830 Jane Reid jreid@email.com Physics Science NOTE: Just one sample output which shows the results for all the methods that you have developed is sufficient A sample screen dialog is given below: Enter the filename to read from: studentrecords.txt

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions

Question

Psychological, financial, and career counseling.

Answered: 1 week ago