Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Java program which will store, manipulate, and print student registration information. As part of the solution, identify the following classes: Student Admissions. The

Write a Java program which will store, manipulate, and print student registration information.

As part of the solution, identify the following classes:

  1. Student
  2. Admissions.

The class Student must have the following fields Name, Id number, Courses, and Date, where:

  1. Name is a user defined class comprising of at minimum first name and last name.
  2. The field Courses is a set of no more than five (5) string values representing the courses being registered for. Course names supplied are assumed to be valid and contains no blank space, for instance COP3337 is valid but not COP 3337.
  3. Id number a string variable that uniquely identifies a student.

The class Student must be capable of adding courses and dropping courses

The class Admissions stores and manipulates the student information (student record). Because the list of students grows dynamically, it is best to use a dynamic data structure such as the ArrayList to store the information. This class should do the following, among other possible activities:

  1. Add student to the list
  2. Remove student from the list, which would first involve locating the record in order to remove it. In order to determine which record to remove, you must supply the id number as the search argument.

You are to provide a test class that coordinates the activities of the classes outlined above, by:

  • Creating student objects and adding them to the database of the Admissions object
  • Manipulating student record by:
    • Adding a course(s)
    • Dropping a course(s)
  • Removing a student from the database
  • Displaying list of currently registered students
  • Displaying list of all students that were dropped from the course

The output must be formatted in a scrollable pane with fields as follows:

use the GetData class provided :

import javax.swing.JOptionPane;

class GetData

{

static double getDouble(String s)

{

return Double.parseDouble(getWord(s));

}

static int getInt(String s)

{

return Integer.parseInt(getWord(s));

}

static String getWord(String s)

{

return JOptionPane.showInputDialog(s);

}

}

CURRENTLY ENROLLED

Id number: 123456

Name: Williams, John

Date: September 5, 2009

Courses: COP3804, MATH2050, ENG3300

:

:

STUDENT WHO WERE DROPPED

Id number: 567890

Name: Roberts, Kay-Anne

Date: September 5, 2009

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

More Books

Students also viewed these Databases questions