You are an event planner and you planned an event. Everything was done and guests were registered on your website. Suddenly some bug occurs in your website and some of the guest names from the list are lost. You realize that still the loss can be encountered if you ask your guests to re-enter their email- ids(that they used during first-time registration) and check if their name appears in the list. If the name appears then display "All the entered E-Mail IDs are existing in the set" or else print "All the entered E-Mail IDs are not existing in the set". Since you are short on time you request that all of them enter a bunch of email-ids in comma-separated format(ids of friends and relatives they knew would be attending the event). In the Main method, obtain input from the user in the console and create a set to store E-Mail IDs. Get the E-Mail IDs to be searched in the set as a single string separated by commas. Using the find method, check whether all the E-Mail IDs are present in the string. If present, print "All the entered E-Mail IDs are existing in the set". Else print "All the entered E-Mail IDs are not existing in the set"

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

QUESTION PROVIDE IN ATTACHMENT. KINDLY SEE.

MATCH OUTPUT AS IT IS WITH QUESTION OUTPUT.

set::find() method
You are an event planner and you planned an event. Everything was done and guests were registered on
your website. Suddenly some bug occurs in your website and some of the guest names from the list are
lost. You realize that still the loss can be encountered if you ask your guests to re-enter their email-
ids(that they used during first-time registration) and check if their name appears in the list. If the name
appears then display "All the entered E-Mail IDs are existing in the set" or else print "All the entered
E-Mail IDs are not existing in the set". Since you are short on time you request that all of them enter a
bunch of email-ids in comma-separated format(ids of friends and relatives they knew would be
attending the event).
In the Main method, obtain input from the user in the console and create a set to store E-Mail IDs. Get
the E-Mail IDs to be searched in the set as a single string separated by commas. Using the find method,
check whether all the E-Mail IDs are present in the string. If present, print "All the entered E-Mail IDs
are existing in the set". Else print "All the entered E-Mail IDs are not existing in the set"
Problem constraints:
Use find a method to search the email id.
Input and Output Format:
Refer sample input and output for formatting specifications.
[All text in bold corresponds to input and the rest corresponds to output]
Sample Input and Output 1:
Enter the number of E-Mail IDs
ajay@yahoo.com
priya@gmail.com
hema@gmail.com
john@gmail.com
tommy@yahoo.com
Enter the E-Mail IDs to be searched
priya@gmail.com,tommy@yahoo.com,hema@gmail.com
All the entered E-Mail IDs are existing in the set
Sample Input and Output 2:
Enter the number of E-Mail IDs
4
kiara@gmail.com
ethan@yahoo.com
annie@gmail.com
cheryl@yahoo.com
Enter the E-Mail IDs to be searched
kiara@gmail.com,priya@yahoo.com
All the entered E-Mail IDs are not existing in the set
Transcribed Image Text:set::find() method You are an event planner and you planned an event. Everything was done and guests were registered on your website. Suddenly some bug occurs in your website and some of the guest names from the list are lost. You realize that still the loss can be encountered if you ask your guests to re-enter their email- ids(that they used during first-time registration) and check if their name appears in the list. If the name appears then display "All the entered E-Mail IDs are existing in the set" or else print "All the entered E-Mail IDs are not existing in the set". Since you are short on time you request that all of them enter a bunch of email-ids in comma-separated format(ids of friends and relatives they knew would be attending the event). In the Main method, obtain input from the user in the console and create a set to store E-Mail IDs. Get the E-Mail IDs to be searched in the set as a single string separated by commas. Using the find method, check whether all the E-Mail IDs are present in the string. If present, print "All the entered E-Mail IDs are existing in the set". Else print "All the entered E-Mail IDs are not existing in the set" Problem constraints: Use find a method to search the email id. Input and Output Format: Refer sample input and output for formatting specifications. [All text in bold corresponds to input and the rest corresponds to output] Sample Input and Output 1: Enter the number of E-Mail IDs ajay@yahoo.com priya@gmail.com hema@gmail.com john@gmail.com tommy@yahoo.com Enter the E-Mail IDs to be searched priya@gmail.com,tommy@yahoo.com,hema@gmail.com All the entered E-Mail IDs are existing in the set Sample Input and Output 2: Enter the number of E-Mail IDs 4 kiara@gmail.com ethan@yahoo.com annie@gmail.com cheryl@yahoo.com Enter the E-Mail IDs to be searched kiara@gmail.com,priya@yahoo.com All the entered E-Mail IDs are not existing in the set
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education