Swift-Array-Example

Create 2 arrays one for student names , and one for their grades in Swift Assume we have 10 students. Then:

  1. Find and print the minimum grade.
  2. Find and print the name of the student who gets the highest grade
  3. Find how many students failed (their grades less than 50)
  4. Print names of A grade students (their grades more than 90)
  5. Find the average and then find and print the name of the student whose grade is the nearest to the average.