Question: Can anyone help me solve these 2 programs? Please (JAVA) Program #1: one dimensional array practice (30 points) Declare a String array to accept 10

Can anyone help me solve these 2 programs? Please (JAVA)Can anyone help me solve these 2 programs? Please (JAVA) Program #1:

Program #1: one dimensional array practice (30 points) Declare a String array to accept 10 different states in United States, and implement some operations for the string array: 1) Prompts for and read an integer value k, rotate states' name from left side in k times. 2) Implement insertion sort algorithm to sort states' name by alphabetically order from A to Z, without case sensitive. For examples: California is before "Florida, and Alabama is before Alaska. 3) Based on the sorted value, implement binary search algorithm to search a given state's name. 4) Backup the state information in a new array. 5) Print the result after array declaration and each operation. Program # 2: two-dimensional array practice (20 points) Declare a 2-D array with 6 * 8 size, to accept randomly integer numbers, and satisfy the following requirements: 1) Find the total sum for each rows. 2) Find the total sum for each column. 3) Find the max value from a give row. 4) Print the result after array declaration and each operation

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!