Answered step by step
Verified Expert Solution
Question
1 Approved Answer
xercise 1 : reate a Python program that utilizes the set data type and dictionary to keep track of a group of udents at the
xercise 1 : reate a Python program that utilizes the set data type and dictionary to keep track of a group of udents at the university. The program should have the following functional requirements: - Use Python DICTIONARY to store the students. - The ability to add a new student to the set. - The ability to remove a student from the set. - The ability to check if a student is already in the set. - The ability to display all students currently in the set. - For each student, the set should include a record with the studentadd associated with the registered courses by the student for each semester (Hint: use the suitable data structure for this). The courses will be added by course ID such as (BCS102, SWS 101, SWS 3015 , etc.). - Finally, the program should be able to retrieve| the following information for each student: - The repeated courses (i.e., course titles) by the student (if any) in both semesters. - All courses (i.e., course titles) of the year that have been taken. - The courses have been taken in Fall but not in Spring. - The courses have been taken in Spring but not in Fall. Notes: -For all the above requirements, the course titles should be displayed. -You can use a suitable data structure to store the course ID associated with the course title
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