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

• 12-27-2011, 10:14 PM
alisia
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!

http://img580.imageshack.us/img580/3...e001mcd.th.jpg

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!
• 12-27-2011, 10:25 PM
Fubarable
Re: I beg you, help me with these tasks in Java!
Quote:

Originally Posted by alisia
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!

http://img580.imageshack.us/img580/3...e001mcd.th.jpg

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

Again, best of luck!
• 12-28-2011, 04:33 AM
Eranga
Re: I beg you, help me with these tasks in Java!
Have you tied anything yet?
• 01-06-2012, 02:24 PM
alisia
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?

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!
• 01-06-2012, 02:25 PM
Eranga
Re: I beg you, help me with these tasks in Java!
So is this work as you expect?
• 01-06-2012, 02:55 PM
alisia
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!
• 01-06-2012, 03:18 PM
Norm
Re: I beg you, help me with these tasks in Java!
Quote:

throws me more errors,
Please post the full text of the error messages if you want help with them.
• 01-09-2012, 05:20 AM
Eranga
Re: I beg you, help me with these tasks in Java!
Quote:

Originally Posted by alisia
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.