Answered step by step
Verified Expert Solution
Link Copied!

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)image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Image Databases Towards Advanced Image Retrieval

Authors: Yihong Gong

1st Edition

1461375037, 978-1461375036

More Books

Students also viewed these Databases questions

Question

What is happening in this situation? What are the consequences?

Answered: 1 week ago

Question

Determine miller indices of plane A Z a/2 X a/2 a/2 Y

Answered: 1 week ago