MainMenu.java 1.0KB

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * Scientific Calculator Lab
  3. *
  4. * This class will create the instance of the "Main Menu"
  5. *
  6. * This serves to display the options the user can take to use the calculator
  7. *
  8. * 1: Basic Menu - 4 basic functions + - * /
  9. * 2: Advanced Menu - Exponents & inverse
  10. * 3: Scientific Menu - Base Conversions, Memory Functions, Trig Options
  11. *
  12. * The point of this method is for the MAIN Application while loop.
  13. * Whenever the user opens the calculator OR completes an action
  14. * in the submenus, the calculator will return to this main menu.
  15. */
  16. public class MainMenu
  17. {
  18. /**
  19. * Method to display the main menu
  20. */
  21. public void mainMenuDisplay()
  22. {
  23. Console.println("Calculator Options:"
  24. + "\n1: Basic Calculator (+ - * /)"
  25. + "\n2: Advanced Calculator (Exponential Functions)"
  26. + "\n3: Scientific Functions (Base Conversion, Memory, Trigonometry)"
  27. + "\n4: Exit the calculator");
  28. }
  29. }