using ternary to assign book

using ternary to assign book to childs age