Question: Swift/Xcode: Can't figure out how to filter array and print filtered array. Requirements: Create an array that contains only the freshmen from the student array

Swift/Xcode: Can't figure out how to filter array and print filtered array.

Requirements:

Create an array that contains only the freshmen from the student array using the filter function

Create an array that contains only the full names (first name concatenated with the last name) from the student array using the map function

Return the average grade from all the students using the reduce function divided by the count

Swift/Xcode: Can't figure out how to filter array and print filtered array.

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!