Question: Problem 3: convert an Age (number) to an Age Range Category (string) For statistical reasons, we are interested in taking literal ages like 23, 26,

Problem 3: convert an Age (number) to an Age
Problem 3: convert an Age (number) to an Age Range Category (string) For statistical reasons, we are interested in taking literal ages like 23, 26, etc and converting them to the string '20 to 29 years' so that we can do g uping. The ageToRange () function takes an age as a Number and returns the app priate age range category string: ageToRange (21) - -> returns '20 to 29 years' ageToRange (29) - -> returns '20 to 29 years' ageToRange (30) - -> returns '30 to 39 years' The age range categories you need to support are as follows

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 Mathematics Questions!