Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.*;JOptionPane;
- public class woodshop
- {
- public static void main(String args[])
- {
- int length;
- int width
- int drawers;
- double price;
- int userInput1;
- int userInput2;
- String userInput3;
- userInput1=JOptionPane.showInputDialog("enter your length");
- userInput1=JOptionPane.showInputDialog("enter your width");
- userInput2=JOptionPane.showInputDialog("enter the number of drawers for your table");
- userInput3=JOptionPane.showInputDialog("enter the type of wood you want used for your table");
- length=int.parseInt(userInput1);
- width=int.parseInt(userInput2);
- if (length*width >=720)
- price+50;
- else
- System.out.println("please enter your total measurement.");
- }
- // end main
Add Comment
Please, Sign In to add comment