Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please space as seen and add comments We already have the following birthday data: Albert Einstein - 03/14/1879, Benjamin Franklin - 01/17/1706, Ada Lovelace -

image text in transcribed

Please space as seen and add comments

We already have the following birthday data: Albert Einstein - 03/14/1879, Benjamin Franklin - 01/17/1706, Ada Lovelace - 12/10/1815 Based on the above data, create a dictionary to store the names and birthdays. When you run your program, it should ask the user to enter a name, and return the birthday of that person back. If it is not in the dataset, return an error message. The interaction should look something like this: Welcome to the birthday query. We know the birthday of: ==> Albert Einstein ==> Benjamin Franklin ==> Ada Lovelace Note: 1. You cannot print the above name list manually (supposing you have 100+ names in the dataset). 2. Only names should be listed here. The birthdays should be hidden unless users inquire them. Who's birthday do you want to look up? Benjamin Franklin Benjamin Franklin's birthday is 01/17/1706. Do you want to continue (Y/N)? y ==> Welcome to the birthday query. We know the birthday of: Albert Einstein ==> Benjamin Franklin ==> Ada Lovelace Who's birthday do you want to look up? John Smith Sorry, we don't have John Smith's birthday. Do you want to continue (Y/N)? n Add more birthdays to the dictionary. Then add the following data into the established dataset. Print a new statement to update the info and the query. Charles Chaplin - 4/16/1889 Franklin Delano Roosevelt - 1/30/1882 Welcome to the birthday query. We know the birthday of: ==> Albert Einstein ==> Benjamin Franklin Ada Lovelace Charlie Chaplin Franklin Delano Roosevelt Who's birthday do you want to look up? Albert Einstein Albert Einstein's birthday is 03/14/1879. Do you want to continue (Y/N)? n

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 Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

Is this investment worthwhile? Why or why not?

Answered: 1 week ago