KillerDesigner
12/16/2013 - 5:44 AM

array_exrcises.rb

1. Create an array of the days of the week

Create a variable named days_of_the_week as an array of the following:
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday


2. My calendar says the first day is Sunday...

Remove Sunday from the last postion and move it to the first position. Use array methods.


3. Create a new array of the days of the week:

The first inner array should be the weekdays
The second inner array should be the weekend days


4. Remove either the weekdays or the weekends


5. Sort the remaining days alphabetically