Two Images Goes Together One Question Pls Write Dictionary Questions Xcode Swift C Thanks Q31407421

Xcode File Edit View Find Navigate Editor ProderDebug Source Control Windu-lep 192.168.1.71 Mon 3-18 AM StudentF18 Running Lab- Collections 4 B8 <> Lab-Collections 4) 3. Exercise - Dictionaries Exercise - Dictionaries Create a variable (String: Int] dictionary that can be used to look up the number of days in a particular month. Use a dictionary literal to initialize it with January. February, and March. January contains 31 days, February has 28, and March has 31. Print the dictionary Using subscripting syntax to add April to the collection with a value of 30. Print the dictionary Its a leap year! Update the number of days in February to 29 using the updatevatue(:, forkey:) method. Print the dictionary Use if-let syntax to retrieve the number of days under January. If the value is there, print January has 31 days, where 31 is the value retrieved from the dictionary Given the following arrays, create a new [String: (Stringl] dictionary, shapesArray should use the key Shapes and colorsArray should use the key Colors. Print the resulting dictionary

media%2F2eb%2F2ebd4255-ae3d-4407-89ad-3b

all two images goes together(one question) pls writethe dictionary questions in xcode(swift) not c++. thanks

Xcode File Edit View Find Navigate Editor ProderDebug Source Control Windu-lep 192.168.1.71 Mon 3-18 AM StudentF18 Running Lab- Collections 4 B8 Lab-Collections 4) 3. Exercise – Dictionaries Exercise – Dictionaries Create a variable (String: Int] dictionary that can be used to look up the number of days in a particular month. Use a dictionary literal to initialize it with January. February, and March. January contains 31 days, February has 28, and March has 31. Print the dictionary Using subscripting syntax to add April to the collection with a value of 30. Print the dictionary It’s a leap year! Update the number of days in February to 29 using the updatevatue(:, forkey:) method. Print the dictionary Use if-let syntax to retrieve the number of days under January. If the value is there, print January has 31 days, where 31 is the value retrieved from the dictionary Given the following arrays, create a new [String: (Stringl] dictionary, shapesArray should use the key “Shapes” and colorsArray should use the key “Colors. Print the resulting dictionary Show transcribed image text

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *