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 3 of 3

Thread: Java assignment help!

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

    Default Java assignment help!

    as2.pdf Ok so I attatched my assignment I completed question one very easily question two I completed except for the brackets part I was not sure how to single out the brackets as a substring. But what I really need help with is question three. So I know how to get the input from the user but I have no sweet clue how to add them. It says that if seconds goes over sixty it has to go onto minutes and so on I am really stumped and this is far more advanced than anything we have coveredin class so help would be greatly appreciated!


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,122
    My Mood
    Mellow
    Thanks
    186
    Thanked 658 Times in 645 Posts

    Default Re: Java assignment help!

    Copy and paste your questions into a post, but don't do it without including your best attempt at answering them, or the thread will be sent into the cornfield.

  3. #3
    Junior Member
    Join Date
    Sep 2013
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java assignment help!

    import java.util.Scanner;
    public class Problem3
    {
    public static void main(String[]args)
    {
    Scanner in = new Scanner(System.in);
    String DMS1, DMS2;
    int degrees1, degrees2, minutes1, minutes2, seconds1, seconds2;

    System.out.print("Angle 1 (degrees minutes seconds) ? ");
    degrees1 = in.nextInt();
    minutes1 = in.nextInt();
    seconds1 = in.nextInt();

    System.out.print("Angle 2 (degrees minutes seconds) ? ");
    degrees2 = in.nextInt();
    minutes2 = in.nextInt();
    seconds2 = in.nextInt();


    }
    }

    This is what I have so far

Similar Threads

  1. Replies: 8
    Last Post: February 12th, 2013, 04:45 AM
  2. Java assignment help
    By Senonzakura21 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 14th, 2011, 08:38 PM
  3. assignment troubles polymorphism (guide for assignment included)
    By tdawg422 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 8th, 2011, 10:01 AM
  4. my java assignment -- please help
    By java_beginner in forum Java Theory & Questions
    Replies: 6
    Last Post: May 20th, 2010, 08:32 AM
  5. Replies: 1
    Last Post: February 22nd, 2010, 07:20 AM