Results 1 to 8 of 8
  1. #1
    alisia is offline Member
    Join Date
    Dec 2011
    Posts
    3
    Rep Power
    0

    Default I beg you, help me with these tasks in Java!

    1. Write a program to do while loop calculated values ​​of the expressions for the values ​​of x from 1 to 10 with step 0.5!



    2. Write a program that accounts for the son of alpha angle alpha between 0 and 360 degrees in steps of 30 degrees!

    3. Write a program to do while loop calculated values ​​of the expressions for the value of x from 1 to 10.

    Please, help me and thank you very much!

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default Re: I beg you, help me with these tasks in Java!

    Quote Originally Posted by alisia View Post
    1. Write a program to do while loop calculated values ​​of the expressions for the values ​​of x from 1 to 10 with step 0.5!



    2. Write a program that accounts for the son of alpha angle alpha between 0 and 360 degrees in steps of 30 degrees!

    3. Write a program to do while loop calculated values ​​of the expressions for the value of x from 1 to 10.

    Please, help me and thank you very much!
    I think that I speak for all in wishing you much luck with your assignment.

    However all you done is posted your requirements, and we won't be able to help at all unless you post answerable questions. Please show us what you've done so far, and let us know exactly what are your specific points of confusion. If it's "everything", then please check out the Java tutorials and how to write program links below:

    The Java Tutorials: the Really Big Index
    So, You Need to Write a Program but Don't Know How to Start

    Also, the "how to ask smart questions" link in my signature links below can help you to write better answerable questions here.

    Again, best of luck!

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  4. #4
    alisia is offline Member
    Join Date
    Dec 2011
    Posts
    3
    Rep Power
    0

    Default Re: I beg you, help me with these tasks in Java!

    Have I tried them I did somehow work, thank you, but this task kept trying, but it will not!

    Program work in JCreator, but does not work!

    Write a program that determines the least common divisor of numbers. Example: numbers 24 and 26 are divisible by the numbers 2, 3, 6 and 12, and No. 12 should be a solution?

    Java Code:
    public static void main(String[] s){
       long factor= Math.max(a, b);
       for(long loop= factor;loop > 1;loop--){
          if(a % loop == 0 && b % loop == 0){
             return loop;
          }
       }
       return 1;
    }
    }
    Thank you very much and happy holidays to you!
    Last edited by Eranga; 01-06-2012 at 02:26 PM. Reason: code tags added

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  6. #6
    alisia is offline Member
    Join Date
    Dec 2011
    Posts
    3
    Rep Power
    0

    Default Re: I beg you, help me with these tasks in Java!

    This program for me in JCreator, will not work, throws me more errors, if you were kind energia, help me!

  7. #7
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,900
    Rep Power
    25

    Default Re: I beg you, help me with these tasks in Java!

    throws me more errors,
    Please post the full text of the error messages if you want help with them.

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default Re: I beg you, help me with these tasks in Java!

    Quote Originally Posted by alisia View Post
    This program for me in JCreator, will not work, throws me more errors, if you were kind energia, help me!

    Without knowing what the error message, how can we comment on your question. Please post the complete error you comes with.

Similar Threads

  1. JVM tasks
    By sudharani in forum New To Java
    Replies: 1
    Last Post: 04-25-2011, 03:58 PM
  2. Help with UNI tasks
    By Roshi in forum New To Java
    Replies: 6
    Last Post: 10-26-2010, 06:29 PM
  3. project with 5-6 java (and a bit xml) tasks
    By nortelnet in forum Jobs Offered
    Replies: 2
    Last Post: 08-18-2008, 08:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •