Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

How do I do this problem? 9) Calculate which of the elements in\"numbers\" are e

ID: 3613945 • Letter: H

Question

How do I do this problem?
   9) Calculate which of the elements in"numbers" are even and assign
       them to a new array"evens". Keep a count of how many you have found.
       int numbers[] = {11, 8,-7, 22, 3, 17, 6, -25, 10, 5, -12, -9, 14, 20, -13}

       NOTE: The first evennumber should be inserted at index 0,
       the second even number shouldbe inserted at index 1, etc.
       So as you count how many evennumbers you have found, the
       count can also be used to tellyou the index for the next
       even number youfind!
And one quick question, if you know of a website or somethingI can go to that lists rules or something for how to display arraysthat'd be great. How do I do this problem?
   9) Calculate which of the elements in"numbers" are even and assign
       them to a new array"evens". Keep a count of how many you have found.
       int numbers[] = {11, 8,-7, 22, 3, 17, 6, -25, 10, 5, -12, -9, 14, 20, -13}

       NOTE: The first evennumber should be inserted at index 0,
       the second even number shouldbe inserted at index 1, etc.
       So as you count how many evennumbers you have found, the
       count can also be used to tellyou the index for the next
       even number youfind!
And one quick question, if you know of a website or somethingI can go to that lists rules or something for how to display arraysthat'd be great.

Explanation / Answer

please rate - thanks import java.util.*; public class untitled {public static void main(String[] args) {int numbers[] = {11, 8, -7, 22, 3, 17, 6, -25, 10, 5, -12, -9, 14,20, -13}; int [] newarray=new int[15]; int i,count=0; for(i=0;i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote