Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. /*
  2. Programmer: Jessica Sparks
  3. Date: March 22, 2017
  4. Filename: DownloadTimeApp.java
  5. Purpose: This program will calculate the estimated time to download the file and will display information to the user.
  6. */
  7. import javax.swing.JOptionPane;
  8.  
  9. public class DownloadTimeApp
  10. {
  11. public static void main(String args[])
  12. {
  13. String WELCOME_LINE = "Welcome to the Download Time Estimator";
  14. fileSizeInputString;
  15. downloadSpeedString;
  16. totalInSecondsString;
  17. totalInMinutesString;
  18. downloadMinutesString;
  19. downloadHoursString;
  20. downloadSecondsString;
  21.  
  22.  
  23. int fileSizeInput = Integer.parseInt();
  24. int downloadSpeedString = Integer.parseInt();
  25.  
  26. // Get user input
  27. fileSizeInput = JOptionPane.showInputDialog("Enter file Size (MB):");
  28.  
  29. // Get user input
  30. downloadSpeedString = JOptionPane.showInputDialog("Enter Download speed (MB/Sec):");
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement