you are visiting hawaii and plan to stay 3 days. you want to see the beach, shop at hoonululu and see mauna loa.how many ways can you arrange your schedule for the three days so taht you do 1 activity each day?
Beach | Shop | Mauna Loa |
Beach | Mauna Loa | Shop |
Shop | Beach | Mauna Loa |
Shop | Mauna Loa | Beach |
Mauna Loa | Beach | Shop |
Mauna Loa | Shop | Beach |
There are 3! (3*2*1), or 6 ways to plan the family vacation. The factorial function would be useful here, as you wouldn't have to list all the possibilities, but instead calculate 3!.