Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use Python please ) older are two text files: boys.txt and girls.txt. Use these files to write a program to do the following:Create a dictionary

use Python please )

older are two text files: boys.txt and girls.txt. Use these files to write a program to do the following:Create a dictionary from the boys.txt file that uses the boys names as the key and the numberof boys that were named that name as the value. The names and counts are delimited by a comma.Create a dictionary from the girls.txt file that uses the girls names as the key and the number of girls that were named that name as the value. The names and counts are delimited by a comma.Create a menu that contains the following choices:oAdd a name and count for either a boy or girloDelete a name and count for either a boy or girloFind the count for a particular boy name or girl nameoFind the boy name with the highest countoFind the girl name with the highest countoQuit the programUse methods where appropriate. Use descriptive identifier names. Use comments to describe each method.BE SURE TO USE DICTIONARIES AS THE ONLY MEANS TO COMPLETE THE MENU CHOICES. DO NOT USE LISTS OR ANY OTHER DATA TYPE OR DATA STRUCTURE TO SOLVE THIS PROBLEM.

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