Question: 1.Method printReverse Given an array of integers, and the number of elements in the array, print all the elements in the array in reverse order.
1.Method printReverse
Given an array of integers, and the number of elements in the array, print all the elements in the array in reverse order.
Consider the case when the array is empty and output the message, The array is empty.
2.Method overwriteOdds
Given an array of integers, and the number of elements in the array, overwrite all the odd numbers in the array with 0. Do NOT print the array; the testing section will print the array.
3.Method findIndexSmallest
Given an array of integers, and the number of elements in the array, find the index of the smallest element in the array and print it out on the screen.
Do NOT print the array; the testing section will print the array.
4.Method countMultiples
Given an array of integers, and the number of elements in the array, count all elements in the array that are multiples of 3, but do NOT count number 3 itself, and print out the total count.
Do NOT print the array; the testing section will print the array.
5.Method alternatedSum
Given an array of integers, and the number of elements in the array, sum up every other element in the array starting at index 0, and print out the result.
Do NOT print the array; the testing section will print the array.
6.Method copyArray
Given an array of integers, and the number of elements in the array, create a new array of integers with length equal to the length of the given array, and copy all the elements of the given array into the new array.
Use two for loops: The first will copy the array and the second will print it.
Consider the case when the given array is empty and output the message, The array to copy from is empty. Print out the new array.
7. Method copyEveryOther
Create a new array of integers with length equal to the length of the given array, and copy every other element of the given array into the new array, starting at index 0.
Use two for loops: The first will copy the array and the second will print it.
Consider the case when the given array is empty and output the message, The array to copy from is empty.
Print out the new array.
How to write to a (text) file in Java?

This program accepts integer values and operators and then finds out the result of the claculations Allowed values are double numbers and operators +- * / =. Enter Yes or No to use the calculator: yes Enter your expression starting with a '+' sign type-when you want the answer: 10 The answer is: 4 Do you want to calculate another expression (Yes/No) yes Enter your expression starting with a '+'sign type-when you want the answer: The answer is: 11 Do you want to calculate another expression (Yes/No) 2 no Thank you for using the program. Good Bye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
