Wednesday, February 4, 2009

/* Programmer : Dandy A. Macaubos
     Program name : Cube
     Date Started : February 4,2009
     Date Finished : February 4,2009
     Purpose : To have a program that uses  encapsulation
     Instructor : Dony Dongiapon
     Subject : IT134
*/

import javax.swing.JOptionPane;

public class CubeTester{
 
  public static void main(String []args){

 double width;
 double height;
 double length;

 width=Integer.parseInt(JOptionPane.showInputDialog("Enter width value"));
 height=Integer.parseInt(JOptionPane.showInputDialog("Enter the value of the height"));
 length=Integer.parseInt(JOptionPane.showInputDialog("Enter the value of the length"));

 
 
 }
}

No comments:

Post a Comment