----jGRASP exec: C:\Documents and Settings\adamses\Desktop\Fall 07 CS 240\Assignment10\October 16\Assignment10_smith3at_ourQueue\testQueue This will test a Queue program. 5 was added to the queue 42 was added to the queue The First Element of this Queue is: 5 3 was added to the queue 4 was added to the queue 5 was added to the queue 6 was added to the queue 7 was added to the queue 8 was added to the queue 9 was added to the queue 10 was added to the queue 11 was added to the queue 12 was added to the queue 13 was added to the queue 14 was added to the queue 15 was added to the queue 16 was added to the queue 17 was added to the queue 18 was added to the queue 19 was added to the queue 20 was added to the queue Removing : 5 from the queue. The Queue is of size: 19 The Queue is not Empty 5 was removed from the queue The Queue is not Empty 42 was removed from the queue The Queue is not Empty 3 was removed from the queue The Queue is not Empty 4 was removed from the queue The Queue is not Empty 5 was removed from the queue The Queue is not Empty 6 was removed from the queue The Queue is not Empty 7 was removed from the queue The Queue is not Empty 8 was removed from the queue The Queue is not Empty 9 was removed from the queue The Queue is not Empty 10 was removed from the queue The Queue is not Empty 11 was removed from the queue The Queue is not Empty 12 was removed from the queue The Queue is not Empty 13 was removed from the queue The Queue is not Empty 14 was removed from the queue The Queue is not Empty 15 was removed from the queue The Queue is not Empty 16 was removed from the queue The Queue is not Empty 17 was removed from the queue The Queue is not Empty 18 was removed from the queue The Queue is not Empty 19 was removed from the queue The Queue is Empty ----jGRASP: operation complete. ----jGRASP exec: C:\Documents and Settings\adamses\Desktop\Fall 07 CS 240\Assignment10\October 21\Assignment10_rodgerjm_testQueue\testQueue Welcome to Assignment 10 Please Choose one of the following options, by entering a number corresponding to what you would like to do: 1. Add Something to the Queue 2. Remove Something from the Queue and return it 3. Simply Remove something from the Queue 4. See how many elements are in the Queue 5. Display the first element in the Queue 6. See if the Queue is empty 7. See if the Queue is full 8. Display all elements in the Queue 9. See if a particular element is in the Queue 10. Quit Please enter the number here: 4 The queue contains 0 elements ____________________________________________________ Please Choose one of the following options, by entering a number corresponding to what you would like to do: 1. Add Something to the Queue 2. Remove Something from the Queue and return it 3. Simply Remove something from the Queue 4. See how many elements are in the Queue 5. Display the first element in the Queue 6. See if the Queue is empty 7. See if the Queue is full 8. Display all elements in the Queue 9. See if a particular element is in the Queue 10. Quit Please enter the number here: 6 The queue is empty ____________________________________________________ Please Choose one of the following options, by entering a number corresponding to what you would like to do: 1. Add Something to the Queue 2. Remove Something from the Queue and return it 3. Simply Remove something from the Queue 4. See how many elements are in the Queue 5. Display the first element in the Queue 6. See if the Queue is empty 7. See if the Queue is full 8. Display all elements in the Queue 9. See if a particular element is in the Queue 10. Quit Please enter the number here: 7 The queue is not full ____________________________________________________ Please Choose one of the following options, by entering a number corresponding to what you would like to do: 1. Add Something to the Queue 2. Remove Something from the Queue and return it 3. Simply Remove something from the Queue 4. See how many elements are in the Queue 5. Display the first element in the Queue 6. See if the Queue is empty 7. See if the Queue is full 8. Display all elements in the Queue 9. See if a particular element is in the Queue 10. Quit Please enter the number here: 1 What integer would you like to add? : -5 -5 has been added ____________________________________________________ Please Choose one of the following options, by entering a number corresponding to what you would like to do: 1. Add Something to the Queue 2. Remove Something from the Queue and return it 3. Simply Remove something from the Queue 4. See how many elements are in the Queue 5. Display the first element in the Queue 6. See if the Queue is empty 7. See if the Queue is full 8. Display all elements in the Queue 9. See if a particular element is in the Queue 10. Quit Please enter the number here: 1 What integer would you like to add? : 0 0 has been added ____________________________________________________ Please Choose one of the following options, by entering a number corresponding to what you would like to do: 1. Add Something to the Queue 2. Remove Something from the Queue and return it 3. Simply Remove something from the Queue 4. See how many elements are in the Queue 5. Display the first element in the Queue 6. See if the Queue is empty 7. See if the Queue is full 8. Display all elements in the Queue 9. See if a particular element is in the Queue 10. Quit Please enter the number here: 1 What integer would you like to add? : 999 999 has been added ____________________________________________________ Please Choose one of the following options, by entering a number corresponding to what you would like to do: 1. Add Something to the Queue 2. Remove Something from the Queue and return it 3. Simply Remove something from the Queue 4. See how many elements are in the Queue 5. Display the first element in the Queue 6. See if the Queue is empty 7. See if the Queue is full 8. Display all elements in the Queue 9. See if a particular element is in the Queue 10. Quit Please enter the number here: 1 What integer would you like to add? : 6 6 has been added ____________________________________________________ Please Choose one of the following options, by entering a number corresponding to what you would like to do: 1. Add Something to the Queue 2. Remove Something from the Queue and return it 3. Simply Remove something from the Queue 4. See how many elements are in the Queue 5. Display the first element in the Queue 6. See if the Queue is empty 7. See if the Queue is full 8. Display all elements in the Queue 9. See if a particular element is in the Queue 10. Quit Please enter the number here: 4 The queue contains 0 elements ____________________________________________________ Please Choose one of the following options, by entering a number corresponding to what you would like to do: 1. Add Something to the Queue 2. Remove Something from the Queue and return it 3. Simply Remove something from the Queue 4. See how many elements are in the Queue 5. Display the first element in the Queue 6. See if the Queue is empty 7. See if the Queue is full 8. Display all elements in the Queue 9. See if a particular element is in the Queue 10. Quit Please enter the number here: 5 Queue is empty - cannont view any elements ____________________________________________________ Please Choose one of the following options, by entering a number corresponding to what you would like to do: 1. Add Something to the Queue 2. Remove Something from the Queue and return it 3. Simply Remove something from the Queue 4. See how many elements are in the Queue 5. Display the first element in the Queue 6. See if the Queue is empty 7. See if the Queue is full 8. Display all elements in the Queue 9. See if a particular element is in the Queue 10. Quit Please enter the number here: 8 Queue is empty - cannont view any elements ____________________________________________________ Please Choose one of the following options, by entering a number corresponding to what you would like to do: 1. Add Something to the Queue 2. Remove Something from the Queue and return it 3. Simply Remove something from the Queue 4. See how many elements are in the Queue 5. Display the first element in the Queue 6. See if the Queue is empty 7. See if the Queue is full 8. Display all elements in the Queue 9. See if a particular element is in the Queue 10. Quit Please enter the number here: 9 What element would you like to search for? : -5 The element is not in the Queue ____________________________________________________ Please Choose one of the following options, by entering a number corresponding to what you would like to do: 1. Add Something to the Queue 2. Remove Something from the Queue and return it 3. Simply Remove something from the Queue 4. See how many elements are in the Queue 5. Display the first element in the Queue 6. See if the Queue is empty 7. See if the Queue is full 8. Display all elements in the Queue 9. See if a particular element is in the Queue 10. Quit Please enter the number here: 9 What element would you like to search for? : 2 The element is not in the Queue ____________________________________________________ Please Choose one of the following options, by entering a number corresponding to what you would like to do: 1. Add Something to the Queue 2. Remove Something from the Queue and return it 3. Simply Remove something from the Queue 4. See how many elements are in the Queue 5. Display the first element in the Queue 6. See if the Queue is empty 7. See if the Queue is full 8. Display all elements in the Queue 9. See if a particular element is in the Queue 10. Quit Please enter the number here: 2 Queue is empty - cannont remove any elements ____________________________________________________ Please Choose one of the following options, by entering a number corresponding to what you would like to do: 1. Add Something to the Queue 2. Remove Something from the Queue and return it 3. Simply Remove something from the Queue 4. See how many elements are in the Queue 5. Display the first element in the Queue 6. See if the Queue is empty 7. See if the Queue is full 8. Display all elements in the Queue 9. See if a particular element is in the Queue 10. Quit Please enter the number here: 5 Queue is empty - cannont view any elements ____________________________________________________ Please Choose one of the following options, by entering a number corresponding to what you would like to do: 1. Add Something to the Queue 2. Remove Something from the Queue and return it 3. Simply Remove something from the Queue 4. See how many elements are in the Queue 5. Display the first element in the Queue 6. See if the Queue is empty 7. See if the Queue is full 8. Display all elements in the Queue 9. See if a particular element is in the Queue 10. Quit Please enter the number here: 8 Queue is empty - cannont view any elements ____________________________________________________ Please Choose one of the following options, by entering a number corresponding to what you would like to do: 1. Add Something to the Queue 2. Remove Something from the Queue and return it 3. Simply Remove something from the Queue 4. See how many elements are in the Queue 5. Display the first element in the Queue 6. See if the Queue is empty 7. See if the Queue is full 8. Display all elements in the Queue 9. See if a particular element is in the Queue 10. Quit Please enter the number here: 10 This test program has successfully ended ----jGRASP: operation complete.