Question: DATA STRUCTURES COURSE Solution of a problem using the ArrayBag structure. Instructions 1. Implement ArrayBag structure with a numeric content. 2. Implement a class and

DATA STRUCTURES COURSE

Solution of a problem using the ArrayBag structure.

Instructions

1. Implement ArrayBag structure with a numeric content.

2. Implement a class and incorporate it into the ArrayBag structure.

Description of the problem:

1. Implement the basic operations between two sets using the

ArrayBag structure:

a. Union. (?? ? ??)

b. Intersection. (?? n ??)

c. Symmetric difference between two sets. (?? ???)

2. Suppose the registrar has a list where the students are

They write down to enroll in a specific course.

a. Implement the name class Student to store the information for each

student. The class must contain the following attributes, the name of the

student, and their student number, course, section, trimester, and status

current enrollment in the course (enrolled true, not enrolled false) .

Each instance of your class must contain the following information:

Example (Tom Cruise(STUDENT NAME), 0009(STUDENT NUMBER), CECS3212(CLASS CODE), 85(SECCION), FA21(SEMESTER), false).

b. Use the ArrayBag structure, and implement the following operations:

Yo. Add a new student to the end of the list

ii. Delete a student by their student number.

iii. Sort the list by the student's last name.

iv. Print the list containing the students who have been enrolled

in a specific course.

v. Print the list containing the students who have not been

enrolled in a specific course.

saw. Search for a student's information by their student number.

c. Show how your program works with a minimum of 5 students.

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 Programming Questions!