Question: Use java to solve it Question 1 Here's a goofy programming problem that was made for the purpose of testing how well you understand arrays,
Question 1 Here's a goofy programming problem that was made for the purpose of testing how well you understand arrays, modulus, and control structures like if-else and loops: Write a program that has two arrays with size of as many letters there are in your first name Randomly assign integers to each index in each array. Be sure to make this random integer generator a separate custom function that is called within main method. Go through each array and count how many odd numbers there are and then count how many even numbers there are. Be sure to create a custom function that returns whether a number is even or odd. Create two new arrays, one called even and the other called odd, each of these arrays will have the array size of their respective counters from above. Fill the odd array with the odd numbers Then iterate through each array and output the values. and then fill the even array with even numbers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
