Respuesta :
A high-level, class-based, object-oriented programming language with the least amount of implementation dependencies feasible is called Java.
What is the method?
A high-level, class-based, object-oriented programming language with the least amount of implementation dependencies feasible is called Java.
The evenNumbers method, which reports different statistics about the integers and accepts a Scanner as a parameter for taking input from a file containing a series of integers. You can assume that the file contains * at least one integer. Report the overall number of numbers, their sum*, the number of even numbers, and their percentage.
/
public void evenNumbers(Scanner sc) {
int count = 0;
int evenCount = 0;
int sum = 0;
while(sc.hasNext()) {
int num = sc.nextInt();
count++;
sum += num;
if(num % 2 == 0)
evenCount++;
}
double percent = (double)(evenCount * 100) / count;
System.out.println(count + " numbers, sum = " + sum);
System.out.println(evenCount + " evens (" +
String.format("%.2f", percent) + "%)");
}
The complete question is write a method named evennumbers that takes two integer arguments (say, num1 and num2) and prints all even numbers in the range {num1, num2}. the method does not return any value to the caller. (10) call the above evennumbers method from main by passing two numbers input by the user. java.
To learn more about java refer to:
https://brainly.com/question/26789430
#SPJ4