/**
 * Parkland Student Program
 *   - use this file to write your code where
 *     indicated below..
 *
 * @author  <-- put your name here 
 * @Parkland College, Csc 123
 */
import java.awt.*;
public class ParklandStudentProgram
{
	public ParklandStudentProgram()
	{
	}
	public void prepare(Frame frame, Label prompt)
	{
 		frame.setTitle("Parkland Student Program");
		// insert your code before the next curly brace

		prompt.setText("I'm the Label");
	}
	
	public void respond(Frame frame, TextField input1, TextField input2, TextField input3, TextArea result)
	{
	    // insert your code between these curly braces
	    String userString;
            double userDouble;    
        	frame.setSize(469, 286);
        try 
        {
    	    //input.setEditable(false);    
            userString = input1.getText();
  
            userDouble = Double.parseDouble(userString); 
            userDouble = userDouble * 2;
    	    result.setText("" + userDouble);
        }
        catch (NumberFormatException ex)
        {
            result.setText("Not a floating point number");
        }
}

 }