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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started