Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Programmer: Jessica Sparks
- Date: March 22, 2017
- Filename: DownloadTimeApp.java
- Purpose: This program will calculate the estimated time to download the file and will display information to the user.
- */
- import javax.swing.JOptionPane;
- public class DownloadTimeApp
- {
- public static void main(String args[])
- {
- String WELCOME_LINE = "Welcome to the Download Time Estimator";
- fileSizeInputString;
- downloadSpeedString;
- totalInSecondsString;
- totalInMinutesString;
- downloadMinutesString;
- downloadHoursString;
- downloadSecondsString;
- int fileSizeInput = Integer.parseInt();
- int downloadSpeedString = Integer.parseInt();
- // Get user input
- fileSizeInput = JOptionPane.showInputDialog("Enter file Size (MB):");
- // Get user input
- downloadSpeedString = JOptionPane.showInputDialog("Enter Download speed (MB/Sec):");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement