Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions In this lab, you will be creating 3 different functions which will operate on and return sets. Write a function get_sets_overlap (), which takes

image text in transcribed

Instructions In this lab, you will be creating 3 different functions which will operate on and return sets. Write a function get_sets_overlap (), which takes as input two sets and returns their intersection. Write a function get_sets_union (), which takes as input two sets and returns their union. Write a function get_sets_diff( ), which takes as input two sets and returns their difference. To test your functions, in your main program, create the following three sets: - The first set represents students who completed the quiz 1: - Vader, Leya, Hann, Luc, Choobaka - The second set represents students who completed the quiz 2 : - Lars, Beru, Willard, Hann, Wilhuf - The third set represents the class roster, which contains the names of all students enrolled in the class: - Vader, Leya, Owen, Hann, Luc, Choobaka, Lars, Beru, Greedo, Willard, Hann, Wilhuf, Takeel 1. Use the get_sets_overlap () function to find the students who completed both quizzes. 2. Use the get_sets_union () function to find the students who took at least one quiz (save this set, since you'll need to use it in the next step). 3. Use the get_sets_diff() function to find the students who misses both quizzes (remember that the roster tells you all students who are enrolled in the class...)

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

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

Students also viewed these Databases questions