Question: in Python please IT 144-Python l Chapter 6 Programming Project This assignment involves the use of text files, lists, and exception handling and is a

 in Python please IT 144-Python l Chapter 6 Programming Project This

in Python please

IT 144-Python l Chapter 6 Programming Project This assignment involves the use of text files, lists, and exception handling and is a continuation of the baby names activity we did in class. You should now have two files one containing boy names and one containing girl names each containing the top 1000 names for each gender from a specified year. (Allow the user to choose the year.) Write a program which allows the user to search your files for a boy or girl name and display where that name ranked in the chosen year. (You should be able to enter the name in upper-or lower-case.) For example. Enter gender (boy/girl): boy Enter the name to search for: Michael Michael was ranked # 8 in 2016 for boy names. RESTART Enter gender (boy/girl): boy Enter the name to search for: MIchAel MichAel was ranked # 8 in 2016 for boy names. >acascns2sccasRESTART Enter gender (boy/girl): boy 2255224565 Enter the name to search for: Jeremiah Jeremiah was ranked # 58 in 2016 for boy names >>>="" RESTART Enter gender (boy/girl): girl Enter the name to search for: olivia Olivia was ranked # 2 in 2016 for girl names. Enter gender (boy/girl): girl Enter the name to search for: brenda brenda was not ranked in the top 100 girl names for 2016 RESTARTss Enter gender (boy/girl): gril Enter the name to search for: sue Invalid gender Make sure to use try/except blocks to handle the exception if the files are not found or unavailable k of the count as you go Use a try/except block to handle the exception caused when the name is not found in the file. Make sure to include appropriate comments in Save your program and submit your py file in Blackboard. your program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!