public int sum(int[] x) {
int sum = 0;
for(int i : x) {
sum += i;
}
return sum;
}
public int average(int[] x) {
// Note that this returns an int, truncating any decimal
return sum(x) / x.length;
}
this is to write or create
create a program that can input 100 names
A Java program is a program that is written in the java programming language. You can create java classes, packages, interfaces etc and create java programs. You can write methods inside these classes to create the functionality in your class.
why not use eclipse.....
Open a computer program like Visual Basic, Java, or C#, and then create an object and label it as an array. Input your 10 numbers into the object, then loop through each object in the array to find the sum, average, and mean by writing code in the program.
You can easily add together lots of numbers, create graphs, and compute things using formulas on large amounts of data.
word processing program
this is to write or create
create a program that can input 100 names
Presentation program
If only! Of course they wouln't create a program to help you cheat! That's insanity.
what program that encourages manufacturers to create energy efficient devices
I believe the only Microsoft program used to create spreadsheets is Microsoft Excel.
word processing program
A Java program is a program that is written in the java programming language. You can create java classes, packages, interfaces etc and create java programs. You can write methods inside these classes to create the functionality in your class.
You can create anything you set your mind to.
Microsoft excel