----jGRASP exec: U:\Web\CS240_Fall_2007\Josephus Problem\November 4\Josephus_Problem_hermanjl_output\josephus We are going to creatively add the contents of our circular list to a fruit salad. Contents of the circular list: APPLE APRICOT BANANA CHERRY KIWI ORANGE PEACH PEAR PLUM RASBERRY RAWBERRY STRAWBERRY TOMATO WATERMELON What fruit should we add first: tomato TOMATO will be the first fruit added. What counter should we use to add subsequent fruits (1 - 999): 3 3 will be our counter. Adding TOMATO to the salad. Contents of the circular list: WATERMELON APPLE APRICOT BANANA CHERRY KIWI ORANGE PEACH PEAR PLUM RASBERRY RAWBERRY STRAWBERRY Contents of the fruit salad: TOMATO Adding APRICOT to the salad. Contents of the circular list: BANANA CHERRY KIWI ORANGE PEACH PEAR PLUM RASBERRY RAWBERRY STRAWBERRY WATERMELON APPLE Contents of the fruit salad: TOMATO APRICOT Adding KIWI to the salad. Contents of the circular list: ORANGE PEACH PEAR PLUM RASBERRY RAWBERRY STRAWBERRY WATERMELON APPLE BANANA CHERRY Contents of the fruit salad: TOMATO APRICOT KIWI Adding PEAR to the salad. Contents of the circular list: PLUM RASBERRY RAWBERRY STRAWBERRY WATERMELON APPLE BANANA CHERRY ORANGE PEACH Contents of the fruit salad: TOMATO APRICOT KIWI PEAR Adding RAWBERRY to the salad. Contents of the circular list: STRAWBERRY WATERMELON APPLE BANANA CHERRY ORANGE PEACH PLUM RASBERRY Contents of the fruit salad: TOMATO APRICOT KIWI PEAR RAWBERRY Adding APPLE to the salad. Contents of the circular list: BANANA CHERRY ORANGE PEACH PLUM RASBERRY STRAWBERRY WATERMELON Contents of the fruit salad: TOMATO APRICOT KIWI PEAR RAWBERRY APPLE Adding ORANGE to the salad. Contents of the circular list: PEACH PLUM RASBERRY STRAWBERRY WATERMELON BANANA CHERRY Contents of the fruit salad: TOMATO APRICOT KIWI PEAR RAWBERRY APPLE ORANGE Adding RASBERRY to the salad. Contents of the circular list: STRAWBERRY WATERMELON BANANA CHERRY PEACH PLUM Contents of the fruit salad: TOMATO APRICOT KIWI PEAR RAWBERRY APPLE ORANGE RASBERRY Adding BANANA to the salad. Contents of the circular list: CHERRY PEACH PLUM STRAWBERRY WATERMELON Contents of the fruit salad: TOMATO APRICOT KIWI PEAR RAWBERRY APPLE ORANGE RASBERRY BANANA Adding PLUM to the salad. Contents of the circular list: STRAWBERRY WATERMELON CHERRY PEACH Contents of the fruit salad: TOMATO APRICOT KIWI PEAR RAWBERRY APPLE ORANGE RASBERRY BANANA PLUM Adding CHERRY to the salad. Contents of the circular list: PEACH STRAWBERRY WATERMELON Contents of the fruit salad: TOMATO APRICOT KIWI PEAR RAWBERRY APPLE ORANGE RASBERRY BANANA PLUM CHERRY Adding WATERMELON to the salad. Contents of the circular list: PEACH STRAWBERRY Contents of the fruit salad: TOMATO APRICOT KIWI PEAR RAWBERRY APPLE ORANGE RASBERRY BANANA PLUM CHERRY WATERMELON Adding PEACH to the salad. Contents of the circular list: STRAWBERRY Contents of the fruit salad: TOMATO APRICOT KIWI PEAR RAWBERRY APPLE ORANGE RASBERRY BANANA PLUM CHERRY WATERMELON PEACH Adding STRAWBERRY to the salad. Contents of the circular list: -- empty -- Contents of the fruit salad: TOMATO APRICOT KIWI PEAR RAWBERRY APPLE ORANGE RASBERRY BANANA PLUM CHERRY WATERMELON PEACH STRAWBERRY This program has ended normally. ----jGRASP: operation complete.