Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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)
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 operationStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started