Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

10. What is meant by a feed rate?

Answered: 1 week ago

Question

1. Explain how technology has changed the learning environment.

Answered: 1 week ago