 /*****************************************************************
 * Program4 : GUI Calculator
 * Programmer: Insert your name here 
 * 
 * Due Date: Insert Due Date
 * Class: COMP 110-01         Instructor: Tyler Johnson
 *         
 * Pledge: I have neither given nor received unauthorized aid
 * on this program.     (signature on file)
 *
 * Description:  This program creates a GUI-based calculator
 *				 that allows the user to input expressions
 *				 of the form 
 *				
 *				 	operand1 operator operand2
 *
 *				 The result of the expression is computed and displayed
 *				 in a message box.  The following operators are
 *				 supported.
 *
 *				 	+ addition
 *				 	- subtraction
 *				 	* multiplication
 *				 	/ division
 *
 * Input: An expression of the form operand1 operator operand2
 *
 * Output: The result of the expression in a new message box
 *
 ******************************************************************/

import javax.swing.*;

public class GUICalculator  {

	public static void main(String[] args)  {
		
		String inputString; //the string entered by the user
		String outputString = "Replace with your output."; //WRITE YOUR OUTPUT INTO THIS VARIABLE
		
		//get input from the user
		inputString = JOptionPane.showInputDialog("Welcome to the GUI Calculator!\n\nThe following operations are supported:\n+(addition),-(subtraction)," +
													"*(multiplication),/(division)\n\nEnter calculation separated by spaces and press OK:\n(Example: 2.5 + 3)");
													
		//YOUR CODE & METHOD CALLS HERE

		//display the result
		JOptionPane.showMessageDialog(null, outputString);
		System.exit(0);
	}
}