about | help | code help+videos | done | prefs |
classificationBasedUpon
Write a method that determines the classification of a person based upon age and the salutation. If the age is at least 21 the classification is "adult" if the salutation is "Mr." the classification is additionally "male". For this problem, there are no other classifications. classificationBasedUpon(21, "Mr.") → "adult male" classificationBasedUpon(1, "Mr.") → " male" classificationBasedUpon(21, "Ms.") → "adult" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy