All pastes #402163 Raw Edit

Someone

public text v1 · immutable
·published 2007-03-19 19:15 UTC
rendered paste body
import javax.swing.JOptionPane;
public class Bscottexam3 
{

	/**
	 *By Brandon Scott
	 * Written on 3/19/07
	 *Sec. 1C
	 */
	 public static void main(String[] args)
	{
	String d1String = JOptionPane.showInputDialog(null,
			"Enter number for variable one: ",
			"D One",
			3);
			
	double d1Double = Double.parseDouble(d1String);		
	
	
	String d2String = JOptionPane.showInputDialog(null,
			"Enter number for variable two: ",
			"D Two",
			3);
			
	double d2Double = Double.parseDouble(d2String);		
	
	
	String d3String = JOptionPane.showInputDialog(null,
			"Enter number for variable three: ",
			"D Three",
			3);
			
	double d3Double = Double.parseDouble(d3String);		
	
	
	String d4String = JOptionPane.showInputDialog(null,
			"Enter number for variable four: ",
			"D Four",
			3);
			
	double d4Double = Double.parseDouble(d4String);
	
	String d5Str;
	
	String resultStr;
			
	double d5Double = Double.parseDouble(d5String);
		
	double resultDouble = Double.parseDouble(resultString);
	
	d5Double = (d1Double+d2Double)/d3Double*d4Double);
	
	resultDouble = (d3Double/d4Double);
	
		JOptionPane.showMessageDialog(null,"The result is: ",
		"Display Message",
		JOptionPane.INFORMATION_MESSAGE);
	
	
	}
}