Sorting Children's Names
Explore how to create a Ruby program that accepts multiple children's names, stores them dynamically in an array, and sorts them alphabetically. Understand how to control program flow with loops, manage array methods like adding elements and sorting, and format output effectively. This lesson helps build foundational skills in handling composite data types and performing common operations on arrays.
We'll cover the following...
We'll cover the following...
Array
Enter child names in class: (0 to finish):DominicCourtneyAnnaAngelaEllaTobyEmma0Children names in order:Angela, Anna, Courtney, Dominic, Ella, Emma, Toby
Sorting children's names