In need to create a program that declares an array alpha of 50 elements of type double. Initialize the array so that the first 25 elements are equal to the square of the index variable, and the last 25 elements are equal to three times the index variable. Output the array so that 10 elements per line are printed. I have to use Eclipse to do this program. I am having lots of trouble. If anyone can help please! My email address is kbesso01@baker.edu. Thank you.
Sounds like a homework question. Show us what you have done so far and explain how it is failing.
Change this line
class javaboolean
to
public class javabooleanChange this line
public static void main()throws IOException //here it asks for a semicolon
to
public static void main(String[] args) throws IOException {Change this line
boolean z = (10>2)? true:false;
to
boolean z = 10>2;Have fun.
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |