Draft

Average Age of Females

Description:

You are going to be given a list of people. Their properties are name (string), gender (male/female), and age (int). Your job is to return the average age of all females in the list.

#Examples:

sortArray([{name:'Sarah', gender:'female', age:25}, {name:'Tom', gender:'male', age:18}, {name:'Tim', gender:'male', age:65}, {name:'Kim', gender:'female', age:58}]) 
should return 41.5

#Input

An array of objects.

#Output

A number, the average age of all females.

Fundamentals

Stats:

CreatedMar 8, 2018
Warriors Trained569
Total Skips40
Total Code Submissions1372
Total Times Completed344
JavaScript Completions344
Total Stars3
% of votes with a positive feedback rating79% of 159
Total "Very Satisfied" Votes108
Total "Somewhat Satisfied" Votes36
Total "Not Satisfied" Votes15
Total Rank Assessments149
Average Assessed Rank
7 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • davis-trem Avatar
Ad