----jGRASP exec: C:\Documents and Settings\Michael\My Documents\Programming\Java\CS239\CS 240\Assignment 4\TestFractions Welcome. This program allows the user to create and manipulate fractions. What would you like to do? 1. Make a Fraction 2. Return the Numerator of a Fraction 3. Return the Denominator of a Fraction 4. Add Two Fractions 5. Subtract Two Fractions 6. Multiply Two Fractions 7. Divide Two Fractions 8. See if Two Fractions are Equal 9. See if a Fraction is Less Than Another Fraction 10. See if a Fraction is Greater Than or Equal to Another Fraction 11. Reduce a Fraction 12. Convert a Fraction to an Integer 13. Convert an Integer to a Fraction Please enter a number corresponding to one of the options (1-13) or enter any other integer to exit the program: 1 Please enter the numerator of the fraction: 1 Please enter the denominator of the fraction: 2 The fraction is 1/2 ----jGRASP: operation complete. ----jGRASP exec: C:\Documents and Settings\Michael\My Documents\Programming\Java\CS239\CS 240\Assignment 4\TestFractions Welcome. This program allows the user to create and manipulate fractions. What would you like to do? 1. Make a Fraction 2. Return the Numerator of a Fraction 3. Return the Denominator of a Fraction 4. Add Two Fractions 5. Subtract Two Fractions 6. Multiply Two Fractions 7. Divide Two Fractions 8. See if Two Fractions are Equal 9. See if a Fraction is Less Than Another Fraction 10. See if a Fraction is Greater Than or Equal to Another Fraction 11. Reduce a Fraction 12. Convert a Fraction to an Integer 13. Convert an Integer to a Fraction Please enter a number corresponding to one of the options (1-13) or enter any other integer to exit the program: 4 Please enter the numerator of the first fraction: 1 Please enter the denominator of the first fraction: 2 Please enter the numerator of the second fraction: 3 Please enter the denominator of the second fraction: 4 1/2 + 3/4 = 5/4 ----jGRASP: operation complete. ----jGRASP exec: C:\Documents and Settings\Michael\My Documents\Programming\Java\CS239\CS 240\Assignment 4\TestFractions Welcome. This program allows the user to create and manipulate fractions. What would you like to do? 1. Make a Fraction 2. Return the Numerator of a Fraction 3. Return the Denominator of a Fraction 4. Add Two Fractions 5. Subtract Two Fractions 6. Multiply Two Fractions 7. Divide Two Fractions 8. See if Two Fractions are Equal 9. See if a Fraction is Less Than Another Fraction 10. See if a Fraction is Greater Than or Equal to Another Fraction 11. Reduce a Fraction 12. Convert a Fraction to an Integer 13. Convert an Integer to a Fraction Please enter a number corresponding to one of the options (1-13) or enter any other integer to exit the program: 5 Please enter the numerator of the first fraction: 1 Please enter the denominator of the first fraction: 0 The denominator cannot be 0. Please enter the numerator of the first fraction: 1 Please enter the denominator of the first fraction: 2 Please enter the numerator of the second fraction: 3 Please enter the denominator of the second fraction: 4 1/2 - 3/4 = -1/4 ----jGRASP: operation complete. ----jGRASP exec: C:\Documents and Settings\Michael\My Documents\Programming\Java\CS239\CS 240\Assignment 4\TestFractions Welcome. This program allows the user to create and manipulate fractions. What would you like to do? 1. Make a Fraction 2. Return the Numerator of a Fraction 3. Return the Denominator of a Fraction 4. Add Two Fractions 5. Subtract Two Fractions 6. Multiply Two Fractions 7. Divide Two Fractions 8. See if Two Fractions are Equal 9. See if a Fraction is Less Than Another Fraction 10. See if a Fraction is Greater Than or Equal to Another Fraction 11. Reduce a Fraction 12. Convert a Fraction to an Integer 13. Convert an Integer to a Fraction Please enter a number corresponding to one of the options (1-13) or enter any other integer to exit the program: 6 Please enter the numerator of the first fraction: a 'a' is an invalid entry.Please enter the numerator of the first fraction: 1 Please enter the denominator of the first fraction: 2 Please enter the numerator of the second fraction: 3 Please enter the denominator of the second fraction: 4 1/2 * 3/4 = 3/8 ----jGRASP: operation complete. ----jGRASP exec: C:\Documents and Settings\Michael\My Documents\Programming\Java\CS239\CS 240\Assignment 4\TestFractions Welcome. This program allows the user to create and manipulate fractions. What would you like to do? 1. Make a Fraction 2. Return the Numerator of a Fraction 3. Return the Denominator of a Fraction 4. Add Two Fractions 5. Subtract Two Fractions 6. Multiply Two Fractions 7. Divide Two Fractions 8. See if Two Fractions are Equal 9. See if a Fraction is Less Than Another Fraction 10. See if a Fraction is Greater Than or Equal to Another Fraction 11. Reduce a Fraction 12. Convert a Fraction to an Integer 13. Convert an Integer to a Fraction Please enter a number corresponding to one of the options (1-13) or enter any other integer to exit the program: 7 Please enter the numerator of the first fraction: 1 Please enter the denominator of the first fraction: 2 Please enter the numerator of the second fraction: 3 Please enter the denominator of the second fraction: 4 1/2 / 3/4 = 2/3 ----jGRASP: operation complete. ----jGRASP exec: C:\Documents and Settings\Michael\My Documents\Programming\Java\CS239\CS 240\Assignment 4\TestFractions Welcome. This program allows the user to create and manipulate fractions. What would you like to do? 1. Make a Fraction 2. Return the Numerator of a Fraction 3. Return the Denominator of a Fraction 4. Add Two Fractions 5. Subtract Two Fractions 6. Multiply Two Fractions 7. Divide Two Fractions 8. See if Two Fractions are Equal 9. See if a Fraction is Less Than Another Fraction 10. See if a Fraction is Greater Than or Equal to Another Fraction 11. Reduce a Fraction 12. Convert a Fraction to an Integer 13. Convert an Integer to a Fraction Please enter a number corresponding to one of the options (1-13) or enter any other integer to exit the program: 8 Please enter the numerator of the first fraction: 1 Please enter the denominator of the first fraction: 2 Please enter the numerator of the second fraction: 2 Please enter the denominator of the second fraction: 3 1/2 and 2/3 are not equal ----jGRASP: operation complete. ----jGRASP exec: C:\Documents and Settings\Michael\My Documents\Programming\Java\CS239\CS 240\Assignment 4\TestFractions Welcome. This program allows the user to create and manipulate fractions. What would you like to do? 1. Make a Fraction 2. Return the Numerator of a Fraction 3. Return the Denominator of a Fraction 4. Add Two Fractions 5. Subtract Two Fractions 6. Multiply Two Fractions 7. Divide Two Fractions 8. See if Two Fractions are Equal 9. See if a Fraction is Less Than Another Fraction 10. See if a Fraction is Greater Than or Equal to Another Fraction 11. Reduce a Fraction 12. Convert a Fraction to an Integer 13. Convert an Integer to a Fraction Please enter a number corresponding to one of the options (1-13) or enter any other integer to exit the program: 8 Please enter the numerator of the first fraction: 1 Please enter the denominator of the first fraction: 2 Please enter the numerator of the second fraction: 1 Please enter the denominator of the second fraction: 2 1/2 and 1/2 are equal ----jGRASP: operation complete. ----jGRASP exec: C:\Documents and Settings\Michael\My Documents\Programming\Java\CS239\CS 240\Assignment 4\TestFractions Welcome. This program allows the user to create and manipulate fractions. What would you like to do? 1. Make a Fraction 2. Return the Numerator of a Fraction 3. Return the Denominator of a Fraction 4. Add Two Fractions 5. Subtract Two Fractions 6. Multiply Two Fractions 7. Divide Two Fractions 8. See if Two Fractions are Equal 9. See if a Fraction is Less Than Another Fraction 10. See if a Fraction is Greater Than or Equal to Another Fraction 11. Reduce a Fraction 12. Convert a Fraction to an Integer 13. Convert an Integer to a Fraction Please enter a number corresponding to one of the options (1-13) or enter any other integer to exit the program: 8 Please enter the numerator of the first fraction: 1 Please enter the denominator of the first fraction: 2 Please enter the numerator of the second fraction: 2 Please enter the denominator of the second fraction: 4 1/2 and 2/4 are equal ----jGRASP: operation complete. ----jGRASP exec: C:\Documents and Settings\Michael\My Documents\Programming\Java\CS239\CS 240\Assignment 4\TestFractions Welcome. This program allows the user to create and manipulate fractions. What would you like to do? 1. Make a Fraction 2. Return the Numerator of a Fraction 3. Return the Denominator of a Fraction 4. Add Two Fractions 5. Subtract Two Fractions 6. Multiply Two Fractions 7. Divide Two Fractions 8. See if Two Fractions are Equal 9. See if a Fraction is Less Than Another Fraction 10. See if a Fraction is Greater Than or Equal to Another Fraction 11. Reduce a Fraction 12. Convert a Fraction to an Integer 13. Convert an Integer to a Fraction Please enter a number corresponding to one of the options (1-13) or enter any other integer to exit the program: 9 Please enter the numerator of the first fraction: 1 Please enter the denominator of the first fraction: 2 Please enter the numerator of the second fraction: 3 Please enter the denominator of the second fraction: 4 1/2 is less than 3/4 ----jGRASP: operation complete. ----jGRASP exec: C:\Documents and Settings\Michael\My Documents\Programming\Java\CS239\CS 240\Assignment 4\TestFractions Welcome. This program allows the user to create and manipulate fractions. What would you like to do? 1. Make a Fraction 2. Return the Numerator of a Fraction 3. Return the Denominator of a Fraction 4. Add Two Fractions 5. Subtract Two Fractions 6. Multiply Two Fractions 7. Divide Two Fractions 8. See if Two Fractions are Equal 9. See if a Fraction is Less Than Another Fraction 10. See if a Fraction is Greater Than or Equal to Another Fraction 11. Reduce a Fraction 12. Convert a Fraction to an Integer 13. Convert an Integer to a Fraction Please enter a number corresponding to one of the options (1-13) or enter any other integer to exit the program: 10 Please enter the numerator of the first fraction: 1 Please enter the denominator of the first fraction: 2 Please enter the numerator of the second fraction: 3 Please enter the denominator of the second fraction: 4 1/2 is not greater than or equal to 3/4 ----jGRASP: operation complete. ----jGRASP exec: C:\Documents and Settings\Michael\My Documents\Programming\Java\CS239\CS 240\Assignment 4\TestFractions Welcome. This program allows the user to create and manipulate fractions. What would you like to do? 1. Make a Fraction 2. Return the Numerator of a Fraction 3. Return the Denominator of a Fraction 4. Add Two Fractions 5. Subtract Two Fractions 6. Multiply Two Fractions 7. Divide Two Fractions 8. See if Two Fractions are Equal 9. See if a Fraction is Less Than Another Fraction 10. See if a Fraction is Greater Than or Equal to Another Fraction 11. Reduce a Fraction 12. Convert a Fraction to an Integer 13. Convert an Integer to a Fraction Please enter a number corresponding to one of the options (1-13) or enter any other integer to exit the program: 11 Please enter the numerator of the fraction: 9 Please enter the denominator of the fraction: 12 9/12 reduces to 3/4 ----jGRASP: operation complete. ----jGRASP exec: C:\Documents and Settings\Michael\My Documents\Programming\Java\CS239\CS 240\Assignment 4\TestFractions Welcome. This program allows the user to create and manipulate fractions. What would you like to do? 1. Make a Fraction 2. Return the Numerator of a Fraction 3. Return the Denominator of a Fraction 4. Add Two Fractions 5. Subtract Two Fractions 6. Multiply Two Fractions 7. Divide Two Fractions 8. See if Two Fractions are Equal 9. See if a Fraction is Less Than Another Fraction 10. See if a Fraction is Greater Than or Equal to Another Fraction 11. Reduce a Fraction 12. Convert a Fraction to an Integer 13. Convert an Integer to a Fraction Please enter a number corresponding to one of the options (1-13) or enter any other integer to exit the program: 12 Please enter the numerator of the fraction: 5 Please enter the denominator of the fraction: 1 5/1 converts to 5 ----jGRASP: operation complete. ----jGRASP exec: C:\Documents and Settings\Michael\My Documents\Programming\Java\CS239\CS 240\Assignment 4\TestFractions Welcome. This program allows the user to create and manipulate fractions. What would you like to do? 1. Make a Fraction 2. Return the Numerator of a Fraction 3. Return the Denominator of a Fraction 4. Add Two Fractions 5. Subtract Two Fractions 6. Multiply Two Fractions 7. Divide Two Fractions 8. See if Two Fractions are Equal 9. See if a Fraction is Less Than Another Fraction 10. See if a Fraction is Greater Than or Equal to Another Fraction 11. Reduce a Fraction 12. Convert a Fraction to an Integer 13. Convert an Integer to a Fraction Please enter a number corresponding to one of the options (1-13) or enter any other integer to exit the program: 13 Please enter an integer to be converted into a fraction: 15 15 converts to 15/1 ----jGRASP: operation complete.