need help with Data Structures

profilekings12
number_01_chapter_-02.docx

CS 222 01

Programming Assignment 01

20 Points

Due: Wednesday, September 6, 2017 at the beginning of class

Located on the Instructor drive in the I:\kopp\outbox\CS 222 01\Program Assignments folder 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 number of 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:

· Add a name and count for either a boy or girl

· Delete a name and count for either a boy or girl

· Find the count for a particular boy name or girl name

· Find the boy name with the highest count

· Find the girl name with the highest count

· Quit the program

Use 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.

Add the following comments to the beginning of the program.

Name: Your Name

Class and Section: CS 222 01

Assignment: Program Assignment 01

Due Date: See above

Date Turned in:

Program Description: You write a short description of what the program will do

When you complete the program, do the following.

1. Create a folder with the following name: ProgramAssignment01

2. Copy your program and all appropriate files to this folder

3. Copy the folder to your folder in the I:\kopp\inbox\CS 222 01 folder