Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Just need a little input and help please!

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Just need a little input and help please!

    This is my first time really working with Java and I am in a class that has us writing Java codes. Here is what I am stuck on in the assignment:

    Add a code that calculates the hours, minutes, and seconds needed to download this file with a 56K analog modem. To do the calculations, assume that a 56K modem can transfer data at a rate of 5.2 kilobytes (KB) per second. Then, add the code for displaying the results.

    I am having trouble figuring out how to write this part of the code. Can someone please help me??

    Thanks in advance.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Just need a little input and help please!

    Can you write the needed formulas and/or equations needed to compute the results manually?
    Some basics: 1 hour = 60 minutes and 1 minute = 60 seconds.
    Given the seconds, you can compute the hours, minutes and seconds.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Best Way for Yes or No Input
    By Levica in forum Java Theory & Questions
    Replies: 1
    Last Post: January 11th, 2013, 02:48 PM
  2. Input
    By DeFactos in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: April 18th, 2011, 04:05 AM
  3. Input method
    By RyanToast in forum What's Wrong With My Code?
    Replies: 3
    Last Post: February 2nd, 2011, 06:07 PM
  4. Getting input
    By BuhRock in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 22nd, 2010, 10:30 AM
  5. [SOLVED] allow a new input, dicarding the last mismatch input without terminating the program
    By voltaire in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 9th, 2010, 04:44 AM