Guest User

Untitled

a guest
Jul 15th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.81 KB | None | 0 0
  1. import javax.swing.*;JOptionPane;
  2. public class woodshop
  3. {
  4.  
  5.    public static void main(String args[])
  6.    {
  7.       int length;
  8.       int width
  9.       int drawers;
  10.       double price;
  11.       int userInput1;
  12.       int userInput2;
  13.       String userInput3;
  14.  
  15.       userInput1=JOptionPane.showInputDialog("enter your length");
  16.  
  17.       userInput1=JOptionPane.showInputDialog("enter your width");
  18.  
  19.       userInput2=JOptionPane.showInputDialog("enter the number of drawers for your table");
  20.  
  21.       userInput3=JOptionPane.showInputDialog("enter the type of wood you want used for your table");
  22.  
  23.       length=int.parseInt(userInput1);
  24.       width=int.parseInt(userInput2);
  25.  
  26.       if (length*width >=720)
  27.          price+50;
  28.       else
  29.          System.out.println("please enter your total measurement.");
  30.    }
  31.    // end main
Add Comment
Please, Sign In to add comment