#Sales Offer!| Get upto 25% Off:

Please help writebelow programs in JAVA. Question1 Write a Java methodthat takes an integer array. The method rearranges the array byseparating even and odd numbers of an given array of integers. Allodd numbers must be placed first, and then even numbers. The methodshould check if the argument is at least 4 integers digits Hint: Here is themethod header void reArrange(int[]intArr) Demonstrate the usageof this array in main Question2 Write a program thatcreates a two-dimensional array initialized with test data. Use anydata type you wish. The program should have the following staticmethods: getTotal. This function should accept a two-dimensional array asits argument and return the total of all the values in thearray. getAverage. This function should accept a two-dimensional arrayas its argument and return the average of all the values in thearray. getRowTotal. This function should accept a two-dimensional arrayas its first argument and an integer as its second argument. Thesecond argument should be the subscript of a row in the array. Thefunction should return the total of the values in the specifiedrow. getColumnTotal. This function should accept a two-dimensionalarray as its first argument and an integer as its second argument.The second argument should be the subscript of a column in thearray. The function should return the total of the values in thespecified column. getHighestInRow. This function should accept a two-dimensionalarray as its first argument and an integer as its second argument.The second argument should be the subscript of a row in the array.The function should return the highest value in the specified rowof the array. getLowestInRow. This function should accept a two-dimensionalarray as its first argument and an integer as its second argument.The second argument should be the subscript of a row in the array.The function should return the lowest value in the specified row ofthe array. Question3 Write a program thatallows two players to play a game of tic-tac-toe. Use atwo-dimensional char array with three rows and three columns as thegame board. Each element of the array should be initialized with anasterisk (*). The program should run a loop that Displays the contents of the board array Allows player 1 to select a location on the board for an X. Theprogram should ask the user to enter the row and column number. Allows player 2 to select a location on the board for an O. Theprogram should ask the user to enter the row and column number. Determines whether a player has won, or a tie has occurred. If aplayer has won, the program should declare that player the winnerand end. If a tie has occurred, the program should say so andend. Player 1 wins whenthere are three Xs in a row on the game board. The Xs can appear ina row, in a column, or diagonally across the board. A tie occurswhen all of the locations on the board are full, but there is nowinner. Make sure to utilizemethods in your program. Remember, a method is a fragment of codethat does a task. . . .

Found something interesting ?

• On-time delivery guarantee
• PhD-level professional writers
• Free Plagiarism Report

• 100% money-back guarantee
• Absolute Privacy & Confidentiality
• High Quality custom-written papers

Related Model Questions

Feel free to peruse our college and university model questions. If any our our assignment tasks interests you, click to place your order. Every paper is written by our professional essay writers from scratch to avoid plagiarism. We guarantee highest quality of work besides delivering your paper on time.

Grab your Discount!

25% Coupon Code: SAVE25
get 25% !!