Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In Swift Methods i.) Write a method that take an integer array as a parameter an

ID: 3890845 • Letter: I

Question

In Swift

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

Explanation / Answer

i.)

if numb[i]%2==0

sume=sume+numb[i]

else sumo=sumo+numb[i]

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote