Draft
Average Age of Females
344davis-trem
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
Similar Kata:
Stats:
Created | Mar 8, 2018 |
Warriors Trained | 569 |
Total Skips | 40 |
Total Code Submissions | 1372 |
Total Times Completed | 344 |
JavaScript Completions | 344 |
Total Stars | 3 |
% of votes with a positive feedback rating | 79% of 159 |
Total "Very Satisfied" Votes | 108 |
Total "Somewhat Satisfied" Votes | 36 |
Total "Not Satisfied" Votes | 15 |
Total Rank Assessments | 149 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 8 kyu |