Question: Please use swift to solve this problem. 1. Create a dictionary named countyList of >that will use the name of a US state as the

Please use swift to solve this problem.

Please use swift to solve this problem. 1. Create a dictionary named

1. Create a dictionary named countyList of >that will use the name of a US state as the key and a list of counties for that state as the value. 2. Put this information in your dictionary: for Vermont: Chittenden, Franklin, Washington, Addison for Maine: Franklin, York, Oxford, Cumberlan for New Hampshire: Coos, Sullivan, Grafton, Cheshire 3. Now iterate through your dictionary and produce a nicely formatted list, like this: New Hampshire: Coos, Sullivan, Grafton, Cheshire Vermont: Chittenden, Franklin, Washington, Addison Maine: Franklin, York, Oxford, Cumberland 3. Now add Merrimack to the list for New Hampshire and print out the info again, formatted as above. 4. Now remove Addison from the list of counties for Vermont and print out the info again, formatted as above. S. Count the total number of times that Franklin appears in the any list for any state and print that value

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!