Question: *Create a playground project in XCode 9(Swift4) 1) Methods : i.) Write a method that take an integer array as a parameter and returns the
*Create a playground project in XCode 9(Swift4)
1) Methods : i.) Write a method that take an integer array as a parameter and returns the sum of positive odd numbers and sum of positive even numbers. ii.) Define and implement a method that takes a string array as a parameter and returns the length of the shortest and the longest strings in the array iii.) Implements the sequential search method that takes and array of integers and the item to be search as parameters and returns true if the item to be searched in the array, return false otherwise
2) Dictionary Data Structure
a) Declare a dictionary that stores the city name and the population in that city. For example, Paris = > 2.2 million (add 5 records to your dictionary)
b) Display city name with largest population
c) Display the city name with smallest population
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
