All pastes #931391 Raw Edit

Something

public text v1 · immutable
·published 2008-03-07 03:44 UTC
rendered paste body
import javax.swing.*;
public class Assignment3 {


	public static void main(String[] args) {

		  String book = JOptionPane.showInputDialog("Enter Book Cost");
		  boolean ship  = false;
		  int a = JOptionPane.showConfirmDialog(null,"Are you shipping the book?","Shipping",JOptionPane.YES_NO_OPTION);
		  if (a==0){ship= true;}
		  String type = JOptionPane.showInputDialog("What type of customer are you?\n st=student g=gold\n s=silver f=faculty\n o=ordinary");

		  double cost = Double.parseDouble(book);

		  double result = Bill.total ( type, cost, ship);
		  JOptionPane.showMessageDialog(null, "Your book Total is"+" "+"$"+result );
	}

}